Skip to content

Commit

Permalink
feat: implement decorators (#208)
Browse files Browse the repository at this point in the history
Implement the cache & resolvePath decorators from the framework.
  • Loading branch information
dstallenberg authored Dec 11, 2023
1 parent 71e1c26 commit 4daf7b2
Show file tree
Hide file tree
Showing 16 changed files with 532 additions and 514 deletions.
16 changes: 12 additions & 4 deletions libraries/analysis-javascript/lib/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,38 @@
*/

import { RootContext } from "./RootContext";
import { Export } from "./target/export/Export";
import { Element } from "./type/discovery/element/Element";
import { DiscoveredObjectType } from "./type/discovery/object/DiscoveredType";
import { Relation } from "./type/discovery/relation/Relation";

export type Events = {
exportExtractionStart: (rootContext: RootContext, filepath: string) => void;
exportExtractionComplete: (
rootContext: RootContext,
filepath: string
filepath: string,
exports_: Export[]
) => void;
elementExtractionStart: (rootContext: RootContext, filepath: string) => void;
elementExtractionComplete: (
rootContext: RootContext,
filepath: string
filepath: string,
elements: Map<string, Element>
) => void;
relationExtractionStart: (rootContext: RootContext, filepath: string) => void;
relationExtractionComplete: (
rootContext: RootContext,
filepath: string
filepath: string,
relations: Map<string, Relation>
) => void;
objectTypeExtractionStart: (
rootContext: RootContext,
filepath: string
) => void;
objectTypeExtractionComplete: (
rootContext: RootContext,
filepath: string
filepath: string,
objects: Map<string, DiscoveredObjectType>
) => void;

typeResolvingStart: (rootContext: RootContext) => void;
Expand Down
Loading

0 comments on commit 4daf7b2

Please sign in to comment.