angular-cn/packages/core/schematics/utils
Paul Gschwendtner ca677481a2 fix(core): undecorated-classes-with-decorated-fields migration should avoid error if base class has no value declaration (#36543)
The undecorated-classes-with-decorated-fields migration relies on
the type checker to resolve base classes of individual classes.

It could happen that resolved base classes have no value declaration.
e.g. if they are declared through an interface in the default types.
Currently the migration will throw in such situations because it assumes
that `ts.Symbol#valueDeclaration` is always present. This is not the
case, but we don't get good type-checking here due to a bug in the
TypeScript types. See:
https://github.com/microsoft/TypeScript/issues/24706.

Fixes #36522.

PR Close #36543
2020-04-10 13:53:15 -07:00
..
tslint refactor(core): move google3 migration rules into single directory (#30956) 2019-07-23 15:52:40 -07:00
typescript fix(core): undecorated-classes-with-decorated-fields migration should avoid error if base class has no value declaration (#36543) 2020-04-10 13:53:15 -07:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
import_manager.ts refactor(core): move schematic import manager to shared utils (#35339) 2020-04-02 10:51:48 -07:00
line_mappings.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
ng_component_template.ts fix(core): static-query migration should not prompt if no queries are used (#30254) 2019-05-08 09:22:48 -07:00
ng_decorators.ts feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00
parse_html.ts refactor(core): static-query schematic should check templates (#29713) 2019-04-11 08:22:44 -07:00
project_tsconfig_paths.ts refactor(core): migrations should parse cli workspace config as json5 (#30582) 2019-05-21 17:26:22 -07:00
schematics_prompt.ts refactor(core): allow developers to select static-query migration strategy (#29876) 2019-04-18 18:22:09 -07:00