@angular/language-service 13.2.0-next.0 → 13.2.0-next.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/language-service.js +11 -22
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.2.0-next.
|
|
2
|
+
* @license Angular v13.2.0-next.1
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -19860,7 +19860,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
19860
19860
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19861
19861
|
* found in the LICENSE file at https://angular.io/license
|
|
19862
19862
|
*/
|
|
19863
|
-
new Version('13.2.0-next.
|
|
19863
|
+
new Version('13.2.0-next.1');
|
|
19864
19864
|
|
|
19865
19865
|
/**
|
|
19866
19866
|
* @license
|
|
@@ -20420,7 +20420,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20420
20420
|
function compileDeclareClassMetadata(metadata) {
|
|
20421
20421
|
const definitionMap = new DefinitionMap();
|
|
20422
20422
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
20423
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20423
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20424
20424
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20425
20425
|
definitionMap.set('type', metadata.type);
|
|
20426
20426
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -20537,7 +20537,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20537
20537
|
function createDirectiveDefinitionMap(meta) {
|
|
20538
20538
|
const definitionMap = new DefinitionMap();
|
|
20539
20539
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
20540
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20540
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20541
20541
|
// e.g. `type: MyDirective`
|
|
20542
20542
|
definitionMap.set('type', meta.internalType);
|
|
20543
20543
|
// e.g. `selector: 'some-dir'`
|
|
@@ -20755,7 +20755,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20755
20755
|
function compileDeclareFactoryFunction(meta) {
|
|
20756
20756
|
const definitionMap = new DefinitionMap();
|
|
20757
20757
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
20758
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20758
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20759
20759
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20760
20760
|
definitionMap.set('type', meta.internalType);
|
|
20761
20761
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -20797,7 +20797,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20797
20797
|
function createInjectableDefinitionMap(meta) {
|
|
20798
20798
|
const definitionMap = new DefinitionMap();
|
|
20799
20799
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
20800
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20800
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20801
20801
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20802
20802
|
definitionMap.set('type', meta.internalType);
|
|
20803
20803
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -20855,7 +20855,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20855
20855
|
function createInjectorDefinitionMap(meta) {
|
|
20856
20856
|
const definitionMap = new DefinitionMap();
|
|
20857
20857
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
20858
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20858
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20859
20859
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20860
20860
|
definitionMap.set('type', meta.internalType);
|
|
20861
20861
|
definitionMap.set('providers', meta.providers);
|
|
@@ -20892,7 +20892,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20892
20892
|
function createNgModuleDefinitionMap(meta) {
|
|
20893
20893
|
const definitionMap = new DefinitionMap();
|
|
20894
20894
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
20895
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20895
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20896
20896
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20897
20897
|
definitionMap.set('type', meta.internalType);
|
|
20898
20898
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -20950,7 +20950,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20950
20950
|
function createPipeDefinitionMap(meta) {
|
|
20951
20951
|
const definitionMap = new DefinitionMap();
|
|
20952
20952
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
20953
|
-
definitionMap.set('version', literal$1('13.2.0-next.
|
|
20953
|
+
definitionMap.set('version', literal$1('13.2.0-next.1'));
|
|
20954
20954
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20955
20955
|
// e.g. `type: MyPipe`
|
|
20956
20956
|
definitionMap.set('type', meta.internalType);
|
|
@@ -20982,7 +20982,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20982
20982
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20983
20983
|
* found in the LICENSE file at https://angular.io/license
|
|
20984
20984
|
*/
|
|
20985
|
-
new Version('13.2.0-next.
|
|
20985
|
+
new Version('13.2.0-next.1');
|
|
20986
20986
|
|
|
20987
20987
|
/**
|
|
20988
20988
|
* @license
|
|
@@ -21431,10 +21431,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21431
21431
|
* to handle a breaking change between 4.4 and 4.5.
|
|
21432
21432
|
*/
|
|
21433
21433
|
function createExportSpecifier(propertyName, name, isTypeOnly = false) {
|
|
21434
|
-
return PARSED_TS_VERSION > 4.4 ?
|
|
21435
|
-
// TODO(crisbeto): the function is cast to `any` here since g3 is still on TS 4.4.
|
|
21436
|
-
// Should be cleaned up when g3 has been updated.
|
|
21437
|
-
ts__default["default"].createExportSpecifier(isTypeOnly, propertyName, name) :
|
|
21434
|
+
return PARSED_TS_VERSION > 4.4 ? ts__default["default"].createExportSpecifier(isTypeOnly, propertyName, name) :
|
|
21438
21435
|
// TODO(crisbeto): backwards-compatibility layer for TS 4.4.
|
|
21439
21436
|
// Should be cleaned up when we drop support for it.
|
|
21440
21437
|
ts__default["default"].createExportSpecifier(propertyName, name);
|
|
@@ -22770,8 +22767,6 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
22770
22767
|
// import {Foo} from 'foo';
|
|
22771
22768
|
// or
|
|
22772
22769
|
// import {Foo as Bar} from 'foo';
|
|
22773
|
-
// TODO(crisbeto): the cast to `any` is here since g3 is still on TS 4.4.
|
|
22774
|
-
// Should be cleaned up when g3 has been updated.
|
|
22775
22770
|
if (firstDecl.isTypeOnly) {
|
|
22776
22771
|
// The import specifier can't be type-only (e.g. `import {type Foo} from '...')`.
|
|
22777
22772
|
return typeOnlyImport(typeNode, firstDecl);
|
|
@@ -31897,8 +31892,6 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
31897
31892
|
}
|
|
31898
31893
|
// All the specifiers in the cause are type-only (e.g. `import {type a, type b} from '...'`).
|
|
31899
31894
|
if (node.namedBindings !== undefined && ts__default["default"].isNamedImports(node.namedBindings) &&
|
|
31900
|
-
// TODO(crisbeto): the cast to `any` is here since g3 is still on TS 4.4.
|
|
31901
|
-
// Should be cleaned up when g3 has been updated.
|
|
31902
31895
|
node.namedBindings.elements.every(specifier => specifier.isTypeOnly)) {
|
|
31903
31896
|
return true;
|
|
31904
31897
|
}
|
|
@@ -32224,8 +32217,6 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
32224
32217
|
// Update the import path to point to the correct file using the ImportRewriter.
|
|
32225
32218
|
const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier('@angular/core', sourceFilePath);
|
|
32226
32219
|
if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
|
|
32227
|
-
// TODO(crisbeto): the cast to `any` is here since g3 is still on TS 4.4.
|
|
32228
|
-
// Should be cleaned up when g3 has been updated.
|
|
32229
32220
|
transformedStatements.push(ts__default["default"].updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts__default["default"].createStringLiteral(rewrittenModuleSpecifier), undefined));
|
|
32230
32221
|
// Record the identifier by which this imported module goes, so references to its symbols
|
|
32231
32222
|
// can be discovered later.
|
|
@@ -33398,8 +33389,6 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
33398
33389
|
* marker and does not go to the filesystem for these requests, as they are known not to exist.
|
|
33399
33390
|
*/
|
|
33400
33391
|
function createLookupResolutionHost(adapter) {
|
|
33401
|
-
// TODO(crisbeto): the cast to `any` is here since g3 is still on TS 4.4.
|
|
33402
|
-
// Should be cleaned up when g3 has been updated.
|
|
33403
33392
|
return {
|
|
33404
33393
|
directoryExists(directoryName) {
|
|
33405
33394
|
if (directoryName.includes(RESOURCE_MARKER)) {
|