1 | import { IContext } from "./context";
|
2 | import * as tsTypes from "typescript";
|
3 | export interface ICode {
|
4 | code: string;
|
5 | map?: string;
|
6 | dts?: tsTypes.OutputFile;
|
7 | dtsmap?: tsTypes.OutputFile;
|
8 | references?: string[];
|
9 | }
|
10 | export interface IDiagnostics {
|
11 | flatMessage: string;
|
12 | formatted: string;
|
13 | fileLine?: string;
|
14 | category: tsTypes.DiagnosticCategory;
|
15 | code: number;
|
16 | type: string;
|
17 | }
|
18 | export declare function convertEmitOutput(output: tsTypes.EmitOutput, references?: string[]): ICode;
|
19 | export declare function getAllReferences(importer: string, snapshot: tsTypes.IScriptSnapshot | undefined, options: tsTypes.CompilerOptions): string[];
|
20 | export declare function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDiagnostics[];
|
21 | export declare class TsCache {
|
22 | private noCache;
|
23 | private host;
|
24 | private cacheRoot;
|
25 | private options;
|
26 | private rollupConfig;
|
27 | private context;
|
28 | private cacheVersion;
|
29 | private cachePrefix;
|
30 | private dependencyTree;
|
31 | private ambientTypes;
|
32 | private ambientTypesDirty;
|
33 | private cacheDir;
|
34 | private codeCache;
|
35 | private typesCache;
|
36 | private semanticDiagnosticsCache;
|
37 | private syntacticDiagnosticsCache;
|
38 | private hashOptions;
|
39 | constructor(noCache: boolean, hashIgnoreUnknown: boolean, host: tsTypes.LanguageServiceHost, cacheRoot: string, options: tsTypes.CompilerOptions, rollupConfig: any, rootFilenames: string[], context: IContext);
|
40 | clean(): void;
|
41 | setDependency(importee: string, importer: string): void;
|
42 | walkTree(cb: (id: string) => void | false): void;
|
43 | done(): void;
|
44 | getCompiled(id: string, snapshot: tsTypes.IScriptSnapshot, transform: () => ICode | undefined): ICode | undefined;
|
45 | getSyntacticDiagnostics(id: string, snapshot: tsTypes.IScriptSnapshot, check: () => tsTypes.Diagnostic[]): IDiagnostics[];
|
46 | getSemanticDiagnostics(id: string, snapshot: tsTypes.IScriptSnapshot, check: () => tsTypes.Diagnostic[]): IDiagnostics[];
|
47 | private checkAmbientTypes;
|
48 | private getDiagnostics;
|
49 | private init;
|
50 | private markAsDirty;
|
51 | private isDirty;
|
52 | private makeName;
|
53 | }
|
54 | //# sourceMappingURL=tscache.d.ts.map |
\ | No newline at end of file |