angular/packages/compiler-cli
Pete Bacon Darwin f35e9158b2 refactor(compiler-cli): remove unnecessary constraint on isDeclarationReference() (#38959)
There is no need to check that the `ref.node` is of any particular type
because immediately after this check the entry is tested to see if it passes
`isClassDeclarationReference()`.

The only difference is that the error that is reported is slightly different
in the case that it is a `ref` but not one of the TS node types.

Previously:

```
`Value at position ${idx} in the NgModule.${arrayName} of ${
                className} is not a reference`
```

now

```
`Value at position ${idx} in the NgModule.${arrayName} of ${
                  className} is not a class`
```

Arguably the previous message was wrong, since this entry IS a reference
but is not a class.

PR Close #38959
2020-10-12 08:32:45 -07:00
..
integrationtest test(compiler-cli): temporarily disable integrationtest (#39168) 2020-10-08 08:43:48 -07:00
linker refactor(compiler-cli): attachComments() now expects a defined leadingComments array (#39076) 2020-10-06 11:33:55 -07:00
ngcc refactor(compiler-cli): setup compilation mode to enable generating linker code (#38938) 2020-09-30 12:49:16 -07:00
src refactor(compiler-cli): remove unnecessary constraint on isDeclarationReference() (#38959) 2020-10-12 08:32:45 -07:00
test feat(core): remove ViewEncapsulation.Native (#38882) 2020-10-08 11:56:03 -07:00
BUILD.bazel build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json refactor(compiler-cli): implement BabelAstFactory and AstHosts (#38866) 2020-10-01 09:32:12 -07:00
tsconfig-build.json build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
tsconfig.json perf(ivy): ngcc - only find dependencies when targeting a single entry-point (#30525) 2019-07-09 09:40:46 -07:00