@angular/language-service 12.2.7 → 12.2.11
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/ivy.js +22 -14
- package/bundles/language-service.js +21 -13
- package/package.json +1 -1
package/bundles/ivy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.11
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -19782,7 +19782,8 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
19782
19782
|
type: wrapReference(meta.type),
|
|
19783
19783
|
internalType: new WrappedNodeExpr(meta.type),
|
|
19784
19784
|
typeArgumentCount: 0,
|
|
19785
|
-
deps: meta.deps
|
|
19785
|
+
deps: Array.isArray(meta.deps) ? meta.deps.map(convertR3DeclareDependencyMetadata) :
|
|
19786
|
+
meta.deps,
|
|
19786
19787
|
target: meta.target,
|
|
19787
19788
|
});
|
|
19788
19789
|
return this.jitExpression(factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);
|
|
@@ -20073,7 +20074,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20073
20074
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20074
20075
|
* found in the LICENSE file at https://angular.io/license
|
|
20075
20076
|
*/
|
|
20076
|
-
const VERSION$1 = new Version('12.2.
|
|
20077
|
+
const VERSION$1 = new Version('12.2.11');
|
|
20077
20078
|
|
|
20078
20079
|
/**
|
|
20079
20080
|
* @license
|
|
@@ -20712,7 +20713,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20712
20713
|
function compileDeclareClassMetadata(metadata) {
|
|
20713
20714
|
const definitionMap = new DefinitionMap();
|
|
20714
20715
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
20715
|
-
definitionMap.set('version', literal('12.2.
|
|
20716
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
20716
20717
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
20717
20718
|
definitionMap.set('type', metadata.type);
|
|
20718
20719
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -20752,7 +20753,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20752
20753
|
function createDirectiveDefinitionMap(meta) {
|
|
20753
20754
|
const definitionMap = new DefinitionMap();
|
|
20754
20755
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
20755
|
-
definitionMap.set('version', literal('12.2.
|
|
20756
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
20756
20757
|
// e.g. `type: MyDirective`
|
|
20757
20758
|
definitionMap.set('type', meta.internalType);
|
|
20758
20759
|
// e.g. `selector: 'some-dir'`
|
|
@@ -20969,7 +20970,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20969
20970
|
function compileDeclareFactoryFunction(meta) {
|
|
20970
20971
|
const definitionMap = new DefinitionMap();
|
|
20971
20972
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
20972
|
-
definitionMap.set('version', literal('12.2.
|
|
20973
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
20973
20974
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
20974
20975
|
definitionMap.set('type', meta.internalType);
|
|
20975
20976
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -21011,7 +21012,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21011
21012
|
function createInjectableDefinitionMap(meta) {
|
|
21012
21013
|
const definitionMap = new DefinitionMap();
|
|
21013
21014
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
21014
|
-
definitionMap.set('version', literal('12.2.
|
|
21015
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
21015
21016
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21016
21017
|
definitionMap.set('type', meta.internalType);
|
|
21017
21018
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -21090,7 +21091,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21090
21091
|
function createInjectorDefinitionMap(meta) {
|
|
21091
21092
|
const definitionMap = new DefinitionMap();
|
|
21092
21093
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
21093
|
-
definitionMap.set('version', literal('12.2.
|
|
21094
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
21094
21095
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21095
21096
|
definitionMap.set('type', meta.internalType);
|
|
21096
21097
|
definitionMap.set('providers', meta.providers);
|
|
@@ -21127,7 +21128,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21127
21128
|
function createNgModuleDefinitionMap(meta) {
|
|
21128
21129
|
const definitionMap = new DefinitionMap();
|
|
21129
21130
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
21130
|
-
definitionMap.set('version', literal('12.2.
|
|
21131
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
21131
21132
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21132
21133
|
definitionMap.set('type', meta.internalType);
|
|
21133
21134
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -21185,7 +21186,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21185
21186
|
function createPipeDefinitionMap(meta) {
|
|
21186
21187
|
const definitionMap = new DefinitionMap();
|
|
21187
21188
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21188
|
-
definitionMap.set('version', literal('12.2.
|
|
21189
|
+
definitionMap.set('version', literal('12.2.11'));
|
|
21189
21190
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21190
21191
|
// e.g. `type: MyPipe`
|
|
21191
21192
|
definitionMap.set('type', meta.internalType);
|
|
@@ -21217,7 +21218,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21217
21218
|
* Use of this source code is governed by an MIT-style license that can be
|
|
21218
21219
|
* found in the LICENSE file at https://angular.io/license
|
|
21219
21220
|
*/
|
|
21220
|
-
const VERSION$2 = new Version('12.2.
|
|
21221
|
+
const VERSION$2 = new Version('12.2.11');
|
|
21221
21222
|
|
|
21222
21223
|
/**
|
|
21223
21224
|
* @license
|
|
@@ -31566,7 +31567,7 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
31566
31567
|
function maybeUpdateDecorator(dec, reflector, token) {
|
|
31567
31568
|
const source = reflector.getImportOfIdentifier(dec);
|
|
31568
31569
|
if (source === null || source.from !== '@angular/core') {
|
|
31569
|
-
return;
|
|
31570
|
+
return false;
|
|
31570
31571
|
}
|
|
31571
31572
|
switch (source.name) {
|
|
31572
31573
|
case 'Inject':
|
|
@@ -31583,16 +31584,23 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
31583
31584
|
case 'Self':
|
|
31584
31585
|
meta.self = true;
|
|
31585
31586
|
break;
|
|
31587
|
+
default:
|
|
31588
|
+
return false;
|
|
31586
31589
|
}
|
|
31590
|
+
return true;
|
|
31587
31591
|
}
|
|
31588
31592
|
if (ts$1.isArrayLiteralExpression(dep)) {
|
|
31589
31593
|
dep.elements.forEach(el => {
|
|
31594
|
+
let isDecorator = false;
|
|
31590
31595
|
if (ts$1.isIdentifier(el)) {
|
|
31591
|
-
maybeUpdateDecorator(el, reflector);
|
|
31596
|
+
isDecorator = maybeUpdateDecorator(el, reflector);
|
|
31592
31597
|
}
|
|
31593
31598
|
else if (ts$1.isNewExpression(el) && ts$1.isIdentifier(el.expression)) {
|
|
31594
31599
|
const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || undefined;
|
|
31595
|
-
maybeUpdateDecorator(el.expression, reflector, token);
|
|
31600
|
+
isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
|
|
31601
|
+
}
|
|
31602
|
+
if (!isDecorator) {
|
|
31603
|
+
meta.token = new WrappedNodeExpr(el);
|
|
31596
31604
|
}
|
|
31597
31605
|
});
|
|
31598
31606
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.11
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21319,7 +21319,8 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
21319
21319
|
type: wrapReference(meta.type),
|
|
21320
21320
|
internalType: new WrappedNodeExpr(meta.type),
|
|
21321
21321
|
typeArgumentCount: 0,
|
|
21322
|
-
deps: meta.deps
|
|
21322
|
+
deps: Array.isArray(meta.deps) ? meta.deps.map(convertR3DeclareDependencyMetadata) :
|
|
21323
|
+
meta.deps,
|
|
21323
21324
|
target: meta.target,
|
|
21324
21325
|
});
|
|
21325
21326
|
return this.jitExpression(factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);
|
|
@@ -21610,7 +21611,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
21610
21611
|
* Use of this source code is governed by an MIT-style license that can be
|
|
21611
21612
|
* found in the LICENSE file at https://angular.io/license
|
|
21612
21613
|
*/
|
|
21613
|
-
const VERSION$1 = new Version('12.2.
|
|
21614
|
+
const VERSION$1 = new Version('12.2.11');
|
|
21614
21615
|
|
|
21615
21616
|
/**
|
|
21616
21617
|
* @license
|
|
@@ -32142,11 +32143,11 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32142
32143
|
* parameterized type.
|
|
32143
32144
|
*
|
|
32144
32145
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
32145
|
-
* the `Injector`. This provides additional level of type safety.
|
|
32146
|
+
* the `Injector`. This provides an additional level of type safety.
|
|
32146
32147
|
*
|
|
32147
32148
|
* ```
|
|
32148
32149
|
* interface MyInterface {...}
|
|
32149
|
-
*
|
|
32150
|
+
* const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
|
32150
32151
|
* // myInterface is inferred to be MyInterface.
|
|
32151
32152
|
* ```
|
|
32152
32153
|
*
|
|
@@ -32154,14 +32155,15 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32154
32155
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
32155
32156
|
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
|
32156
32157
|
* application's root injector. If the factory function, which takes zero arguments, needs to inject
|
|
32157
|
-
* dependencies, it can do so using the `inject` function.
|
|
32158
|
+
* dependencies, it can do so using the `inject` function.
|
|
32159
|
+
* As you can see in the Tree-shakable InjectionToken example below.
|
|
32158
32160
|
*
|
|
32159
32161
|
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
|
32160
32162
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
32161
32163
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
32162
32164
|
*
|
|
32163
32165
|
* @usageNotes
|
|
32164
|
-
* ### Basic
|
|
32166
|
+
* ### Basic Examples
|
|
32165
32167
|
*
|
|
32166
32168
|
* ### Plain InjectionToken
|
|
32167
32169
|
*
|
|
@@ -32175,6 +32177,12 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32175
32177
|
* @publicApi
|
|
32176
32178
|
*/
|
|
32177
32179
|
class InjectionToken {
|
|
32180
|
+
/**
|
|
32181
|
+
* @param _desc Description for the token,
|
|
32182
|
+
* used only for debugging purposes,
|
|
32183
|
+
* it should but does not need to be unique
|
|
32184
|
+
* @param options Options for the token's usage, as described above
|
|
32185
|
+
*/
|
|
32178
32186
|
constructor(_desc, options) {
|
|
32179
32187
|
this._desc = _desc;
|
|
32180
32188
|
/** @internal */
|
|
@@ -36825,7 +36833,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
36825
36833
|
/**
|
|
36826
36834
|
* @publicApi
|
|
36827
36835
|
*/
|
|
36828
|
-
const VERSION$2 = new Version$1('12.2.
|
|
36836
|
+
const VERSION$2 = new Version$1('12.2.11');
|
|
36829
36837
|
|
|
36830
36838
|
/**
|
|
36831
36839
|
* @license
|
|
@@ -40554,7 +40562,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
40554
40562
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
40555
40563
|
* DecimalPipe and PercentPipe) and by ICU expressions.
|
|
40556
40564
|
*
|
|
40557
|
-
* See the [i18n guide](guide/i18n
|
|
40565
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
40558
40566
|
*
|
|
40559
40567
|
* @usageNotes
|
|
40560
40568
|
* ### Example
|
|
@@ -40577,7 +40585,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
40577
40585
|
* CurrencyPipe when there is no currency code passed into it. This is only used by
|
|
40578
40586
|
* CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
|
|
40579
40587
|
*
|
|
40580
|
-
* See the [i18n guide](guide/i18n
|
|
40588
|
+
* See the [i18n guide](guide/i18n-common-locale-id) for more information.
|
|
40581
40589
|
*
|
|
40582
40590
|
* <div class="alert is-helpful">
|
|
40583
40591
|
*
|
|
@@ -40615,7 +40623,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
40615
40623
|
* Use this token at bootstrap to provide the content of your translation file (`xtb`,
|
|
40616
40624
|
* `xlf` or `xlf2`) when you want to translate your application in another language.
|
|
40617
40625
|
*
|
|
40618
|
-
* See the [i18n guide](guide/i18n
|
|
40626
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
40619
40627
|
*
|
|
40620
40628
|
* @usageNotes
|
|
40621
40629
|
* ### Example
|
|
@@ -40640,7 +40648,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
40640
40648
|
* Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
|
|
40641
40649
|
* `xlf` or `xlf2`.
|
|
40642
40650
|
*
|
|
40643
|
-
* See the [i18n guide](guide/i18n
|
|
40651
|
+
* See the [i18n guide](guide/i18n-common-merge) for more information.
|
|
40644
40652
|
*
|
|
40645
40653
|
* @usageNotes
|
|
40646
40654
|
* ### Example
|
|
@@ -40665,7 +40673,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
40665
40673
|
* - Warning (default): show a warning in the console and/or shell.
|
|
40666
40674
|
* - Ignore: do nothing.
|
|
40667
40675
|
*
|
|
40668
|
-
* See the [i18n guide](guide/i18n#missing-
|
|
40676
|
+
* See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.
|
|
40669
40677
|
*
|
|
40670
40678
|
* @usageNotes
|
|
40671
40679
|
* ### Example
|