angular-cn/packages/core/schematics
Paul Gschwendtner 33016b8929 fix(core): static-query schematic should detect static queries in getters. (#29609)
Queries can also be statically accessed within getters. e.g.

```ts
ngOnInit() {
  this.myQueryGetter.doSomething();
}
```

In that case we need to check if the `myQueryGetter` definition accesses
a query statically. As we need to use the type checker for every property acess
within lifecylce hooks, the schematic might become slower than before, but considering
that this is a one-time execution, it is totally fine using the type-checker extensively.

PR Close #29609
2019-04-01 10:58:51 -07:00
..
migrations/static-queries fix(core): static-query schematic should detect static queries in getters. (#29609) 2019-04-01 10:58:51 -07:00
test fix(core): static-query schematic should detect static queries in getters. (#29609) 2019-04-01 10:58:51 -07:00
utils refactor(core): add tslint rule entry-point for static-query migration (#29258) 2019-03-14 16:02:37 -04:00
BUILD.bazel feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
migrations.json feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
tsconfig.json feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00