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. |
||
|---|---|---|
| .. | ||
| codefixes | ||
| refactorings | ||
| utils | ||
| adapters.ts | ||
| attribute_completions.ts | ||
| BUILD.bazel | ||
| compiler_factory.ts | ||
| completions.ts | ||
| definitions.ts | ||
| language_service.ts | ||
| linked_editing_range.ts | ||
| outlining_spans.ts | ||
| quick_info.ts | ||
| quick_info_built_ins.ts | ||
| references_and_rename.ts | ||
| references_and_rename_utils.ts | ||
| semantic_tokens.ts | ||
| signature_help.ts | ||
| template_target.ts | ||
| ts_plugin.ts | ||