UNPKG

2.23 kBTypeScriptView Raw
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.io/license
7 */
8/// <amd-module name="@angular/language-service/ivy/language_service" />
9import { CompilerOptions } from '@angular/compiler-cli';
10import * as ts from 'typescript/lib/tsserverlibrary';
11import { GetTcbResponse } from '../api';
12import { CompilerFactory } from './compiler_factory';
13export declare class LanguageService {
14 private readonly project;
15 private readonly tsLS;
16 private options;
17 readonly compilerFactory: CompilerFactory;
18 private readonly strategy;
19 private readonly adapter;
20 private readonly parseConfigHost;
21 constructor(project: ts.server.Project, tsLS: ts.LanguageService);
22 getCompilerOptions(): CompilerOptions;
23 getSemanticDiagnostics(fileName: string): ts.Diagnostic[];
24 getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan | undefined;
25 getTypeDefinitionAtPosition(fileName: string, position: number): readonly ts.DefinitionInfo[] | undefined;
26 getQuickInfoAtPosition(fileName: string, position: number): ts.QuickInfo | undefined;
27 getReferencesAtPosition(fileName: string, position: number): ts.ReferenceEntry[] | undefined;
28 getRenameInfo(fileName: string, position: number): ts.RenameInfo;
29 findRenameLocations(fileName: string, position: number): readonly ts.RenameLocation[] | undefined;
30 private getCompletionBuilder;
31 getCompletionsAtPosition(fileName: string, position: number, options: ts.GetCompletionsAtPositionOptions | undefined): ts.WithMetadata<ts.CompletionInfo> | undefined;
32 getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: ts.FormatCodeOptions | ts.FormatCodeSettings | undefined, preferences: ts.UserPreferences | undefined): ts.CompletionEntryDetails | undefined;
33 getCompletionEntrySymbol(fileName: string, position: number, entryName: string): ts.Symbol | undefined;
34 getTcb(fileName: string, position: number): GetTcbResponse;
35 private withCompiler;
36 getCompilerOptionsDiagnostics(): ts.Diagnostic[];
37 private watchConfigFile;
38}