fix(ngcc): detect synthesized delegate constructors for downleveled ES2015 classes (#38463)

Similarly to the change we landed in the `@angular/core` reflection
capabilities, we need to make sure that ngcc can detect pass-through
delegate constructors for classes using downleveled ES2015 output.

More details can be found in the preceding commit, and in the issue
outlining the problem: #38453.

Fixes #38453.

PR Close #38463
This commit is contained in:
Paul Gschwendtner
2020-08-14 20:43:59 +02:00
committed by Andrew Scott
parent ca07da4563
commit 3b9c802dee
5 changed files with 834 additions and 162 deletions

View File

@ -29,7 +29,7 @@ import {GetterFn, MethodFn, SetterFn} from './types';
* it intends to capture the pattern where existing constructors have been downleveled from
* ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.
*
* * ```
* ```
* function MyClass() {
* var _this = _super.apply(this, arguments) || this;
* ```