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

Instantiate anonymous types less #7138

Closed
wants to merge 8 commits into from

Commits on Feb 18, 2016

  1. Strawman: instantiate anonymous types less

    This operates during `instantiateType` to skip instantiation of anonymous
    types whose declarations are *not* bound by the type mapper that will do the
    instantation.
    
    Unfortunately, it fails for this types and union types, perhaps because
    these do not have symbols. This types also don't have explicit type
    parameters, so that may be the reason.
    
    For example, for-of30 currently fails.
    sandersn committed Feb 18, 2016
    Configuration menu
    Copy the full SHA
    6c0b0ef View commit details
    Browse the repository at this point in the history
  2. Add test with lots of generic static methods

    Each of the methods has a `typeof Class` argument which currently causes
    an out-of-memory error when compiling a lot of these methods.
    sandersn committed Feb 18, 2016
    Configuration menu
    Copy the full SHA
    7a48fb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2fecf2b View commit details
    Browse the repository at this point in the history
  4. Instantiate all interfaces that are mapped.

    Since they have no static side.
    sandersn committed Feb 18, 2016
    Configuration menu
    Copy the full SHA
    f6cadc9 View commit details
    Browse the repository at this point in the history
  5. Instantiate generic type aliases

    Including aliases of intersection types.
    sandersn committed Feb 18, 2016
    Configuration menu
    Copy the full SHA
    5774f14 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2016

  1. PR comments

    sandersn committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    b138d4a View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2016

  1. Improve type-parameter-in-scope check

    1. Use types directly instead of type's symbol's names. Comparing names was
    incorrect and bluebird's .d.ts from DefinitelyTyped still hit the bug.
    2. Use this-type of classes directly to see whether this-types are mapped.
    sandersn committed Mar 1, 2016
    Configuration menu
    Copy the full SHA
    f7c4b3a View commit details
    Browse the repository at this point in the history
  2. Add complex out-of-memory test based on bluebird.d.ts

    This is more complicated than the angular example in that it has a lot of
    generic statics inside a class that is itself generic. The class and
    functions all use the same name for their type parameters.
    sandersn committed Mar 1, 2016
    Configuration menu
    Copy the full SHA
    a5a4b59 View commit details
    Browse the repository at this point in the history