@akanjs/language 3.2.0-rc.0 → 3.2.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/moduleFacts.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type * as TS from "typescript";
2
2
  import type { AkanAst, Ts } from "./ast";
3
+ import { type GuardCallFact, type GuardFact, type GuardFactoryFact } from "./guardFacts";
3
4
  export interface AkanSpan {
4
5
  fileName: string;
5
6
  start: number;
@@ -80,20 +81,6 @@ export interface StoreClassFact extends ModuleClassFact {
80
81
  stateKeys: NamedFact[];
81
82
  actions: MemberFact[];
82
83
  }
83
- export interface GuardFact extends MemberFact {
84
- scope: string | null;
85
- doc: string | null;
86
- factory: string | null;
87
- }
88
- export interface GuardFactoryFact extends MemberFact {
89
- scope: string | null;
90
- doc: string | null;
91
- via: string | null;
92
- }
93
- export interface GuardCallFact extends MemberFact {
94
- callee: string;
95
- doc: string | null;
96
- }
97
84
  export interface ImportFact {
98
85
  name: string;
99
86
  imported: string;
@@ -106,6 +93,7 @@ export interface FileFacts {
106
93
  guards: GuardFact[];
107
94
  guardFactories: GuardFactoryFact[];
108
95
  guardCalls: GuardCallFact[];
96
+ guardLabels: Record<string, string>;
109
97
  constants: ConstantClassFact[];
110
98
  enums: EnumClassFact[];
111
99
  filters: FilterClassFact[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/language",
3
- "version": "3.2.0-rc.0",
3
+ "version": "3.2.0-rc.2",
4
4
  "description": "Editor-independent Akan.js language core: resolves derived names (slices, queries, CRUD, form setters) back to the source key that produced them.",
5
5
  "sourceType": "module",
6
6
  "type": "module",
package/routeFacts.d.ts CHANGED
@@ -38,11 +38,14 @@ export declare class RouteFactReader {
38
38
  declarationIn(source: TS.SourceFile, name: string): {
39
39
  statement: TS.FunctionDeclaration;
40
40
  declared: TS.Identifier;
41
- initializer: null;
41
+ extent: {
42
+ start: number;
43
+ end: number;
44
+ };
42
45
  } | {
43
46
  statement: TS.VariableStatement;
44
47
  declared: TS.BindingName;
45
- initializer: TS.Expression | null;
48
+ extent: Extent;
46
49
  } | null;
47
50
  }
48
51
  export {};