angular/packages/compiler-cli/test/ngtsc
Paul Gschwendtner 6219341d26 fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981)
This commit ensures that the new APIs like `input`, `model`, `output`,
or signal-based queries are not accidentally used on fields that have a
problematic visibility/access level that won't work.

For example, queries defined using a private identifier (e.g. `#bla`)
will not be accessible by the Angular runtime and therefore _dont_ work.

This commit ensures:

- `input` is only declared via public and protected fields.
- `output` is only declared via public and protected fields.
- `model` is only declared via public and protected fields.
- signal queries are only declared via public, protected and TS private
  fields (`private` works, while `#bla` does not).

Fixes #54863.

PR Close #54981
2024-03-27 09:54:45 -07:00
..
doc_extraction refactor(compiler-cli): support ignoring specific doc entries during extraction (#54925) 2024-03-26 09:17:21 -07:00
authoring_inputs_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
authoring_models_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
authoring_outputs_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
authoring_queries_spec.ts fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
BUILD.bazel test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
component_indexing_spec.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
defer_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
env.ts feat(compiler-cli): make it configurable to generate alias reexports (#53937) 2024-01-22 14:20:26 +01:00
extended_template_diagnostics_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
host_directives_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
imports_spec.ts ci: migrate windows job to GHA (#51010) 2023-07-17 14:51:36 +00:00
incremental_error_spec.ts perf(compiler-cli): detect semantic changes and their effect on an incremental rebuild (#40947) 2021-03-08 08:41:19 -08:00
incremental_semantic_changes_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
incremental_spec.ts perf(compiler-cli): optimize NgModule emit for standalone components (#49837) 2023-04-17 14:51:58 +00:00
incremental_typecheck_spec.ts test(compiler-cli): enable incremental re-use type checking with signal inputs (#54819) 2024-03-15 15:09:40 -07:00
local_compilation_spec.ts refactor(compiler-cli): use a more generic error for unsupported expressions in local compilation mode (#54366) 2024-02-12 08:49:03 -08:00
ls_typecheck_helpers_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
monorepo_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
ngtsc_spec.ts refactor(compiler-cli): properly preserve file overview comments (#54819) 2024-03-15 15:09:41 -07:00
scope_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
sourcemap_utils.ts test: update source-map tests to account for source-map breaking change (#46888) 2022-07-19 09:40:54 -07:00
standalone_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
template_mapping_spec.ts refactor(compiler): update two-way listener emit in definition builder (#54154) 2024-02-01 14:39:32 +00:00
template_typecheck_spec.ts refactor(compiler-cli): integrate fallback content for ng-content into template type checker (#54854) 2024-03-26 09:17:58 -07:00
util.ts refactor(compiler): Add a new helper method getPrimaryAngularDecorator. (#47180) 2022-08-22 10:39:42 -07:00
xi18n_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00