-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(golang): introduce Golang code generation #1551
Commits on Apr 15, 2020
-
feat(golang): introduce Golang code generation
A new `Golang` code generation handler was added. It is a very early work-in-progress. Further development should happen mostly within `lib/targets/golang`, adding new classes and completing the `emit` handler to handle the element types. Disclaimer: some of the currently generated code may not be valid Go...
Configuration menu - View commit details
-
Copy full SHA for 75988da - Browse repository at this point
Copy the full SHA 75988daView commit details
Commits on May 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ffbaf86 - Browse repository at this point
Copy the full SHA ffbaf86View commit details
Commits on May 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 48337ae - Browse repository at this point
Copy the full SHA 48337aeView commit details
Commits on May 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3785aae - Browse repository at this point
Copy the full SHA 3785aaeView commit details -
feat: (wip) generate package and submodules
Note: Naming packages by the go convention (see: https://blog.golang.org/package-names) results in very long, hard to read package names, so we may want to consider breaking from convention and adding underscores, e.g.
Configuration menu - View commit details
-
Copy full SHA for 7c0a7aa - Browse repository at this point
Copy the full SHA 7c0a7aaView commit details
Commits on Jun 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b904706 - Browse repository at this point
Copy the full SHA b904706View commit details
Commits on Jun 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4e8977c - Browse repository at this point
Copy the full SHA 4e8977cView commit details
Commits on Jun 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 20f1e88 - Browse repository at this point
Copy the full SHA 20f1e88View commit details
Commits on Jun 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6066285 - Browse repository at this point
Copy the full SHA 6066285View commit details
Commits on Jun 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e311dcd - Browse repository at this point
Copy the full SHA e311dcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f26997 - Browse repository at this point
Copy the full SHA 3f26997View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51e7e3f - Browse repository at this point
Copy the full SHA 51e7e3fView commit details
Commits on Jun 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a5f7a05 - Browse repository at this point
Copy the full SHA a5f7a05View commit details -
Merge branch 'golang/code-generation' of github.com:aws/jsii into gol…
…ang/code-generation
Configuration menu - View commit details
-
Copy full SHA for 121383e - Browse repository at this point
Copy the full SHA 121383eView commit details
Commits on Jul 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 586d037 - Browse repository at this point
Copy the full SHA 586d037View commit details -
fix: use camelcase on exported types
Structs and interfaces should not all be lowercased. Also adds newline after writing to-level package name and removes extra whitespace after method definitions. TODO: - Handle `any` type (does not exist in go) - Handle type unions - Capitalize any exported methods - Handle method arguments
Configuration menu - View commit details
-
Copy full SHA for ad04878 - Browse repository at this point
Copy the full SHA ad04878View commit details
Commits on Jul 28, 2020
-
chore: fix linting and build issues
so that yarn build actually succeeds
Configuration menu - View commit details
-
Copy full SHA for ef1a36b - Browse repository at this point
Copy the full SHA ef1a36bView commit details
Commits on Jul 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4aff177 - Browse repository at this point
Copy the full SHA 4aff177View commit details
Commits on Jul 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 99b0aea - Browse repository at this point
Copy the full SHA 99b0aeaView commit details
Commits on Aug 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 344be72 - Browse repository at this point
Copy the full SHA 344be72View commit details
Commits on Aug 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cf6927d - Browse repository at this point
Copy the full SHA cf6927dView commit details
Commits on Aug 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9f1583b - Browse repository at this point
Copy the full SHA 9f1583bView commit details
Commits on Aug 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b3b3e3c - Browse repository at this point
Copy the full SHA b3b3e3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for beff382 - Browse repository at this point
Copy the full SHA beff382View commit details
Commits on Aug 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6e26d1c - Browse repository at this point
Copy the full SHA 6e26d1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ce497b - Browse repository at this point
Copy the full SHA 2ce497bView commit details -
Configuration menu - View commit details
-
Copy full SHA for abb52ec - Browse repository at this point
Copy the full SHA abb52ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b18bca - Browse repository at this point
Copy the full SHA 0b18bcaView commit details
Commits on Aug 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2f56d2f - Browse repository at this point
Copy the full SHA 2f56d2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c3e733 - Browse repository at this point
Copy the full SHA 2c3e733View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ab90c - Browse repository at this point
Copy the full SHA 20ab90cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d48a04 - Browse repository at this point
Copy the full SHA 7d48a04View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac5c9fd - Browse repository at this point
Copy the full SHA ac5c9fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f0e91 - Browse repository at this point
Copy the full SHA d5f0e91View commit details
Commits on Aug 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 61dc2f2 - Browse repository at this point
Copy the full SHA 61dc2f2View commit details
Commits on Aug 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cfe4308 - Browse repository at this point
Copy the full SHA cfe4308View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98d1838 - Browse repository at this point
Copy the full SHA 98d1838View commit details -
chore: remove unused test expectations
Expected output now lives in under the __snapshots__ dir
Configuration menu - View commit details
-
Copy full SHA for 6a8ff76 - Browse repository at this point
Copy the full SHA 6a8ff76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6453b80 - Browse repository at this point
Copy the full SHA 6453b80View commit details -
fix: go package compile errors
Fixes compiler errors on generated code with the following: 1. Return placeholder types from JSII class method calls 2. Prevent recursive structs by detecting types nested as properties within themselves and use a pointer instead 3. Map TS `any` types to an empty struct `GoAny` to be provided by the JSII runtime library 4. Fix `map` and slice type signatures in struct properties 5. Fix submodule struct and `package` names 6. Fix broken PascalCasing of return types in class methods when returning a named JSII type Also misc cleanup/enhancements: 1. Call a dummy NoOp method inside JSII class method calls provided by runtime 2. Add import statement for runtime library to modules 3. Consolidate import statements
Configuration menu - View commit details
-
Copy full SHA for 7cbb109 - Browse repository at this point
Copy the full SHA 7cbb109View commit details
Commits on Aug 18, 2020
-
chore: generate datatype interfaces
TODO: isDataType() in jsii-reflect seems wrong -- would be nice to leverage this method in module.ts.
Configuration menu - View commit details
-
Copy full SHA for 416f0b6 - Browse repository at this point
Copy the full SHA 416f0b6View commit details -
Add some doc comments and cleanup. Changes the `Module` interface to an abstract base class that is extended by `Package` and `Submodule` to avoid repeating module build and emit logic. Change dynamic getters for module submodules and types to be built and set in constructor to avoid unecessary recomputation.
Configuration menu - View commit details
-
Copy full SHA for 0db0dbb - Browse repository at this point
Copy the full SHA 0db0dbbView commit details -
chore: minimize interface changes
Minimizes changes to interface type for refactoring to class layout based on struct/interface differences.
Configuration menu - View commit details
-
Copy full SHA for 251d7b1 - Browse repository at this point
Copy the full SHA 251d7b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19a12b9 - Browse repository at this point
Copy the full SHA 19a12b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4997976 - Browse repository at this point
Copy the full SHA 4997976View commit details -
Merge branch 'golang/code-generation' of github.com:aws/jsii into gol…
…ang/code-generation-ast
Configuration menu - View commit details
-
Copy full SHA for 572f151 - Browse repository at this point
Copy the full SHA 572f151View commit details
Commits on Aug 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2004385 - Browse repository at this point
Copy the full SHA 2004385View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc350c1 - Browse repository at this point
Copy the full SHA cc350c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2234cb1 - Browse repository at this point
Copy the full SHA 2234cb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4784aa8 - Browse repository at this point
Copy the full SHA 4784aa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b6baaf - Browse repository at this point
Copy the full SHA 1b6baafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34ca6ef - Browse repository at this point
Copy the full SHA 34ca6efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3577d61 - Browse repository at this point
Copy the full SHA 3577d61View commit details -
docs: add note about experimental go configuration
Adds a section about configuring GoLang code generation in `docs/configuration.md`. Notes that go code generation is experimental and is not suitable for production use. Update snapshots.
Configuration menu - View commit details
-
Copy full SHA for cc38941 - Browse repository at this point
Copy the full SHA cc38941View commit details
Commits on Aug 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for fe5c165 - Browse repository at this point
Copy the full SHA fe5c165View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc3d70f - Browse repository at this point
Copy the full SHA dc3d70fView commit details -
chore: rename Module, Submodule (#1921)
Renames module related classes to be more idiomatic to go package output.
Configuration menu - View commit details
-
Copy full SHA for 917fac9 - Browse repository at this point
Copy the full SHA 917fac9View commit details -
Merge branch 'golang/code-generation' of github.com:aws/jsii into gol…
…ang/code-generation
Configuration menu - View commit details
-
Copy full SHA for 0e21021 - Browse repository at this point
Copy the full SHA 0e21021View commit details -
BasePackage => Package Package => RootPackage Note: RootPackage could be thought of as "module", but we are reserving that word due to "go mod"
Configuration menu - View commit details
-
Copy full SHA for 4238e2a - Browse repository at this point
Copy the full SHA 4238e2aView commit details -
Removes the embedded runtime logic until an appropriate alternative is identified. The current strategy was causing the output byte array inside the snapshots to differ from user to user based on build environment. Fixes casing in `goModuleName` util to be all lower case.
Configuration menu - View commit details
-
Copy full SHA for 541d714 - Browse repository at this point
Copy the full SHA 541d714View commit details