@angular/language-service 11.2.8 → 11.2.9
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 +288 -198
- package/bundles/language-service.js +36 -6
- package/ivy/language_service.d.ts +20 -1
- package/ivy/language_service.js +158 -124
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v11.2.
|
|
2
|
+
* @license Angular v11.2.9
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -19180,7 +19180,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
19180
19180
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19181
19181
|
* found in the LICENSE file at https://angular.io/license
|
|
19182
19182
|
*/
|
|
19183
|
-
const VERSION$1 = new Version('11.2.
|
|
19183
|
+
const VERSION$1 = new Version('11.2.9');
|
|
19184
19184
|
|
|
19185
19185
|
/**
|
|
19186
19186
|
* @license
|
|
@@ -28002,6 +28002,25 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
28002
28002
|
return instance[SIMPLE_CHANGES_STORE] = store;
|
|
28003
28003
|
}
|
|
28004
28004
|
|
|
28005
|
+
/**
|
|
28006
|
+
* @license
|
|
28007
|
+
* Copyright Google LLC All Rights Reserved.
|
|
28008
|
+
*
|
|
28009
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
28010
|
+
* found in the LICENSE file at https://angular.io/license
|
|
28011
|
+
*/
|
|
28012
|
+
/**
|
|
28013
|
+
* Profiler function which wraps user code executed by the runtime.
|
|
28014
|
+
*
|
|
28015
|
+
* @param event ProfilerEvent corresponding to the execution context
|
|
28016
|
+
* @param instance component instance
|
|
28017
|
+
* @param hookOrListener lifecycle hook function or output listener. The value depends on the
|
|
28018
|
+
* execution context
|
|
28019
|
+
* @returns
|
|
28020
|
+
*/
|
|
28021
|
+
const profiler = function (event, instance, hookOrListener) {
|
|
28022
|
+
};
|
|
28023
|
+
|
|
28005
28024
|
/**
|
|
28006
28025
|
* @license
|
|
28007
28026
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -28705,11 +28724,19 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
28705
28724
|
(currentView[PREORDER_HOOK_FLAGS] >> 16 /* NumberOfInitHooksCalledShift */) &&
|
|
28706
28725
|
(currentView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) {
|
|
28707
28726
|
currentView[FLAGS] += 2048 /* IndexWithinInitPhaseIncrementer */;
|
|
28708
|
-
|
|
28727
|
+
try {
|
|
28728
|
+
hook.call(directive);
|
|
28729
|
+
}
|
|
28730
|
+
finally {
|
|
28731
|
+
}
|
|
28709
28732
|
}
|
|
28710
28733
|
}
|
|
28711
28734
|
else {
|
|
28712
|
-
|
|
28735
|
+
try {
|
|
28736
|
+
hook.call(directive);
|
|
28737
|
+
}
|
|
28738
|
+
finally {
|
|
28739
|
+
}
|
|
28713
28740
|
}
|
|
28714
28741
|
}
|
|
28715
28742
|
|
|
@@ -32636,13 +32663,16 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
32636
32663
|
}
|
|
32637
32664
|
function executeTemplate(tView, lView, templateFn, rf, context) {
|
|
32638
32665
|
const prevSelectedIndex = getSelectedIndex();
|
|
32666
|
+
const isUpdatePhase = rf & 2 /* Update */;
|
|
32639
32667
|
try {
|
|
32640
32668
|
setSelectedIndex(-1);
|
|
32641
|
-
if (
|
|
32669
|
+
if (isUpdatePhase && lView.length > HEADER_OFFSET) {
|
|
32642
32670
|
// When we're updating, inherently select 0 so we don't
|
|
32643
32671
|
// have to generate that instruction for most update blocks.
|
|
32644
32672
|
selectIndexInternal(tView, lView, HEADER_OFFSET, isInCheckNoChangesMode());
|
|
32645
32673
|
}
|
|
32674
|
+
const preHookType = isUpdatePhase ? 2 /* TemplateUpdateStart */ : 0 /* TemplateCreateStart */;
|
|
32675
|
+
profiler(preHookType, context);
|
|
32646
32676
|
templateFn(rf, context);
|
|
32647
32677
|
}
|
|
32648
32678
|
finally {
|
|
@@ -35202,7 +35232,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
|
|
|
35202
35232
|
/**
|
|
35203
35233
|
* @publicApi
|
|
35204
35234
|
*/
|
|
35205
|
-
const VERSION$2 = new Version$1('11.2.
|
|
35235
|
+
const VERSION$2 = new Version$1('11.2.9');
|
|
35206
35236
|
|
|
35207
35237
|
/**
|
|
35208
35238
|
* @license
|
|
@@ -32,15 +32,34 @@ export declare class LanguageService {
|
|
|
32
32
|
getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan | undefined;
|
|
33
33
|
getTypeDefinitionAtPosition(fileName: string, position: number): readonly ts.DefinitionInfo[] | undefined;
|
|
34
34
|
getQuickInfoAtPosition(fileName: string, position: number): ts.QuickInfo | undefined;
|
|
35
|
+
private getQuickInfoAtPositionImpl;
|
|
35
36
|
getReferencesAtPosition(fileName: string, position: number): ts.ReferenceEntry[] | undefined;
|
|
36
37
|
getRenameInfo(fileName: string, position: number): ts.RenameInfo;
|
|
37
38
|
findRenameLocations(fileName: string, position: number): readonly ts.RenameLocation[] | undefined;
|
|
38
39
|
private getCompletionBuilder;
|
|
39
40
|
getCompletionsAtPosition(fileName: string, position: number, options: ts.GetCompletionsAtPositionOptions | undefined): ts.WithMetadata<ts.CompletionInfo> | undefined;
|
|
41
|
+
private getCompletionsAtPositionImpl;
|
|
40
42
|
getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: ts.FormatCodeOptions | ts.FormatCodeSettings | undefined, preferences: ts.UserPreferences | undefined): ts.CompletionEntryDetails | undefined;
|
|
41
43
|
getCompletionEntrySymbol(fileName: string, position: number, entryName: string): ts.Symbol | undefined;
|
|
42
44
|
getTcb(fileName: string, position: number): GetTcbResponse | undefined;
|
|
43
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Provides an instance of the `NgCompiler` and traces perf results. Perf results are logged only
|
|
47
|
+
* if the log level is verbose or higher. This method is intended to be called once per public
|
|
48
|
+
* method call.
|
|
49
|
+
*
|
|
50
|
+
* Here is an example of the log output.
|
|
51
|
+
*
|
|
52
|
+
* Perf 245 [16:16:39.353] LanguageService#getQuickInfoAtPosition(): {"events":{},"phases":{
|
|
53
|
+
* "Unaccounted":379,"TtcSymbol":4},"memory":{}}
|
|
54
|
+
*
|
|
55
|
+
* Passing name of caller instead of using `arguments.caller` because 'caller', 'callee', and
|
|
56
|
+
* 'arguments' properties may not be accessed in strict mode.
|
|
57
|
+
*
|
|
58
|
+
* @param phase the `PerfPhase` to execute the `p` callback in
|
|
59
|
+
* @param p callback to be run synchronously with an instance of the `NgCompiler` as argument
|
|
60
|
+
* @return the result of running the `p` callback
|
|
61
|
+
*/
|
|
62
|
+
private withCompilerAndPerfTracing;
|
|
44
63
|
getCompilerOptionsDiagnostics(): ts.Diagnostic[];
|
|
45
64
|
private watchConfigFile;
|
|
46
65
|
}
|