@angular/compiler-cli 21.2.1 → 21.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-PW54LIP6.js → chunk-6JHVJEKD.js} +5 -5
- package/bundles/chunk-FLWAEX6T.js +1 -1
- package/bundles/{chunk-VO3Q626H.js → chunk-KJC7YNMY.js} +2 -2
- package/bundles/{chunk-IG22BDVK.js → chunk-L3PEIUBN.js} +1296 -1323
- package/bundles/{chunk-WBUBKNAO.js → chunk-NU2SXS64.js} +1 -1
- package/bundles/index.js +4 -4
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/testing.js +1 -1
- package/bundles/private/tooling.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/common/src/diagnostics.d.ts +7 -7
- package/src/ngtsc/core/api/src/adapter.d.ts +1 -1
- package/src/ngtsc/incremental/src/incremental.d.ts +1 -1
- package/src/ngtsc/typecheck/api/api.d.ts +80 -4
- package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/comments.d.ts +0 -7
- package/src/ngtsc/typecheck/src/context.d.ts +1 -1
- package/src/ngtsc/typecheck/src/environment.d.ts +9 -7
- package/src/ngtsc/typecheck/src/expression.d.ts +3 -15
- package/src/ngtsc/typecheck/src/host_bindings.d.ts +1 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +5 -4
- package/src/ngtsc/typecheck/src/ops/base.d.ts +3 -3
- package/src/ngtsc/typecheck/src/ops/bindings.d.ts +11 -8
- package/src/ngtsc/typecheck/src/ops/codegen.d.ts +74 -0
- package/src/ngtsc/typecheck/src/ops/context.d.ts +5 -7
- package/src/ngtsc/typecheck/src/ops/directive_constructor.d.ts +6 -6
- package/src/ngtsc/typecheck/src/ops/directive_type.d.ts +7 -7
- package/src/ngtsc/typecheck/src/ops/element.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/events.d.ts +4 -4
- package/src/ngtsc/typecheck/src/ops/expression.d.ts +5 -5
- package/src/ngtsc/typecheck/src/ops/for_block.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/host.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/inputs.d.ts +4 -4
- package/src/ngtsc/typecheck/src/ops/let.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/references.d.ts +5 -5
- package/src/ngtsc/typecheck/src/ops/schema.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/scope.d.ts +10 -10
- package/src/ngtsc/typecheck/src/ops/selectorless.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/signal_forms.d.ts +6 -6
- package/src/ngtsc/typecheck/src/ops/template.d.ts +2 -2
- package/src/ngtsc/typecheck/src/ops/variables.d.ts +6 -6
- package/src/ngtsc/typecheck/src/reference_emit_environment.d.ts +18 -4
- package/src/ngtsc/typecheck/src/tcb_adapter.d.ts +20 -0
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +2 -1
- package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -37
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -4
- package/src/ngtsc/typecheck/src/type_check_file.d.ts +4 -2
- package/src/ngtsc/typecheck/src/type_constructor.d.ts +4 -3
|
@@ -14,6 +14,7 @@ import { DomSchemaChecker } from './dom';
|
|
|
14
14
|
import { Environment } from './environment';
|
|
15
15
|
import { OutOfBandDiagnosticRecorder } from './oob';
|
|
16
16
|
import { TcbGenericContextBehavior } from './ops/context';
|
|
17
|
+
import { TcbExpr } from './ops/codegen';
|
|
17
18
|
/**
|
|
18
19
|
* An `Environment` representing the single type-checking file into which most (if not all) Type
|
|
19
20
|
* Check Blocks (TCBs) will be generated.
|
|
@@ -24,11 +25,12 @@ import { TcbGenericContextBehavior } from './ops/context';
|
|
|
24
25
|
*/
|
|
25
26
|
export declare class TypeCheckFile extends Environment {
|
|
26
27
|
readonly fileName: AbsoluteFsPath;
|
|
28
|
+
readonly isTypeCheckFile = true;
|
|
27
29
|
private nextTcbId;
|
|
28
30
|
private tcbStatements;
|
|
29
31
|
constructor(fileName: AbsoluteFsPath, config: TypeCheckingConfig, refEmitter: ReferenceEmitter, reflector: ReflectionHost, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>);
|
|
30
32
|
addTypeCheckBlock(ref: Reference<ClassDeclaration<ts.ClassDeclaration>>, meta: TypeCheckBlockMetadata, domSchemaChecker: DomSchemaChecker, oobRecorder: OutOfBandDiagnosticRecorder, genericContextBehavior: TcbGenericContextBehavior): void;
|
|
31
|
-
render(
|
|
32
|
-
getPreludeStatements():
|
|
33
|
+
render(): string;
|
|
34
|
+
getPreludeStatements(): TcbExpr[];
|
|
33
35
|
}
|
|
34
36
|
export declare function typeCheckFilePath(rootDirs: AbsoluteFsPath[]): AbsoluteFsPath;
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import ts from 'typescript';
|
|
9
9
|
import { ClassDeclaration, ReflectionHost } from '../../reflection';
|
|
10
|
-
import { TypeCtorMetadata } from '../api';
|
|
10
|
+
import { TypeCtorMetadata, TcbTypeParameter } from '../api';
|
|
11
11
|
import { ReferenceEmitEnvironment } from './reference_emit_environment';
|
|
12
|
-
|
|
12
|
+
import { TcbExpr } from './ops/codegen';
|
|
13
|
+
export declare function generateTypeCtorDeclarationFn(env: ReferenceEmitEnvironment, meta: TypeCtorMetadata, nodeTypeRef: ts.EntityName, typeParams: TcbTypeParameter[] | undefined): TcbExpr;
|
|
13
14
|
/**
|
|
14
15
|
* Generate an inline type constructor for the given class and metadata.
|
|
15
16
|
*
|
|
@@ -45,5 +46,5 @@ export declare function generateTypeCtorDeclarationFn(env: ReferenceEmitEnvironm
|
|
|
45
46
|
* @param meta additional metadata required to generate the type constructor.
|
|
46
47
|
* @returns a `ts.MethodDeclaration` for the type constructor.
|
|
47
48
|
*/
|
|
48
|
-
export declare function generateInlineTypeCtor(env: ReferenceEmitEnvironment, node: ClassDeclaration<ts.ClassDeclaration>, meta: TypeCtorMetadata):
|
|
49
|
+
export declare function generateInlineTypeCtor(env: ReferenceEmitEnvironment, node: ClassDeclaration<ts.ClassDeclaration>, meta: TypeCtorMetadata): string;
|
|
49
50
|
export declare function requiresInlineTypeCtor(node: ClassDeclaration<ts.ClassDeclaration>, host: ReflectionHost, env: ReferenceEmitEnvironment): boolean;
|