angular/packages/compiler-cli/test/ngtsc
Paul Gschwendtner d01576b104 refactor(compiler-cli): properly preserve file overview comments (#54819)
This commit updates the logic for preserving file overview comments
to be more reliable and less dependent on previous transforms.

Previously, with the old import manager, we had a utility called
`addImport` that always separated import statements and non-import
statements. This meant that the non-emitted statement from Tsickle
for the synthetic file-overview comments no longer lived at the
beginning of the file.

`addImports` tried to overcome this by adding another new non-emitted
statement *before* all imports. This then was later used by the
transform (or was assumed!) to attach the synthetic file overview
comments if the original tsickle AST Node is no longer at the top.

This logic can be improved, because the import manager shouldn't need to
bother about this fileoverview non-emitted statement, and the logic for
re-attaching the fileoverview comment should be local. This commit fixes
this and makes it a local transform.

PR Close #54819
2024-03-15 15:09:41 -07:00
..
doc_extraction test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
authoring_inputs_spec.ts build: update to TypeScript 5.4 stable (#54743) 2024-03-11 09:16:55 -07:00
authoring_models_spec.ts refactor(compiler-cli): use semver for version parsing (#54429) 2024-02-27 15:24:23 -08:00
authoring_outputs_spec.ts test: add compiler ngtsc tests for new outputFromObservable API (#54650) 2024-03-06 12:34:39 +01:00
authoring_queries_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01: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 fix(compiler-cli): flag two-way bindings to non-signal values in templates (#54714) 2024-03-11 11:01:42 -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