mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit refactors the template type checking metadata interfaces to use detached, serializable metadata rather than retaining direct references to ts.Node or ts.Declaration instances. A new tcb_adapter translates traditional TypeScript AST-bound metadata into these decoupled structures. This abstraction lays the groundwork for supporting native preprocessors (such as Rust or ts-go) which serialize metadata over JSON rather than passing live TypeScript objects. Key changes: - Introduced TcbDirectiveMetadata, TcbComponentMetadata, TcbReferenceMetadata, and TcbPipeMetadata to replace TypeCheckableDirectiveMeta where appropriate. - Substituted deep TS compilation AST references with string module names and source spans to preserve out-of-band diagnostic capabilities. - Detached generic typeParameters and transformType properties into synthesized, standalone TS mappings. - Updated generateTypeCheckBlock and corresponding Operations to consume the new metadata. |
||
|---|---|---|
| .. | ||
| linker | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| index.ts | ||
| package.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||