@angular/compiler-cli 19.1.0-next.4 → 19.1.0
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-AHHY35ZY.js → chunk-47HIVWNK.js} +82 -82
- package/bundles/chunk-47HIVWNK.js.map +6 -0
- package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
- package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
- package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
- package/bundles/{chunk-AAMTATB3.js → chunk-KEYCV7GA.js} +31 -31
- package/bundles/{chunk-QFDZTXLY.js → chunk-MIGBDOBM.js} +3 -3
- package/bundles/{chunk-JQUCZAGS.js → chunk-MQBGWKBR.js} +5 -5
- package/bundles/{chunk-ACKPW32M.js → chunk-OJIDZREH.js} +173 -143
- package/bundles/{chunk-ACKPW32M.js.map → chunk-OJIDZREH.js.map} +1 -1
- package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
- package/bundles/{chunk-LSXJNKBJ.js → chunk-VDCSJC7H.js} +12 -12
- package/bundles/{chunk-Q73LD63I.js → chunk-WKHF7UQD.js} +55 -47
- package/bundles/chunk-WKHF7UQD.js.map +6 -0
- package/bundles/index.js +17 -13
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -1
- 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 +1 -1
- package/src/ngtsc/hmr/src/extract_dependencies.d.ts +3 -2
- package/src/ngtsc/hmr/src/metadata.d.ts +3 -2
- package/src/ngtsc/reflection/src/host.d.ts +4 -4
- package/src/ngtsc/reflection/src/typescript.d.ts +9 -3
- package/src/ngtsc/typecheck/api/symbols.d.ts +1 -1
- package/bundles/chunk-AHHY35ZY.js.map +0 -6
- package/bundles/chunk-Q73LD63I.js.map +0 -6
- /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
- /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
- /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
- /package/bundles/{chunk-AAMTATB3.js.map → chunk-KEYCV7GA.js.map} +0 -0
- /package/bundles/{chunk-QFDZTXLY.js.map → chunk-MIGBDOBM.js.map} +0 -0
- /package/bundles/{chunk-JQUCZAGS.js.map → chunk-MQBGWKBR.js.map} +0 -0
- /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
- /package/bundles/{chunk-LSXJNKBJ.js.map → chunk-VDCSJC7H.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
__require
|
|
7
7
|
} from "./chunk-KPQ72R34.js";
|
|
8
8
|
|
|
9
|
-
// bazel-out/
|
|
9
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
10
10
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
11
11
|
function normalizeSeparators(path) {
|
|
12
12
|
return path.replace(/\\/g, "/");
|
|
@@ -22,7 +22,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
22
22
|
return sf;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// bazel-out/
|
|
25
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
26
26
|
var InvalidFileSystem = class {
|
|
27
27
|
exists(path) {
|
|
28
28
|
throw makeError();
|
|
@@ -110,7 +110,7 @@ function makeError() {
|
|
|
110
110
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// bazel-out/
|
|
113
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
114
114
|
var fs = new InvalidFileSystem();
|
|
115
115
|
function getFileSystem() {
|
|
116
116
|
return fs;
|
|
@@ -167,7 +167,7 @@ function toRelativeImport(relativePath) {
|
|
|
167
167
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// bazel-out/
|
|
170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
171
171
|
import * as os from "os";
|
|
172
172
|
import ts from "typescript";
|
|
173
173
|
var NgtscCompilerHost = class {
|
|
@@ -227,7 +227,7 @@ var NgtscCompilerHost = class {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
// bazel-out/
|
|
230
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
231
231
|
var LogicalProjectPath = {
|
|
232
232
|
relativePathBetween: function(from, to) {
|
|
233
233
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -276,7 +276,7 @@ function isWithinBasePath(base, path) {
|
|
|
276
276
|
return isLocalRelativePath(relative(base, path));
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
// bazel-out/
|
|
279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
280
280
|
import fs2 from "fs";
|
|
281
281
|
import { createRequire } from "module";
|
|
282
282
|
import * as p from "path";
|
|
@@ -380,7 +380,7 @@ function toggleCase(str) {
|
|
|
380
380
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
// bazel-out/
|
|
383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/ts_read_directory.mjs
|
|
384
384
|
import ts2 from "typescript";
|
|
385
385
|
function createFileSystemTsReadDirectoryFn(fs3) {
|
|
386
386
|
if (ts2.matchFiles === void 0) {
|
|
@@ -443,4 +443,4 @@ export {
|
|
|
443
443
|
* Use of this source code is governed by an MIT-style license that can be
|
|
444
444
|
* found in the LICENSE file at https://angular.dev/license
|
|
445
445
|
*/
|
|
446
|
-
//# sourceMappingURL=chunk-
|
|
446
|
+
//# sourceMappingURL=chunk-STORTTKY.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
tryParseSignalInputMapping,
|
|
11
11
|
tryParseSignalModelMapping,
|
|
12
12
|
tryParseSignalQueryFromInitializer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OJIDZREH.js";
|
|
14
14
|
import {
|
|
15
15
|
ImportManager,
|
|
16
16
|
ImportedSymbolsTracker,
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
isAliasImportDeclaration,
|
|
19
19
|
loadIsReferencedAliasDeclarationPatch,
|
|
20
20
|
reflectClassMember
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WKHF7UQD.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/
|
|
23
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.mjs
|
|
24
24
|
import ts from "typescript";
|
|
25
25
|
function isAngularDecorator2(decorator, isCore) {
|
|
26
26
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
@@ -325,10 +325,10 @@ function cloneClassElementWithModifiers(node, modifiers) {
|
|
|
325
325
|
return ts.setOriginalNode(clone, node);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
// bazel-out/
|
|
328
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
329
329
|
import ts4 from "typescript";
|
|
330
330
|
|
|
331
|
-
// bazel-out/
|
|
331
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform_api.mjs
|
|
332
332
|
import ts2 from "typescript";
|
|
333
333
|
function createSyntheticAngularCoreDecoratorAccess(factory, importManager, ngClassDecorator, sourceFile, decoratorName) {
|
|
334
334
|
const classDecoratorIdentifier = ts2.isIdentifier(ngClassDecorator.identifier) ? ngClassDecorator.identifier : ngClassDecorator.identifier.expression;
|
|
@@ -345,7 +345,7 @@ function castAsAny(factory, expr) {
|
|
|
345
345
|
return factory.createAsExpression(expr, factory.createKeywordTypeNode(ts2.SyntaxKind.AnyKeyword));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// bazel-out/
|
|
348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/input_function.mjs
|
|
349
349
|
var signalInputsTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
350
350
|
var _a, _b;
|
|
351
351
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Input", isCore))) {
|
|
@@ -367,7 +367,7 @@ var signalInputsTransform = (member, sourceFile, host, factory, importTracker, i
|
|
|
367
367
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
// bazel-out/
|
|
370
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/model_function.mjs
|
|
371
371
|
import ts3 from "typescript";
|
|
372
372
|
var signalModelTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
373
373
|
var _a, _b;
|
|
@@ -401,7 +401,7 @@ function createDecorator(name, config, classDecorator, factory, sourceFile, impo
|
|
|
401
401
|
return factory.createDecorator(factory.createCallExpression(callTarget, void 0, [config]));
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
// bazel-out/
|
|
404
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/output_function.mjs
|
|
405
405
|
var initializerApiOutputTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
406
406
|
var _a, _b;
|
|
407
407
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Output", isCore))) {
|
|
@@ -415,7 +415,7 @@ var initializerApiOutputTransform = (member, sourceFile, host, factory, importTr
|
|
|
415
415
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
// bazel-out/
|
|
418
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.mjs
|
|
419
419
|
var queryFunctionToDecorator = {
|
|
420
420
|
viewChild: "ViewChild",
|
|
421
421
|
viewChildren: "ViewChildren",
|
|
@@ -448,7 +448,7 @@ var queryFunctionsTransforms = (member, sourceFile, host, factory, importTracker
|
|
|
448
448
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_a = member.node.modifiers) != null ? _a : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
// bazel-out/
|
|
451
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
452
452
|
var decoratorsWithInputs = ["Directive", "Component"];
|
|
453
453
|
var propertyTransforms = [
|
|
454
454
|
signalInputsTransform,
|
|
@@ -501,7 +501,7 @@ function createTransformVisitor(ctx, host, importManager, importTracker, isCore,
|
|
|
501
501
|
return visitor;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
// bazel-out/
|
|
504
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/index.mjs
|
|
505
505
|
function angularJitApplicationTransform(program, isCore = false, shouldTransformClass) {
|
|
506
506
|
const typeChecker = program.getTypeChecker();
|
|
507
507
|
const reflectionHost = new TypeScriptReflectionHost(typeChecker);
|
|
@@ -536,4 +536,4 @@ export {
|
|
|
536
536
|
* Use of this source code is governed by an MIT-style license that can be
|
|
537
537
|
* found in the LICENSE file at https://angular.dev/license
|
|
538
538
|
*/
|
|
539
|
-
//# sourceMappingURL=chunk-
|
|
539
|
+
//# sourceMappingURL=chunk-VDCSJC7H.js.map
|
|
@@ -12,12 +12,9 @@ import {
|
|
|
12
12
|
resolve,
|
|
13
13
|
stripExtension,
|
|
14
14
|
toRelativeImport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-STORTTKY.js";
|
|
16
16
|
|
|
17
|
-
// bazel-out/
|
|
18
|
-
import ts from "typescript";
|
|
19
|
-
|
|
20
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
21
18
|
var ErrorCode;
|
|
22
19
|
(function(ErrorCode2) {
|
|
23
20
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -114,7 +111,7 @@ var ErrorCode;
|
|
|
114
111
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
115
112
|
})(ErrorCode || (ErrorCode = {}));
|
|
116
113
|
|
|
117
|
-
// bazel-out/
|
|
114
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
118
115
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
119
116
|
function replaceTsWithNgInErrors(errors) {
|
|
120
117
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -123,7 +120,8 @@ function ngErrorCode(code) {
|
|
|
123
120
|
return parseInt("-99" + code);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
// bazel-out/
|
|
123
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
124
|
+
import ts from "typescript";
|
|
127
125
|
var FatalDiagnosticError = class extends Error {
|
|
128
126
|
code;
|
|
129
127
|
node;
|
|
@@ -191,7 +189,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
191
189
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
192
190
|
}
|
|
193
191
|
|
|
194
|
-
// bazel-out/
|
|
192
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
195
193
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
196
194
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
197
195
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -203,10 +201,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
203
201
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
204
202
|
]);
|
|
205
203
|
|
|
206
|
-
// bazel-out/
|
|
204
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
207
205
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
208
206
|
|
|
209
|
-
// bazel-out/
|
|
207
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
210
208
|
var ExtendedTemplateDiagnosticName;
|
|
211
209
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
212
210
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -224,10 +222,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
224
222
|
ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
|
|
225
223
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
226
224
|
|
|
227
|
-
// bazel-out/
|
|
225
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
228
226
|
import ts5 from "typescript";
|
|
229
227
|
|
|
230
|
-
// bazel-out/
|
|
228
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
231
229
|
import ts2 from "typescript";
|
|
232
230
|
function isDecoratorIdentifier(exp) {
|
|
233
231
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -250,7 +248,7 @@ var ClassMemberAccessLevel;
|
|
|
250
248
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
251
249
|
var AmbientImport = {};
|
|
252
250
|
|
|
253
|
-
// bazel-out/
|
|
251
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
254
252
|
import ts3 from "typescript";
|
|
255
253
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
256
254
|
var _a, _b;
|
|
@@ -434,7 +432,7 @@ function extractModuleName(node) {
|
|
|
434
432
|
return node.moduleSpecifier.text;
|
|
435
433
|
}
|
|
436
434
|
|
|
437
|
-
// bazel-out/
|
|
435
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
438
436
|
import ts4 from "typescript";
|
|
439
437
|
function isNamedClassDeclaration(node) {
|
|
440
438
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -458,13 +456,15 @@ function classMemberAccessLevelToString(level) {
|
|
|
458
456
|
}
|
|
459
457
|
}
|
|
460
458
|
|
|
461
|
-
// bazel-out/
|
|
459
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
462
460
|
var TypeScriptReflectionHost = class {
|
|
463
461
|
checker;
|
|
464
462
|
isLocalCompilation;
|
|
465
|
-
|
|
463
|
+
skipPrivateValueDeclarationTypes;
|
|
464
|
+
constructor(checker, isLocalCompilation = false, skipPrivateValueDeclarationTypes = false) {
|
|
466
465
|
this.checker = checker;
|
|
467
466
|
this.isLocalCompilation = isLocalCompilation;
|
|
467
|
+
this.skipPrivateValueDeclarationTypes = skipPrivateValueDeclarationTypes;
|
|
468
468
|
}
|
|
469
469
|
getDecoratorsOfDeclaration(declaration) {
|
|
470
470
|
const decorators = ts5.canHaveDecorators(declaration) ? ts5.getDecorators(declaration) : void 0;
|
|
@@ -682,7 +682,7 @@ var TypeScriptReflectionHost = class {
|
|
|
682
682
|
while (symbol.flags & ts5.SymbolFlags.Alias) {
|
|
683
683
|
symbol = this.checker.getAliasedSymbol(symbol);
|
|
684
684
|
}
|
|
685
|
-
if (symbol.valueDeclaration !== void 0) {
|
|
685
|
+
if (symbol.valueDeclaration !== void 0 && (!this.skipPrivateValueDeclarationTypes || !isPrivateSymbol(this.checker, symbol))) {
|
|
686
686
|
return {
|
|
687
687
|
node: symbol.valueDeclaration,
|
|
688
688
|
viaModule: this._viaModule(symbol.valueDeclaration, originalId, importInfo)
|
|
@@ -927,6 +927,14 @@ function propertyNameToString(node) {
|
|
|
927
927
|
return null;
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
+
function isPrivateSymbol(typeChecker, symbol) {
|
|
931
|
+
var _a;
|
|
932
|
+
if (symbol.valueDeclaration !== void 0) {
|
|
933
|
+
const symbolType = typeChecker.getTypeOfSymbolAtLocation(symbol, symbol.valueDeclaration);
|
|
934
|
+
return ((_a = symbolType == null ? void 0 : symbolType.symbol) == null ? void 0 : _a.name.startsWith("\u0275")) === true;
|
|
935
|
+
}
|
|
936
|
+
return false;
|
|
937
|
+
}
|
|
930
938
|
function getQualifiedNameRoot(qualifiedName) {
|
|
931
939
|
while (ts5.isQualifiedName(qualifiedName.left)) {
|
|
932
940
|
qualifiedName = qualifiedName.left;
|
|
@@ -954,7 +962,7 @@ function getExportedName(decl, originalId) {
|
|
|
954
962
|
}
|
|
955
963
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
956
964
|
|
|
957
|
-
// bazel-out/
|
|
965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
958
966
|
import ts6 from "typescript";
|
|
959
967
|
var TS = /\.tsx?$/i;
|
|
960
968
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1055,7 +1063,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1055
1063
|
return redirectInfo.unredirected;
|
|
1056
1064
|
}
|
|
1057
1065
|
|
|
1058
|
-
// bazel-out/
|
|
1066
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1059
1067
|
var Reference = class {
|
|
1060
1068
|
node;
|
|
1061
1069
|
bestGuessOwningModule;
|
|
@@ -1127,14 +1135,14 @@ var Reference = class {
|
|
|
1127
1135
|
}
|
|
1128
1136
|
};
|
|
1129
1137
|
|
|
1130
|
-
// bazel-out/
|
|
1138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1131
1139
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1132
1140
|
|
|
1133
|
-
// bazel-out/
|
|
1141
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1134
1142
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1135
1143
|
import ts7 from "typescript";
|
|
1136
1144
|
|
|
1137
|
-
// bazel-out/
|
|
1145
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1138
1146
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1139
1147
|
const exports = reflector.getExportsOfModule(file);
|
|
1140
1148
|
if (exports === null) {
|
|
@@ -1154,7 +1162,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1154
1162
|
return foundExportName;
|
|
1155
1163
|
}
|
|
1156
1164
|
|
|
1157
|
-
// bazel-out/
|
|
1165
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1158
1166
|
var ImportFlags;
|
|
1159
1167
|
(function(ImportFlags2) {
|
|
1160
1168
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1401,7 +1409,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1401
1409
|
}
|
|
1402
1410
|
};
|
|
1403
1411
|
|
|
1404
|
-
// bazel-out/
|
|
1412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1405
1413
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1406
1414
|
var UnifiedModulesAliasingHost = class {
|
|
1407
1415
|
unifiedModulesHost;
|
|
@@ -1470,7 +1478,7 @@ var AliasStrategy = class {
|
|
|
1470
1478
|
}
|
|
1471
1479
|
};
|
|
1472
1480
|
|
|
1473
|
-
// bazel-out/
|
|
1481
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1474
1482
|
function relativePathBetween(from, to) {
|
|
1475
1483
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1476
1484
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1489,7 +1497,7 @@ function getProjectRelativePath(fileName, rootDirs, compilerHost) {
|
|
|
1489
1497
|
return null;
|
|
1490
1498
|
}
|
|
1491
1499
|
|
|
1492
|
-
// bazel-out/
|
|
1500
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1493
1501
|
var NoopImportRewriter = class {
|
|
1494
1502
|
rewriteSymbol(symbol, specifier) {
|
|
1495
1503
|
return symbol;
|
|
@@ -1549,7 +1557,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1549
1557
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1550
1558
|
}
|
|
1551
1559
|
|
|
1552
|
-
// bazel-out/
|
|
1560
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1553
1561
|
import ts8 from "typescript";
|
|
1554
1562
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1555
1563
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1584,7 +1592,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1584
1592
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
1585
1593
|
}
|
|
1586
1594
|
|
|
1587
|
-
// bazel-out/
|
|
1595
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1588
1596
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1589
1597
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1590
1598
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1623,7 +1631,7 @@ var DefaultImportTracker = class {
|
|
|
1623
1631
|
}
|
|
1624
1632
|
};
|
|
1625
1633
|
|
|
1626
|
-
// bazel-out/
|
|
1634
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1627
1635
|
import ts9 from "typescript";
|
|
1628
1636
|
var AssumeEager = "AssumeEager";
|
|
1629
1637
|
var DeferredSymbolTracker = class {
|
|
@@ -1746,7 +1754,7 @@ var DeferredSymbolTracker = class {
|
|
|
1746
1754
|
}
|
|
1747
1755
|
};
|
|
1748
1756
|
|
|
1749
|
-
// bazel-out/
|
|
1757
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1750
1758
|
import ts10 from "typescript";
|
|
1751
1759
|
var ImportedSymbolsTracker = class {
|
|
1752
1760
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1814,7 +1822,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1814
1822
|
}
|
|
1815
1823
|
};
|
|
1816
1824
|
|
|
1817
|
-
// bazel-out/
|
|
1825
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1818
1826
|
import ts11 from "typescript";
|
|
1819
1827
|
var LocalCompilationExtraImportsTracker = class {
|
|
1820
1828
|
typeChecker;
|
|
@@ -1866,7 +1874,7 @@ function removeQuotations(s) {
|
|
|
1866
1874
|
return s.substring(1, s.length - 1).trim();
|
|
1867
1875
|
}
|
|
1868
1876
|
|
|
1869
|
-
// bazel-out/
|
|
1877
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1870
1878
|
var ModuleResolver = class {
|
|
1871
1879
|
program;
|
|
1872
1880
|
compilerOptions;
|
|
@@ -1887,10 +1895,10 @@ var ModuleResolver = class {
|
|
|
1887
1895
|
}
|
|
1888
1896
|
};
|
|
1889
1897
|
|
|
1890
|
-
// bazel-out/
|
|
1898
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1891
1899
|
import ts16 from "typescript";
|
|
1892
1900
|
|
|
1893
|
-
// bazel-out/
|
|
1901
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1894
1902
|
import ts12 from "typescript";
|
|
1895
1903
|
function createGenerateUniqueIdentifierHelper() {
|
|
1896
1904
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1916,7 +1924,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1916
1924
|
};
|
|
1917
1925
|
}
|
|
1918
1926
|
|
|
1919
|
-
// bazel-out/
|
|
1927
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1920
1928
|
import ts13 from "typescript";
|
|
1921
1929
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1922
1930
|
return (ctx) => {
|
|
@@ -1983,7 +1991,7 @@ function isImportStatement(stmt) {
|
|
|
1983
1991
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1984
1992
|
}
|
|
1985
1993
|
|
|
1986
|
-
// bazel-out/
|
|
1994
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1987
1995
|
import ts14 from "typescript";
|
|
1988
1996
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1989
1997
|
const requestHash = hashImportRequest(request);
|
|
@@ -2010,7 +2018,7 @@ function hashImportRequest(req) {
|
|
|
2010
2018
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2011
2019
|
}
|
|
2012
2020
|
|
|
2013
|
-
// bazel-out/
|
|
2021
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2014
2022
|
import ts15 from "typescript";
|
|
2015
2023
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2016
2024
|
let candidateImportToBeUpdated = null;
|
|
@@ -2070,7 +2078,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2070
2078
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2071
2079
|
}
|
|
2072
2080
|
|
|
2073
|
-
// bazel-out/
|
|
2081
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2074
2082
|
var presetImportManagerForceNamespaceImports = {
|
|
2075
2083
|
disableOriginalSourceFileReuse: true,
|
|
2076
2084
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2293,7 +2301,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2293
2301
|
}
|
|
2294
2302
|
}
|
|
2295
2303
|
|
|
2296
|
-
// bazel-out/
|
|
2304
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2297
2305
|
var Context = class {
|
|
2298
2306
|
isStatement;
|
|
2299
2307
|
constructor(isStatement) {
|
|
@@ -2307,7 +2315,7 @@ var Context = class {
|
|
|
2307
2315
|
}
|
|
2308
2316
|
};
|
|
2309
2317
|
|
|
2310
|
-
// bazel-out/
|
|
2318
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2311
2319
|
import * as o from "@angular/compiler";
|
|
2312
2320
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2313
2321
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2563,7 +2571,7 @@ function createRange(span) {
|
|
|
2563
2571
|
};
|
|
2564
2572
|
}
|
|
2565
2573
|
|
|
2566
|
-
// bazel-out/
|
|
2574
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2567
2575
|
import ts17 from "typescript";
|
|
2568
2576
|
var INELIGIBLE = {};
|
|
2569
2577
|
function canEmitType(type, canEmit) {
|
|
@@ -2639,11 +2647,11 @@ var TypeEmitter = class {
|
|
|
2639
2647
|
}
|
|
2640
2648
|
};
|
|
2641
2649
|
|
|
2642
|
-
// bazel-out/
|
|
2650
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2643
2651
|
import * as o2 from "@angular/compiler";
|
|
2644
2652
|
import ts19 from "typescript";
|
|
2645
2653
|
|
|
2646
|
-
// bazel-out/
|
|
2654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2647
2655
|
import ts18 from "typescript";
|
|
2648
2656
|
function tsNumericExpression(value) {
|
|
2649
2657
|
if (value < 0) {
|
|
@@ -2653,7 +2661,7 @@ function tsNumericExpression(value) {
|
|
|
2653
2661
|
return ts18.factory.createNumericLiteral(value);
|
|
2654
2662
|
}
|
|
2655
2663
|
|
|
2656
|
-
// bazel-out/
|
|
2664
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2657
2665
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2658
2666
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2659
2667
|
}
|
|
@@ -2874,7 +2882,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2874
2882
|
}
|
|
2875
2883
|
};
|
|
2876
2884
|
|
|
2877
|
-
// bazel-out/
|
|
2885
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2878
2886
|
import ts20 from "typescript";
|
|
2879
2887
|
var PureAnnotation;
|
|
2880
2888
|
(function(PureAnnotation2) {
|
|
@@ -3078,7 +3086,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3078
3086
|
}
|
|
3079
3087
|
}
|
|
3080
3088
|
|
|
3081
|
-
// bazel-out/
|
|
3089
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3082
3090
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3083
3091
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3084
3092
|
}
|
|
@@ -3178,4 +3186,4 @@ export {
|
|
|
3178
3186
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3179
3187
|
* found in the LICENSE file at https://angular.dev/license
|
|
3180
3188
|
*/
|
|
3181
|
-
//# sourceMappingURL=chunk-
|
|
3189
|
+
//# sourceMappingURL=chunk-WKHF7UQD.js.map
|