angular-cn/packages/compiler-cli/ngcc/test/host
George Kalpakas fde89156fa fix(ngcc): correctly detect outer aliased class identifiers in ES5 (#35527)
In ES5 and ES2015, class identifiers may have aliases. Previously, the
`NgccReflectionHost`s recognized the following formats:
- ES5:
    ```js
    var MyClass = (function () {
      function InnerClass() {}
      InnerClass_1 = InnerClass;
      ...
    }());
    ```
- ES2015:
    ```js
    let MyClass = MyClass_1 = class MyClass { ... };
    ```

In addition to the above, this commit adds support for recognizing an
alias outside the IIFE in ES5 classes (which was previously not
supported):
```js
var MyClass = MyClass_1 = (function () { ... }());
```

Jira issue: [FW-1869](https://angular-team.atlassian.net/browse/FW-1869)

Partially addresses #35399.

PR Close #35527
2020-02-20 15:12:07 -08:00
..
commonjs_host_import_helper_spec.ts refactor(ngcc): use bundle src to create reflection hosts (#34254) 2019-12-18 11:25:01 -08:00
commonjs_host_spec.ts fix(ngcc): correctly detect outer aliased class identifiers in ES5 (#35527) 2020-02-20 15:12:07 -08:00
esm5_host_import_helper_spec.ts refactor(ngcc): use bundle src to create reflection hosts (#34254) 2019-12-18 11:25:01 -08:00
esm5_host_spec.ts fix(ngcc): correctly detect outer aliased class identifiers in ES5 (#35527) 2020-02-20 15:12:07 -08:00
esm2015_host_import_helper_spec.ts refactor(ngcc): use bundle src to create reflection hosts (#34254) 2019-12-18 11:25:01 -08:00
esm2015_host_spec.ts fix(ngcc): do not collect private declarations from external packages (#34811) 2020-01-23 13:58:37 -08:00
umd_host_import_helper_spec.ts refactor(ngcc): use bundle src to create reflection hosts (#34254) 2019-12-18 11:25:01 -08:00
umd_host_spec.ts fix(ngcc): correctly detect outer aliased class identifiers in ES5 (#35527) 2020-02-20 15:12:07 -08:00
util.ts fix(ngcc): properly detect origin of constructor param types (#33901) 2019-11-19 11:38:33 -08:00