@angular/language-service 22.0.0-next.6 → 22.0.0-next.8
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 +33284 -32944
- package/package.json +1 -1
- package/private_bundle.js +9 -11
- package/private_bundle.js.map +3 -3
- package/src/adapters.d.ts +1 -3
- package/src/attribute_completions.d.ts +2 -2
- package/src/codefixes/code_fixes.d.ts +1 -1
- package/src/codefixes/utils.d.ts +1 -1
- package/src/compiler_factory.d.ts +1 -3
- package/src/completions.d.ts +1 -1
- package/src/definitions.d.ts +1 -1
- package/src/document_symbols.d.ts +1 -1
- package/src/inlay_hints.d.ts +1 -1
- package/src/language_service.d.ts +1 -1
- package/src/linked_editing_range.d.ts +1 -1
- package/src/outlining_spans.d.ts +1 -1
- package/src/quick_info.d.ts +1 -1
- package/src/refactorings/convert_to_signal_input/apply_input_refactoring.d.ts +1 -2
- package/src/refactorings/convert_to_signal_input/decorators.d.ts +1 -1
- package/src/refactorings/convert_to_signal_input/full_class_input_refactoring.d.ts +1 -2
- package/src/refactorings/convert_to_signal_input/individual_input_refactoring.d.ts +1 -2
- package/src/refactorings/convert_to_signal_queries/apply_query_refactoring.d.ts +1 -2
- package/src/refactorings/convert_to_signal_queries/decorators.d.ts +1 -1
- package/src/refactorings/convert_to_signal_queries/full_class_query_refactoring.d.ts +1 -2
- package/src/refactorings/convert_to_signal_queries/individual_query_refactoring.d.ts +1 -2
- package/src/refactorings/refactoring.d.ts +2 -3
- package/src/references_and_rename.d.ts +1 -1
- package/src/references_and_rename_utils.d.ts +2 -4
- package/src/semantic_tokens.d.ts +1 -1
- package/src/signature_help.d.ts +1 -1
- package/src/utils/decorators.d.ts +1 -1
- package/src/utils/display_parts.d.ts +2 -2
- package/src/utils/index.d.ts +1 -3
- package/src/utils/ts_utils.d.ts +6 -9
package/package.json
CHANGED
package/private_bundle.js
CHANGED
|
@@ -42,18 +42,16 @@ module.exports = __toCommonJS(private_exports);
|
|
|
42
42
|
|
|
43
43
|
// packages/language-service/src/template_target.js
|
|
44
44
|
var import_compiler2 = require("@angular/compiler");
|
|
45
|
-
var
|
|
45
|
+
var import_hybrid_analysis = require("@angular/compiler-cli/private/hybrid_analysis");
|
|
46
46
|
var import_typescript5 = __toESM(require("typescript"));
|
|
47
47
|
|
|
48
48
|
// packages/language-service/src/utils/index.js
|
|
49
49
|
var import_compiler = require("@angular/compiler");
|
|
50
|
-
var
|
|
51
|
-
var import_metadata = require("@angular/compiler-cli/src/ngtsc/metadata");
|
|
50
|
+
var import_compiler_cli3 = require("@angular/compiler-cli");
|
|
52
51
|
var import_typescript4 = __toESM(require("typescript"));
|
|
53
52
|
|
|
54
53
|
// packages/language-service/src/utils/display_parts.js
|
|
55
|
-
var
|
|
56
|
-
var import_api = require("@angular/compiler-cli/src/ngtsc/typecheck/api");
|
|
54
|
+
var import_compiler_cli = require("@angular/compiler-cli");
|
|
57
55
|
var import_typescript = __toESM(require("typescript"));
|
|
58
56
|
var ALIAS_NAME = import_typescript.default.SymbolDisplayPartKind[import_typescript.default.SymbolDisplayPartKind.aliasName];
|
|
59
57
|
var SYMBOL_INTERFACE = import_typescript.default.SymbolDisplayPartKind[import_typescript.default.SymbolDisplayPartKind.interfaceName];
|
|
@@ -79,13 +77,13 @@ var DisplayInfoKind;
|
|
|
79
77
|
DisplayInfoKind2["LET"] = "let";
|
|
80
78
|
})(DisplayInfoKind || (DisplayInfoKind = {}));
|
|
81
79
|
|
|
82
|
-
// packages/language-service/src/utils/ts_utils.js
|
|
83
|
-
var import_api2 = require("@angular/compiler-cli/src/ngtsc/typecheck/api");
|
|
84
|
-
var import_typescript3 = __toESM(require("typescript"));
|
|
85
|
-
|
|
86
80
|
// packages/language-service/src/utils/format.js
|
|
87
81
|
var import_typescript2 = __toESM(require("typescript"));
|
|
88
82
|
|
|
83
|
+
// packages/language-service/src/utils/ts_utils.js
|
|
84
|
+
var import_compiler_cli2 = require("@angular/compiler-cli");
|
|
85
|
+
var import_typescript3 = __toESM(require("typescript"));
|
|
86
|
+
|
|
89
87
|
// packages/language-service/src/utils/index.js
|
|
90
88
|
function isTemplateNodeWithKeyAndValue(node) {
|
|
91
89
|
return isTemplateNode(node) && node.hasOwnProperty("keySpan");
|
|
@@ -225,7 +223,7 @@ function getTargetAtPosition(template, position) {
|
|
|
225
223
|
return { position, context: nodeInContext, template: context, parent };
|
|
226
224
|
}
|
|
227
225
|
function findFirstMatchingNodeForSourceSpan(tcb, sourceSpan) {
|
|
228
|
-
return (0,
|
|
226
|
+
return (0, import_hybrid_analysis.findFirstMatchingNode)(tcb, {
|
|
229
227
|
withSpan: sourceSpan,
|
|
230
228
|
filter: (node) => true
|
|
231
229
|
});
|
|
@@ -240,7 +238,7 @@ function getTcbNodesOfTemplateAtPosition(templateNodes, position, tcb) {
|
|
|
240
238
|
if (target.context.kind === TargetNodeKind.RawExpression) {
|
|
241
239
|
const targetNode = target.context.node;
|
|
242
240
|
if (targetNode instanceof import_compiler2.PropertyRead) {
|
|
243
|
-
const tsNode = (0,
|
|
241
|
+
const tsNode = (0, import_hybrid_analysis.findFirstMatchingNode)(tcb, {
|
|
244
242
|
withSpan: targetNode.nameSpan,
|
|
245
243
|
filter: (node) => import_typescript5.default.isPropertyAccessExpression(node)
|
|
246
244
|
});
|
package/private_bundle.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["private.ts", "src/template_target.ts", "src/utils/index.ts", "src/utils/display_parts.ts", "src/utils/
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACQA,IAAAA,mBA8CO;AAEP,
|
|
5
|
-
"names": ["import_compiler", "import_typescript", "import_typescript", "ts", "DisplayInfoKind", "
|
|
3
|
+
"sources": ["private.ts", "src/template_target.ts", "src/utils/index.ts", "src/utils/display_parts.ts", "src/ut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K,WAAW,MAAM,SAAS,IAAuC,KAAK;AAC7E,SAAO,WAAW;AACpB;",
|
|
5
|
+
"names": ["import_compiler", "import_typescript", "import_compiler_cli", "import_typescript", "ts", "DisplayInfoKind", "import_typescript", "import_compiler_cli", "import_typescript", "isWithinKeyValue", "TargetNodeKind", "tss"]
|
|
6
6
|
}
|
package/src/adapters.d.ts
CHANGED
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
/** @fileoverview provides adapters for communicating with the ng compiler */
|
|
9
|
-
import { ConfigurationHost } from '@angular/compiler-cli';
|
|
10
|
-
import { NgCompilerAdapter } from '@angular/compiler-cli/src/ngtsc/core/api';
|
|
11
|
-
import { AbsoluteFsPath, FileStats, PathSegment, PathString } from '@angular/compiler-cli/src/ngtsc/file_system';
|
|
9
|
+
import { AbsoluteFsPath, ConfigurationHost, FileStats, NgCompilerAdapter, PathSegment, PathString } from '@angular/compiler-cli';
|
|
12
10
|
import ts from 'typescript';
|
|
13
11
|
export declare class LanguageServiceAdapter implements NgCompilerAdapter {
|
|
14
12
|
private readonly project;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { TmplAstElement, TmplAstTemplate } from '@angular/compiler';
|
|
9
|
-
import { PotentialDirective, TemplateTypeChecker } from '@angular/compiler-cli
|
|
9
|
+
import { PotentialDirective, TemplateTypeChecker } from '@angular/compiler-cli';
|
|
10
10
|
import ts from 'typescript';
|
|
11
11
|
import { DisplayInfoKind } from './utils/display_parts';
|
|
12
12
|
/**
|
|
@@ -191,5 +191,5 @@ export declare enum AsciiSortPriority {
|
|
|
191
191
|
* `insertText` is `(myOutput)="$0"`.
|
|
192
192
|
*/
|
|
193
193
|
export declare function addAttributeCompletionEntries(entries: ts.CompletionEntry[], completion: AttributeCompletion, isAttributeContext: boolean, isElementContext: boolean, replacementSpan: ts.TextSpan | undefined, insertSnippet: true | undefined): void;
|
|
194
|
-
export declare function getAttributeCompletionSymbol(attrKind: AttributeCompletionKind, directive: PotentialDirective | null, classPropertyName: string | null, checker: ts.TypeChecker): ts.Symbol | null;
|
|
194
|
+
export declare function getAttributeCompletionSymbol(attrKind: AttributeCompletionKind, directive: PotentialDirective | null, classPropertyName: string | null, checker: ts.TypeChecker, ls?: ts.LanguageService): ts.Symbol | null;
|
|
195
195
|
export declare function buildAnimationCompletionEntries(animations: string[], replacementSpan: ts.TextSpan, kind: DisplayInfoKind): ts.CompletionEntry[];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import type ts from 'typescript';
|
|
10
10
|
import { TypeCheckInfo } from '../utils';
|
|
11
11
|
import { CodeActionMeta } from './utils';
|
package/src/codefixes/utils.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import type ts from 'typescript';
|
|
10
10
|
import { TypeCheckInfo } from '../utils';
|
|
11
11
|
/**
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
9
|
-
import { NgCompilerOptions } from '@angular/compiler-cli/src/ngtsc/core/api';
|
|
10
|
-
import { ProgramDriver } from '@angular/compiler-cli/src/ngtsc/program_driver';
|
|
8
|
+
import { NgCompiler, NgCompilerOptions, ProgramDriver } from '@angular/compiler-cli';
|
|
11
9
|
import { LanguageServiceAdapter } from './adapters';
|
|
12
10
|
/**
|
|
13
11
|
* Manages the `NgCompiler` instance which backs the language service, updating or replacing it as
|
package/src/completions.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { AST, TmplAstNode } from '@angular/compiler';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
9
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
10
10
|
import ts from 'typescript';
|
|
11
11
|
import { TemplateTarget } from './template_target';
|
|
12
12
|
export declare enum CompletionNodeContext {
|
package/src/definitions.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
export declare class DefinitionBuilder {
|
|
11
11
|
private readonly tsLS;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import { AngularSymbolKind, DocumentSymbolsOptions, TemplateDocumentSymbol } from '../api';
|
|
10
10
|
export type { AngularSymbolKind, DocumentSymbolsOptions, TemplateDocumentSymbol };
|
|
11
11
|
/**
|
package/src/inlay_hints.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { TypeCheckInfo } from './utils';
|
|
11
11
|
export type { AngularInlayHint, InlayHintsConfig, InlayHintDisplayPart } from '../api';
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
+
import { AngularInlayHint, ApplyRefactoringProgressFn, ApplyRefactoringResult, GetComponentLocationsForTemplateResponse, GetTcbResponse, GetTemplateLocationForComponentResponse, InlayHintsConfig, LinkedEditingRanges, PluginConfig } from '../api';
|
|
9
10
|
import ts from 'typescript';
|
|
10
|
-
import { ApplyRefactoringProgressFn, ApplyRefactoringResult, AngularInlayHint, GetComponentLocationsForTemplateResponse, InlayHintsConfig, GetTcbResponse, GetTemplateLocationForComponentResponse, LinkedEditingRanges, PluginConfig } from '../api';
|
|
11
11
|
import { CompilerFactory } from './compiler_factory';
|
|
12
12
|
import { DocumentSymbolsOptions, TemplateDocumentSymbol } from './document_symbols';
|
|
13
13
|
export declare class LanguageService {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import { LinkedEditingRanges } from '../api';
|
|
10
10
|
/**
|
|
11
11
|
* Gets linked editing ranges for synchronized editing of HTML tag pairs.
|
package/src/outlining_spans.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
export declare function getOutliningSpans(compiler: NgCompiler, fileName: string): ts.OutliningSpan[];
|
package/src/quick_info.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { AST, TmplAstNode } from '@angular/compiler';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
9
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
10
10
|
import ts from 'typescript';
|
|
11
11
|
import { TemplateTarget } from './template_target';
|
|
12
12
|
export declare class QuickInfoBuilder {
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import type ts from 'typescript';
|
|
11
10
|
import { KnownInputInfo, MigrationConfig } from '@angular/core/schematics/migrations/signal-migration/src';
|
|
12
11
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import type ts from 'typescript';
|
|
9
|
-
import { ReflectionHost } from '@angular/compiler-cli
|
|
9
|
+
import { ReflectionHost } from '@angular/compiler-cli';
|
|
10
10
|
export declare function isDecoratorInputClassField(node: ts.ClassElement, reflector: ReflectionHost): boolean;
|
|
11
11
|
export declare function isDirectiveOrComponentWithInputs(node: ts.ClassDeclaration, reflector: ReflectionHost): boolean;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import { MigrationConfig } from '@angular/core/schematics/migrations/signal-migration/src';
|
|
11
10
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
12
11
|
import ts from 'typescript';
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import { MigrationConfig } from '@angular/core/schematics/migrations/signal-migration/src';
|
|
11
10
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
12
11
|
import ts from 'typescript';
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import ts from 'typescript';
|
|
11
10
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
12
11
|
import { MigrationConfig } from '@angular/core/schematics/migrations/signal-queries-migration';
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import type ts from 'typescript';
|
|
9
|
-
import { ReflectionHost } from '@angular/compiler-cli
|
|
9
|
+
import { ReflectionHost } from '@angular/compiler-cli';
|
|
10
10
|
export declare function isDecoratorQueryClassField(node: ts.ClassElement, reflector: ReflectionHost): boolean;
|
|
11
11
|
export declare function isDirectiveOrComponentWithQueries(node: ts.ClassDeclaration, reflector: ReflectionHost): boolean;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import { MigrationConfig } from '@angular/core/schematics/migrations/signal-migration/src';
|
|
11
10
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
12
11
|
import ts from 'typescript';
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
8
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
9
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../../api';
|
|
11
10
|
import ts from 'typescript';
|
|
12
11
|
import type { ActiveRefactoring } from '../refactoring';
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
9
|
-
import type ts from 'typescript';
|
|
10
8
|
import { ApplyRefactoringProgressFn, ApplyRefactoringResult } from '../../api';
|
|
11
|
-
import { CompilerOptions } from '@angular/compiler-cli';
|
|
9
|
+
import { CompilerOptions, NgCompiler } from '@angular/compiler-cli';
|
|
10
|
+
import type ts from 'typescript';
|
|
12
11
|
/**
|
|
13
12
|
* Interface exposing static metadata for a {@link Refactoring},
|
|
14
13
|
* exposed via static fields.
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { AST,
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
10
|
-
import { DirectiveMeta, PipeMeta } from '@angular/compiler-cli/src/ngtsc/metadata';
|
|
11
|
-
import { Symbol, TemplateTypeChecker } from '@angular/compiler-cli/src/ngtsc/typecheck/api';
|
|
8
|
+
import { AST, TmplAstComponent, TmplAstDirective, TmplAstNode, TmplAstRecursiveVisitor } from '@angular/compiler';
|
|
9
|
+
import { DirectiveMeta, NgCompiler, PipeMeta, Symbol, TemplateTypeChecker } from '@angular/compiler-cli';
|
|
12
10
|
import ts from 'typescript';
|
|
13
11
|
import { TypeCheckInfo } from './utils';
|
|
14
12
|
/** Represents a location in a file. */
|
package/src/semantic_tokens.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { TypeCheckInfo } from './utils';
|
|
11
11
|
/**
|
package/src/signature_help.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
8
|
+
import { NgCompiler } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
/**
|
|
11
11
|
* Queries the TypeScript Language Service to get signature help for a template position.
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import type ts from 'typescript';
|
|
9
|
-
import { ReflectionHost } from '@angular/compiler-cli
|
|
9
|
+
import { ReflectionHost } from '@angular/compiler-cli';
|
|
10
10
|
export declare function isDirectiveOrComponent(node: ts.ClassDeclaration, reflector: ReflectionHost): boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import { LetDeclarationSymbol, PotentialDirective, ReferenceSymbol, VariableSymbol } from '@angular/compiler-cli
|
|
8
|
+
import { LetDeclarationSymbol, PotentialDirective, ReferenceSymbol, TemplateTypeChecker, VariableSymbol } from '@angular/compiler-cli';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
export declare const ALIAS_NAME: string;
|
|
11
11
|
export declare const SYMBOL_INTERFACE: string;
|
|
@@ -38,7 +38,7 @@ export interface DisplayInfo {
|
|
|
38
38
|
documentation: ts.SymbolDisplayPart[] | undefined;
|
|
39
39
|
tags: ts.JSDocTagInfo[] | undefined;
|
|
40
40
|
}
|
|
41
|
-
export declare function getSymbolDisplayInfo(tsLS: ts.LanguageService, typeChecker: ts.TypeChecker, symbol: ReferenceSymbol | VariableSymbol | LetDeclarationSymbol): DisplayInfo;
|
|
41
|
+
export declare function getSymbolDisplayInfo(tsLS: ts.LanguageService, typeChecker: ts.TypeChecker, symbol: ReferenceSymbol | VariableSymbol | LetDeclarationSymbol, templateTypeChecker: TemplateTypeChecker): DisplayInfo;
|
|
42
42
|
/**
|
|
43
43
|
* Construct a compound `ts.SymbolDisplayPart[]` which incorporates the container and type of a
|
|
44
44
|
* target declaration.
|
package/src/utils/index.d.ts
CHANGED
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { AbsoluteSourceSpan, AST, ParseSourceSpan, ParseSpan, PropertyRead, TmplAstBoundEvent, TmplAstElement, TmplAstNode, TmplAstTemplate } from '@angular/compiler';
|
|
9
|
-
import { NgCompiler } from '@angular/compiler-cli
|
|
10
|
-
import { AbsoluteFsPath } from '@angular/compiler-cli/src/ngtsc/file_system';
|
|
11
|
-
import { DirectiveSymbol, TemplateTypeChecker } from '@angular/compiler-cli/src/ngtsc/typecheck/api';
|
|
9
|
+
import { AbsoluteFsPath, DirectiveSymbol, NgCompiler, TemplateTypeChecker } from '@angular/compiler-cli';
|
|
12
10
|
import ts from 'typescript';
|
|
13
11
|
import { DisplayInfoKind } from './display_parts';
|
|
14
12
|
export declare function getTextSpanOfNode(node: TmplAstNode | AST): ts.TextSpan;
|
package/src/utils/ts_utils.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
|
9
|
-
import { PotentialDirective, PotentialPipe, TemplateTypeChecker } from '@angular/compiler-cli/src/ngtsc/typecheck/api';
|
|
1
|
+
import { NgCompiler, PotentialDirective, PotentialPipe, SymbolReference, TemplateTypeChecker } from '@angular/compiler-cli';
|
|
10
2
|
import ts from 'typescript';
|
|
11
3
|
/**
|
|
12
4
|
* Return the node that most tightly encompasses the specified `position`.
|
|
@@ -16,6 +8,7 @@ import ts from 'typescript';
|
|
|
16
8
|
export declare function findTightestNode(node: ts.Node, position: number): ts.Node | undefined;
|
|
17
9
|
export interface FindOptions<T extends ts.Node> {
|
|
18
10
|
filter: (node: ts.Node) => node is T;
|
|
11
|
+
position?: number;
|
|
19
12
|
}
|
|
20
13
|
/**
|
|
21
14
|
* Finds TypeScript nodes descending from the provided root which match the given filter.
|
|
@@ -25,6 +18,10 @@ export declare function findAllMatchingNodes<T extends ts.Node>(root: ts.Node, o
|
|
|
25
18
|
* Finds TypeScript nodes descending from the provided root which match the given filter.
|
|
26
19
|
*/
|
|
27
20
|
export declare function findFirstMatchingNode<T extends ts.Node>(root: ts.Node, opts: FindOptions<T>): T | null;
|
|
21
|
+
/**
|
|
22
|
+
* Resolves a ClassDeclaration from a SymbolReference.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getClassDeclarationFromSymbolReference(ls: ts.LanguageService, ref: SymbolReference): ts.ClassDeclaration | null;
|
|
28
25
|
export declare function getParentClassDeclaration(startNode: ts.Node): ts.ClassDeclaration | undefined;
|
|
29
26
|
/**
|
|
30
27
|
* Returns a property assignment from the assignment value if the property name
|