angular/packages/compiler-cli/src/ngtsc
Paul Gschwendtner c855bf4c56 refactor(compiler): clean up template information passed for partial compilation (#41583)
With the introduction of the partial compilation, the Angular compiler's
existing `parseTemplate` method has been extended to pass through multiple
properties purely in favor of the partial compilation.

e.g. the `parseTemplate` function now accepts an "option" called `isInline`.
This option is just passed through and returned as part of the `ParsedTemplate`.

This is not ideal because the `parseTemplate` function doesn't care
whether the specified template was inline or not. This commit cleans
up the `parseTemplate` compiler function so that nothing needed only
for the partial compilation is added to it.

We introduce a new struct for additional template information that
is specific to the generation of the `declareComponent` function. With
that change, we can simplify the component decorator handler and keep
logic more local.

PR Close #41583
2021-04-16 09:33:05 -07:00
..
annotations refactor(compiler): clean up template information passed for partial compilation (#41583) 2021-04-16 09:33:05 -07:00
core fix(language-service): resolve to the pre-compiled style when compiled css url is provided (#41538) 2021-04-14 09:15:00 -07:00
cycles perf(compiler-cli): refactor the performance tracing infrastructure (#41125) 2021-03-24 13:42:24 -07:00
diagnostics fix(compiler-cli): show a more specific error for Ivy NgModules (#41534) 2021-04-13 07:34:45 -07:00
entry_point refactor(compiler-cli): implement DeclarationNode node type (#38959) 2020-10-12 08:32:46 -07:00
file_system perf(compiler-cli): cache results of absoluteFromSourceFile (#41475) 2021-04-13 13:05:35 -07:00
imports refactor(compiler-cli): track a dependency on a default import on WrappedNodeExpr (#41557) 2021-04-12 17:05:10 -07:00
incremental refactor(compiler-cli): support ts.SourceFile versioning (#41475) 2021-04-13 13:05:36 -07:00
indexer refactor(compiler-cli): identify structural directives (#40032) 2020-12-14 12:08:41 -08:00
logging build(compiler-cli): fix bazel deps rules for ngtsc testing packages (#37977) 2020-07-08 12:05:22 -07:00
metadata refactor(compiler-cli): having an ɵinj field no longer guarantees injectability (#41231) 2021-03-30 16:46:37 -07:00
modulewithproviders perf(compiler-cli): avoid module resolution in cycle analysis (#40948) 2021-03-08 12:05:49 -08:00
partial_evaluator feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
perf feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
program_driver refactor(compiler-cli): support ts.SourceFile versioning (#41475) 2021-04-13 13:05:36 -07:00
reflection feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
resource fix(language-service): resolve to the pre-compiled style when compiled css url is provided (#41538) 2021-04-14 09:15:00 -07:00
routing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
scope perf(compiler-cli): avoid module resolution in cycle analysis (#40948) 2021-03-08 12:05:49 -08:00
shims feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
sourcemaps fix(compiler-cli): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
switch refactor(compiler-cli): remove usage of ts.updateIdentifier (#38076) 2020-08-24 13:07:02 -07:00
testing refactor(core): rename ...WithMeta types to ...Declaration and alias to unknown (#41119) 2021-03-22 08:57:18 -07:00
transform refactor(compiler-cli): replace the IncrementalDriver with a new design (#41475) 2021-04-13 13:05:35 -07:00
translator refactor(compiler-cli): track a dependency on a default import on WrappedNodeExpr (#41557) 2021-04-12 17:05:10 -07:00
typecheck fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645) 2021-04-16 08:54:27 -07:00
util perf(compiler-cli): allow incremental compilation in the presence of redirected source files (#41448) 2021-04-12 21:03:26 -07:00
program.ts refactor(compiler-cli): replace the IncrementalDriver with a new design (#41475) 2021-04-13 13:05:35 -07:00
tsc_plugin.ts refactor(compiler-cli): replace the IncrementalDriver with a new design (#41475) 2021-04-13 13:05:35 -07:00