angular/packages/core/schematics/utils
Andrew Scott e78a928d6b refactor(migrations): update isReferenceToImport to not use valueDeclaration (#45292)
valueDeclaration is only set when the Symbol type is a `Value`:

* [setValueDeclaration](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/binder.ts?L321-322)
* [Value union](https://sourcegraph.com/github.com/microsoft/TypeScript@d8b21a8d6cef772fea5cf2a507b651c5d38194bd/-/blob/src/compiler/types.ts?L4849:9#tab=references)

This won't be the case if the symbol is an interface (notice that `Interface` is not in the union for `Value` above).

For this reason, we can't rely on the `valueDeclaration` property of the symbol.
Instead, it's more reliable to just compare the first items in the `declarations` list.

PR Close #45292
2022-03-08 13:13:24 -08:00
..
tslint refactor: make all imports compatible with ESM/CJS output. (#43431) 2021-10-01 18:28:45 +00:00
typescript refactor(migrations): update isReferenceToImport to not use valueDeclaration (#45292) 2022-03-08 13:13:24 -08:00
BUILD.bazel refactor(migrations): support use of an ESM @angular/compiler-cli package (#43657) 2021-10-04 16:24:48 -07:00
import_manager.ts refactor(compiler): remove usages of deprecated AST creation functions (#45134) 2022-02-22 10:22:47 -08:00
line_mappings.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
load_esm.ts refactor(migrations): support use of an ESM @angular/compiler-cli package (#43657) 2021-10-04 16:24:48 -07:00
ng_component_template.ts fix(migrations): prevent migrations from updating external templates multiple times (#44013) 2021-11-03 09:38:43 -07:00
ng_decorators.ts refactor: make all imports compatible with ESM/CJS output. (#43431) 2021-10-01 18:28:45 +00:00
parse_html.ts Revert "Revert "refactor(migrations): support use of an ESM @angular/compiler package (#43627)"" (#43637) 2021-09-29 14:46:03 -07:00
project_tsconfig_paths.ts fix(migrations): migration failed finding tsconfig file (#43343) 2021-09-07 23:16:56 +00:00
schematics_prompt.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
template_ast_visitor.ts Revert "Revert "refactor(migrations): support use of an ESM @angular/compiler package (#43627)"" (#43637) 2021-09-29 14:46:03 -07:00