@intersystems-community/ascot 0.3.0 → 0.4.0
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/README.md +19 -3
- package/dist/index.d.ts +16 -12
- package/dist/index.js +65 -9
- package/dist/index.js.map +1 -1
- package/generated/ascot.js +19125 -17741
- package/generated/interfaces/iris-ascot-common.d.ts +22 -4
- package/generated/interfaces/iris-ascot-exported.d.ts +2 -2
- package/generated/interfaces/iris-ascot-imported.d.ts +24 -6
- package/lib/ascot.core.wasm +0 -0
- package/lib/ascot.core2.wasm +0 -0
- package/lib/ascot.core3.wasm +0 -0
- package/package.json +2 -1
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/common **/
|
|
2
|
-
export interface RoutineSource {
|
|
3
|
-
text: string,
|
|
4
|
-
uri?: string,
|
|
5
|
-
}
|
|
6
2
|
export interface Position {
|
|
7
3
|
line: number,
|
|
8
4
|
character: number,
|
|
@@ -45,6 +41,9 @@ export interface RelationshipInfo {
|
|
|
45
41
|
t?: string,
|
|
46
42
|
cardinality?: Cardinality,
|
|
47
43
|
}
|
|
44
|
+
export interface IndexInfo {
|
|
45
|
+
properties: Array<string>,
|
|
46
|
+
}
|
|
48
47
|
/**
|
|
49
48
|
* # Variants
|
|
50
49
|
*
|
|
@@ -97,6 +96,7 @@ export interface MemberKindForeignKey {
|
|
|
97
96
|
}
|
|
98
97
|
export interface MemberKindIndex {
|
|
99
98
|
tag: 'index',
|
|
99
|
+
val: IndexInfo,
|
|
100
100
|
}
|
|
101
101
|
export interface MemberKindProjection {
|
|
102
102
|
tag: 'projection',
|
|
@@ -140,6 +140,8 @@ export interface ClassInfo {
|
|
|
140
140
|
doc: string,
|
|
141
141
|
name: NameInfo,
|
|
142
142
|
'extends': Array<string>,
|
|
143
|
+
inheritanceRight: boolean,
|
|
144
|
+
storage?: string,
|
|
143
145
|
deprecated: boolean,
|
|
144
146
|
members: Array<MemberInfo>,
|
|
145
147
|
propertyClassNames: Array<string>,
|
|
@@ -147,6 +149,22 @@ export interface ClassInfo {
|
|
|
147
149
|
isDatatype?: boolean,
|
|
148
150
|
uri?: string,
|
|
149
151
|
}
|
|
152
|
+
export interface LabelInfo {
|
|
153
|
+
name: string,
|
|
154
|
+
normal: Array<NormalArg>,
|
|
155
|
+
variadic?: VariadicArg,
|
|
156
|
+
t?: string,
|
|
157
|
+
procedureBlock?: Array<string>,
|
|
158
|
+
declaredAt?: Range,
|
|
159
|
+
}
|
|
160
|
+
export interface RoutineInfo {
|
|
161
|
+
labels?: Array<LabelInfo>,
|
|
162
|
+
uri?: string,
|
|
163
|
+
}
|
|
164
|
+
export interface Source {
|
|
165
|
+
text: string,
|
|
166
|
+
uri?: string,
|
|
167
|
+
}
|
|
150
168
|
export interface Location {
|
|
151
169
|
uri: string,
|
|
152
170
|
range: Range,
|
|
@@ -9,10 +9,10 @@ export type Location = import('./iris-ascot-common.js').Location;
|
|
|
9
9
|
export type DocumentSymbol = import('./iris-ascot-common.js').DocumentSymbol;
|
|
10
10
|
export type WorkspaceSymbol = import('./iris-ascot-common.js').WorkspaceSymbol;
|
|
11
11
|
export type Style = import('./iris-ascot-common.js').Style;
|
|
12
|
-
export type
|
|
12
|
+
export type Env = import('./iris-ascot-imported.js').Env;
|
|
13
13
|
|
|
14
14
|
export class Workspace {
|
|
15
|
-
constructor(env:
|
|
15
|
+
constructor(env: Env | undefined, style: Style | undefined)
|
|
16
16
|
open(uri: string, text: string): Array<string>;
|
|
17
17
|
close(uri: string): Array<string>;
|
|
18
18
|
diagnostics(uri: string): Promise<Array<Diagnostic>>;
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/imported **/
|
|
2
|
-
export type RoutineSource = import('./iris-ascot-common.js').RoutineSource;
|
|
3
2
|
export type ClassInfo = import('./iris-ascot-common.js').ClassInfo;
|
|
4
|
-
export type
|
|
3
|
+
export type RoutineInfo = import('./iris-ascot-common.js').RoutineInfo;
|
|
4
|
+
export type Source = import('./iris-ascot-common.js').Source;
|
|
5
|
+
export type Env = EnvContext | EnvAtelier;
|
|
6
|
+
export interface EnvContext {
|
|
7
|
+
tag: 'context',
|
|
8
|
+
val: IrisContext,
|
|
9
|
+
}
|
|
10
|
+
export interface EnvAtelier {
|
|
11
|
+
tag: 'atelier',
|
|
12
|
+
val: Atelier,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class Atelier {
|
|
16
|
+
/**
|
|
17
|
+
* This type does not have a public constructor.
|
|
18
|
+
*/
|
|
19
|
+
private constructor();
|
|
20
|
+
query(sql: string, params: Array<string>): Promise<string>;
|
|
21
|
+
getDoc(name: string): Promise<string | undefined>;
|
|
22
|
+
}
|
|
5
23
|
|
|
6
|
-
export class
|
|
24
|
+
export class IrisContext {
|
|
7
25
|
/**
|
|
8
26
|
* This type does not have a public constructor.
|
|
9
27
|
*/
|
|
10
28
|
private constructor();
|
|
11
|
-
getCls(
|
|
12
|
-
|
|
13
|
-
|
|
29
|
+
getCls(name: string): Promise<ClassInfo | undefined>;
|
|
30
|
+
getRtn(name: string): Promise<RoutineInfo | undefined>;
|
|
31
|
+
getInc(name: string): Promise<Source | undefined>;
|
|
14
32
|
}
|
package/lib/ascot.core.wasm
CHANGED
|
Binary file
|
package/lib/ascot.core2.wasm
CHANGED
|
Binary file
|
package/lib/ascot.core3.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intersystems-community/ascot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "ascot, a type checker and code intelligence engine for InterSystems ObjectScript, for Node and other JS consumers.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "bash scripts/build.sh",
|
|
32
|
+
"test": "node --test",
|
|
32
33
|
"format": "prettier --write .",
|
|
33
34
|
"format:check": "prettier --check ."
|
|
34
35
|
},
|