1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { Result } from '../model/analysis';
|
15 | import { Document, ScannedDocument, Warning } from '../model/model';
|
16 | import { ResolvedUrl } from '../model/url';
|
17 | import { ParsedDocument } from '../parser/document';
|
18 | import { AsyncWorkCache } from './async-work-cache';
|
19 | import { DependencyGraph } from './dependency-graph';
|
20 | export declare class AnalysisCache {
|
21 | |
22 |
|
23 |
|
24 |
|
25 | readonly parsedDocumentPromises: AsyncWorkCache<ResolvedUrl, Result<ParsedDocument, Warning>>;
|
26 | readonly scannedDocumentPromises: AsyncWorkCache<ResolvedUrl, Result<ScannedDocument, Warning>>;
|
27 | readonly dependenciesScannedPromises: AsyncWorkCache<ResolvedUrl, Result<ScannedDocument, Warning>>;
|
28 | readonly analyzedDocumentPromises: AsyncWorkCache<ResolvedUrl, Document>;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | readonly scannedDocuments: Map<ResolvedUrl, ScannedDocument>;
|
34 | readonly analyzedDocuments: Map<ResolvedUrl, Document>;
|
35 | readonly failedDocuments: Map<ResolvedUrl, Warning>;
|
36 | readonly dependencyGraph: DependencyGraph;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | constructor(from?: AnalysisCache, newDependencyGraph?: DependencyGraph);
|
45 | /**
|
46 | * Returns a copy of this cache, with the given document and all of its
|
47 | * transitive dependants invalidated.
|
48 | *
|
49 | * Must be called whenever a document changes.
|
50 | */
|
51 | invalidate(documentPaths: ResolvedUrl[]): AnalysisCache;
|
52 | toString(): string;
|
53 | }
|