@angular/compiler-cli 21.0.0-rc.0 → 21.0.0-rc.1
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-ZOZ6XVF3.js → chunk-5UJIUEKT.js} +220 -121
- package/bundles/{chunk-ZOLVJRLX.js → chunk-DBAV4W4V.js} +2 -2
- package/bundles/chunk-DT6FD4OE.js +1 -1
- package/bundles/{chunk-3CWKYDQ7.js → chunk-VBBJY6IR.js} +235 -20
- package/bundles/{chunk-HSIRUBJU.js → chunk-YVYYMXOI.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/diagnostics/src/error_code.d.ts +2 -0
- package/src/ngtsc/docs/src/entities.d.ts +7 -1
- package/src/ngtsc/docs/src/extractor.d.ts +6 -0
- package/src/ngtsc/docs/src/namespace_extractor.d.ts +15 -0
- package/src/ngtsc/docs/src/variable_extractor.d.ts +16 -0
- package/src/ngtsc/translator/src/translator.d.ts +1 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +5 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import ts from 'typescript';
|
|
9
|
+
import { DocEntry } from './entities';
|
|
10
|
+
/**
|
|
11
|
+
* Extracts documentation entries from a variable statement. A variable statement can have
|
|
12
|
+
* multiple declarations, so this function extracts a doc entry for each declaration.
|
|
13
|
+
* @param statement The TypeScript AST node for the variable statement.
|
|
14
|
+
* @param typeChecker The TypeScript type checker.
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractFromVariableStatement(statement: ts.VariableStatement, typeChecker: ts.TypeChecker): DocEntry[];
|
|
@@ -35,7 +35,7 @@ export declare class ExpressionTranslatorVisitor<TFile, TStatement, TExpression>
|
|
|
35
35
|
visitTemplateLiteralExpr(ast: o.TemplateLiteralExpr, context: Context): TExpression;
|
|
36
36
|
visitInstantiateExpr(ast: o.InstantiateExpr, context: Context): TExpression;
|
|
37
37
|
visitLiteralExpr(ast: o.LiteralExpr, _context: Context): TExpression;
|
|
38
|
-
visitRegularExpressionLiteral(ast: o.
|
|
38
|
+
visitRegularExpressionLiteral(ast: o.RegularExpressionLiteralExpr, context: any): TExpression;
|
|
39
39
|
visitLocalizedString(ast: o.LocalizedString, context: Context): TExpression;
|
|
40
40
|
private createTaggedTemplateExpression;
|
|
41
41
|
/**
|
|
@@ -129,6 +129,10 @@ export interface OutOfBandDiagnosticRecorder {
|
|
|
129
129
|
* correctly (e.g. more than one root node).
|
|
130
130
|
*/
|
|
131
131
|
deferImplicitTriggerInvalidPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
|
|
132
|
+
/**
|
|
133
|
+
* Reports an unsupported binding on a form `Field` node.
|
|
134
|
+
*/
|
|
135
|
+
formFieldUnsupportedBinding(id: TypeCheckId, node: TmplAstBoundAttribute | TmplAstTextAttribute): void;
|
|
132
136
|
}
|
|
133
137
|
export declare class OutOfBandDiagnosticRecorderImpl implements OutOfBandDiagnosticRecorder {
|
|
134
138
|
private resolver;
|
|
@@ -163,4 +167,5 @@ export declare class OutOfBandDiagnosticRecorderImpl implements OutOfBandDiagnos
|
|
|
163
167
|
unclaimedDirectiveBinding(id: TypeCheckId, directive: TmplAstDirective, node: TmplAstBoundAttribute | TmplAstTextAttribute | TmplAstBoundEvent): void;
|
|
164
168
|
deferImplicitTriggerMissingPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
|
|
165
169
|
deferImplicitTriggerInvalidPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
|
|
170
|
+
formFieldUnsupportedBinding(id: TypeCheckId, node: TmplAstBoundAttribute | TmplAstTextAttribute): void;
|
|
166
171
|
}
|