@angular/language-service 12.2.8 → 12.2.12
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 +12 -11
- package/bundles/language-service.js +16 -8
- 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.12
|
|
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.12');
|
|
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.12'));
|
|
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.12'));
|
|
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.12'));
|
|
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.12'));
|
|
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.12'));
|
|
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.12'));
|
|
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.12'));
|
|
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.12');
|
|
21221
21222
|
|
|
21222
21223
|
/**
|
|
21223
21224
|
* @license
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.12
|
|
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.12');
|
|
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.12');
|
|
36829
36837
|
|
|
36830
36838
|
/**
|
|
36831
36839
|
* @license
|