Skip to content

Commit 4daf7b2

Browse files
authored
feat: implement decorators (#208)
Implement the cache & resolvePath decorators from the framework.
1 parent 71e1c26 commit 4daf7b2

File tree

16 files changed

+532
-514
lines changed

16 files changed

+532
-514
lines changed

libraries/analysis-javascript/lib/Events.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,38 @@
1717
*/
1818

1919
import { RootContext } from "./RootContext";
20+
import { Export } from "./target/export/Export";
21+
import { Element } from "./type/discovery/element/Element";
22+
import { DiscoveredObjectType } from "./type/discovery/object/DiscoveredType";
23+
import { Relation } from "./type/discovery/relation/Relation";
2024

2125
export type Events = {
2226
exportExtractionStart: (rootContext: RootContext, filepath: string) => void;
2327
exportExtractionComplete: (
2428
rootContext: RootContext,
25-
filepath: string
29+
filepath: string,
30+
exports_: Export[]
2631
) => void;
2732
elementExtractionStart: (rootContext: RootContext, filepath: string) => void;
2833
elementExtractionComplete: (
2934
rootContext: RootContext,
30-
filepath: string
35+
filepath: string,
36+
elements: Map<string, Element>
3137
) => void;
3238
relationExtractionStart: (rootContext: RootContext, filepath: string) => void;
3339
relationExtractionComplete: (
3440
rootContext: RootContext,
35-
filepath: string
41+
filepath: string,
42+
relations: Map<string, Relation>
3643
) => void;
3744
objectTypeExtractionStart: (
3845
rootContext: RootContext,
3946
filepath: string
4047
) => void;
4148
objectTypeExtractionComplete: (
4249
rootContext: RootContext,
43-
filepath: string
50+
filepath: string,
51+
objects: Map<string, DiscoveredObjectType>
4452
) => void;
4553

4654
typeResolvingStart: (rootContext: RootContext) => void;

0 commit comments

Comments
 (0)