Skip to content
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: support bring cloud #242

Merged
merged 28 commits into from
Oct 13, 2022
Merged

feat: support bring cloud #242

merged 28 commits into from
Oct 13, 2022

Commits on Sep 22, 2022

  1. Configuration menu
    Copy the full SHA
    c9422ef View commit details
    Browse the repository at this point in the history
  2. Removed Nothing from out type system.

    Merge jsii resource clients into generate wing resources.
    Handle JSII Void return types as no return type in wing.
    yoav-steinberg committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    e84ce2f View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2022

  1. Configuration menu
    Copy the full SHA
    fd76050 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7348fb View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. WIP: JSII imports:

    * Added support fro `struct`s in parser/type_checker/jsification.
    * Import constructors (including skipping scope/id on resources).
    * Pass "self" argument to imported class methods.
    yoav-steinberg committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    9cf1d49 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Configuration menu
    Copy the full SHA
    fd039f5 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Handle non primitive type references in JSII imports:

    * refactor: moved jsii importing logic into submodule under a new type_check module.
    * resolve namespaced custom types in type checker.
    * corretly handle parent resource in resource type checking.
    * JSII imported handles references to other JSII types (not only primitives).
    yoav-steinberg committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    e614ca0 View commit details
    Browse the repository at this point in the history
  2. Treat wingsdk cloud.Inflight as ~(any):any inflight function.

    * Also added support for multiple struct inheritance in when importing JSII props.
    * Support importing wingsdk `Duration` types.
    yoav-steinberg committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    6916688 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

  1. Struct literals (currently with a grammar hack @TypeName)

    also:
    Cleaned up method_call vs function_call in grammar/ast
    Fixed return type parsing
    yoav-steinberg committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    7e23309 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b33b9a View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2022

  1. wingsdk cloud JSII import

    * Updated sdk_capture tests to use explicit Props ars used by sdk resources.
    * Support type annotation in container literals.
    * Added map literals support.
    * de-dup captured method names in capture mechanism.
    * removed auto capturing of everything looking like a mehtod call on an anything object (AKA wingsdk support hack).
    yoav-steinberg committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    8f53968 View commit details
    Browse the repository at this point in the history
  2. oops

    yoav-steinberg committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    0c2e469 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    55b5433 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. Apply suggestions from code review

    Co-authored-by: Chris Rybicki <chrisr@monada.co>
    yoav-steinberg and Chriscbr authored Oct 10, 2022
    Configuration menu
    Copy the full SHA
    d1b2eb0 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Added support for namespace aliases on JSII brings.

    Also:
    * Fix inflight.w example based on real imported cloud.Bucket type.
    * Removed skipping type checking on `new` expressions when the type is resolved to an `Anything`, we don't expect custom types to be `Anything`'s anymore.
    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    cbe71e7 View commit details
    Browse the repository at this point in the history
  2. jisify: Remoce hack to always add scope and id to anything objects.

    This was there because we didn't really know the type of the `new` expression. Now the type is available through a the `Expr.evaluated_type`.
    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    08ff9ac View commit details
    Browse the repository at this point in the history
  3. cr fix

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e1271e5 View commit details
    Browse the repository at this point in the history
  4. cr fix

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    3dbae32 View commit details
    Browse the repository at this point in the history
  5. cr fix

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    2f3c6af View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    798f1fc View commit details
    Browse the repository at this point in the history
  7. CR fix

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e04275b View commit details
    Browse the repository at this point in the history
  8. cr fix

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e4388e5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2842678 View commit details
    Browse the repository at this point in the history
  10. Update libs/wingc/src/type_check/jsii_importer.rs

    Co-authored-by: Elad Ben-Israel <elad.benisrael@gmail.com>
    yoav-steinberg and eladb authored Oct 12, 2022
    Configuration menu
    Copy the full SHA
    0c83f75 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c4c3575 View commit details
    Browse the repository at this point in the history
  12. fix grammar test

    yoav-steinberg committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    4185d9b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. cr

    yoav-steinberg committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    9c597fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77e6b52 View commit details
    Browse the repository at this point in the history