@angular/language-service 13.0.0-rc.0 → 13.0.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/language-service.js +56 -31
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.0.0
|
|
2
|
+
* @license Angular v13.0.0
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7442,8 +7442,8 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
7442
7442
|
if (convertedArgs.length !== 1) {
|
|
7443
7443
|
throw new Error(`Invalid call to $any, expected 1 argument but received ${convertedArgs.length || 'none'}`);
|
|
7444
7444
|
}
|
|
7445
|
-
return convertedArgs[0]
|
|
7446
|
-
.cast(DYNAMIC_TYPE, this.convertSourceSpan(ast.span));
|
|
7445
|
+
return convertToStatementIfNeeded(mode, convertedArgs[0]
|
|
7446
|
+
.cast(DYNAMIC_TYPE, this.convertSourceSpan(ast.span)));
|
|
7447
7447
|
}
|
|
7448
7448
|
const leftMostSafe = this.leftMostSafeNode(ast);
|
|
7449
7449
|
if (leftMostSafe) {
|
|
@@ -20062,7 +20062,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20062
20062
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20063
20063
|
* found in the LICENSE file at https://angular.io/license
|
|
20064
20064
|
*/
|
|
20065
|
-
new Version('13.0.0
|
|
20065
|
+
new Version('13.0.0');
|
|
20066
20066
|
|
|
20067
20067
|
/**
|
|
20068
20068
|
* @license
|
|
@@ -20691,7 +20691,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20691
20691
|
function compileDeclareClassMetadata(metadata) {
|
|
20692
20692
|
const definitionMap = new DefinitionMap();
|
|
20693
20693
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
20694
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
20694
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
20695
20695
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20696
20696
|
definitionMap.set('type', metadata.type);
|
|
20697
20697
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -20731,7 +20731,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20731
20731
|
function createDirectiveDefinitionMap(meta) {
|
|
20732
20732
|
const definitionMap = new DefinitionMap();
|
|
20733
20733
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
20734
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
20734
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
20735
20735
|
// e.g. `type: MyDirective`
|
|
20736
20736
|
definitionMap.set('type', meta.internalType);
|
|
20737
20737
|
// e.g. `selector: 'some-dir'`
|
|
@@ -20948,7 +20948,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20948
20948
|
function compileDeclareFactoryFunction(meta) {
|
|
20949
20949
|
const definitionMap = new DefinitionMap();
|
|
20950
20950
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
20951
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
20951
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
20952
20952
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20953
20953
|
definitionMap.set('type', meta.internalType);
|
|
20954
20954
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -20990,7 +20990,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
20990
20990
|
function createInjectableDefinitionMap(meta) {
|
|
20991
20991
|
const definitionMap = new DefinitionMap();
|
|
20992
20992
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
20993
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
20993
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
20994
20994
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
20995
20995
|
definitionMap.set('type', meta.internalType);
|
|
20996
20996
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -21069,7 +21069,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21069
21069
|
function createInjectorDefinitionMap(meta) {
|
|
21070
21070
|
const definitionMap = new DefinitionMap();
|
|
21071
21071
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
21072
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
21072
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
21073
21073
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
21074
21074
|
definitionMap.set('type', meta.internalType);
|
|
21075
21075
|
definitionMap.set('providers', meta.providers);
|
|
@@ -21106,7 +21106,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21106
21106
|
function createNgModuleDefinitionMap(meta) {
|
|
21107
21107
|
const definitionMap = new DefinitionMap();
|
|
21108
21108
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
21109
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
21109
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
21110
21110
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
21111
21111
|
definitionMap.set('type', meta.internalType);
|
|
21112
21112
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -21164,7 +21164,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21164
21164
|
function createPipeDefinitionMap(meta) {
|
|
21165
21165
|
const definitionMap = new DefinitionMap();
|
|
21166
21166
|
definitionMap.set('minVersion', literal$1(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
21167
|
-
definitionMap.set('version', literal$1('13.0.0
|
|
21167
|
+
definitionMap.set('version', literal$1('13.0.0'));
|
|
21168
21168
|
definitionMap.set('ngImport', importExpr(Identifiers$1.core));
|
|
21169
21169
|
// e.g. `type: MyPipe`
|
|
21170
21170
|
definitionMap.set('type', meta.internalType);
|
|
@@ -21196,7 +21196,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21196
21196
|
* Use of this source code is governed by an MIT-style license that can be
|
|
21197
21197
|
* found in the LICENSE file at https://angular.io/license
|
|
21198
21198
|
*/
|
|
21199
|
-
new Version('13.0.0
|
|
21199
|
+
new Version('13.0.0');
|
|
21200
21200
|
|
|
21201
21201
|
/**
|
|
21202
21202
|
* @license
|
|
@@ -21421,15 +21421,15 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21421
21421
|
*/
|
|
21422
21422
|
ErrorCode[ErrorCode["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
21423
21423
|
})(ErrorCode || (ErrorCode = {}));
|
|
21424
|
+
|
|
21424
21425
|
/**
|
|
21425
|
-
* @
|
|
21426
|
-
*
|
|
21427
|
-
*
|
|
21428
|
-
*
|
|
21426
|
+
* @license
|
|
21427
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21428
|
+
*
|
|
21429
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21430
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21429
21431
|
*/
|
|
21430
|
-
const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
21431
21432
|
/**
|
|
21432
|
-
* @internal
|
|
21433
21433
|
* Contains a set of error messages that have detailed guides at angular.io.
|
|
21434
21434
|
* Full list of available error guides can be found at https://angular.io/errors
|
|
21435
21435
|
*/
|
|
@@ -21442,8 +21442,13 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21442
21442
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
21443
21443
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,
|
|
21444
21444
|
]);
|
|
21445
|
+
|
|
21445
21446
|
/**
|
|
21446
|
-
* @
|
|
21447
|
+
* @license
|
|
21448
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21449
|
+
*
|
|
21450
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21451
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21447
21452
|
*/
|
|
21448
21453
|
function ngErrorCode(code) {
|
|
21449
21454
|
return parseInt('-99' + code);
|
|
@@ -21495,6 +21500,22 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
|
|
|
21495
21500
|
};
|
|
21496
21501
|
}
|
|
21497
21502
|
|
|
21503
|
+
/**
|
|
21504
|
+
* @license
|
|
21505
|
+
* Copyright Google LLC All Rights Reserved.
|
|
21506
|
+
*
|
|
21507
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
21508
|
+
* found in the LICENSE file at https://angular.io/license
|
|
21509
|
+
*/
|
|
21510
|
+
/**
|
|
21511
|
+
* Base URL for the error details page.
|
|
21512
|
+
*
|
|
21513
|
+
* Keep the files below in full sync:
|
|
21514
|
+
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
|
|
21515
|
+
* - packages/core/src/render3/error_details_base_url.ts
|
|
21516
|
+
*/
|
|
21517
|
+
const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
21518
|
+
|
|
21498
21519
|
/**
|
|
21499
21520
|
* @license
|
|
21500
21521
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -29786,7 +29807,7 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
29786
29807
|
* Compiles @NgModule annotations to ngModuleDef fields.
|
|
29787
29808
|
*/
|
|
29788
29809
|
class NgModuleDecoratorHandler {
|
|
29789
|
-
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, injectableRegistry, perf
|
|
29810
|
+
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, factoryTracker, annotateForClosureCompiler, injectableRegistry, perf) {
|
|
29790
29811
|
this.reflector = reflector;
|
|
29791
29812
|
this.evaluator = evaluator;
|
|
29792
29813
|
this.metaReader = metaReader;
|
|
@@ -29799,7 +29820,6 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
29799
29820
|
this.annotateForClosureCompiler = annotateForClosureCompiler;
|
|
29800
29821
|
this.injectableRegistry = injectableRegistry;
|
|
29801
29822
|
this.perf = perf;
|
|
29802
|
-
this.localeId = localeId;
|
|
29803
29823
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
29804
29824
|
this.name = NgModuleDecoratorHandler.name;
|
|
29805
29825
|
}
|
|
@@ -30126,15 +30146,6 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
30126
30146
|
type: injectorDef.type,
|
|
30127
30147
|
},
|
|
30128
30148
|
];
|
|
30129
|
-
if (this.localeId) {
|
|
30130
|
-
// QUESTION: can this stuff be removed?
|
|
30131
|
-
res.push({
|
|
30132
|
-
name: 'ɵloc',
|
|
30133
|
-
initializer: new LiteralExpr(this.localeId),
|
|
30134
|
-
statements: [],
|
|
30135
|
-
type: STRING_TYPE
|
|
30136
|
-
});
|
|
30137
|
-
}
|
|
30138
30149
|
return res;
|
|
30139
30150
|
}
|
|
30140
30151
|
_toR3Reference(valueRef, valueContext, typeContext) {
|
|
@@ -40974,7 +40985,7 @@ Either add the @Injectable() decorator to '${provider.node.name
|
|
|
40974
40985
|
// before injectable factories (so injectable factories can delegate to them)
|
|
40975
40986
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
|
|
40976
40987
|
new InjectableDecoratorHandler(reflector, isCore, this.options.strictInjectionParameters || false, injectableRegistry, this.delegatingPerfRecorder),
|
|
40977
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder
|
|
40988
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, injectableRegistry, this.delegatingPerfRecorder),
|
|
40978
40989
|
];
|
|
40979
40990
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater);
|
|
40980
40991
|
// Template type-checking may use the `ProgramDriver` to produce new `ts.Program`(s). If this
|
|
@@ -41134,6 +41145,20 @@ https://v9.angular.io/guide/template-typecheck#template-type-checking`,
|
|
|
41134
41145
|
*/
|
|
41135
41146
|
ts__default["default"].version;
|
|
41136
41147
|
|
|
41148
|
+
/**
|
|
41149
|
+
* @license
|
|
41150
|
+
* Copyright Google LLC All Rights Reserved.
|
|
41151
|
+
*
|
|
41152
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
41153
|
+
* found in the LICENSE file at https://angular.io/license
|
|
41154
|
+
*/
|
|
41155
|
+
/** Error message to show when attempting to build View Engine. */
|
|
41156
|
+
`
|
|
41157
|
+
This compilation is using the View Engine compiler which is no longer supported by the Angular team
|
|
41158
|
+
and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
|
|
41159
|
+
https://angular.io/guide/ivy for more information.
|
|
41160
|
+
` .trim().split('\n').join(' ');
|
|
41161
|
+
|
|
41137
41162
|
/**
|
|
41138
41163
|
* @license
|
|
41139
41164
|
* Copyright Google LLC All Rights Reserved.
|