@zenstackhq/language 1.10.0 → 2.0.0-alpha.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/ast.d.ts +17 -7
- package/ast.js.map +1 -1
- package/package.json +1 -1
package/ast.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { AstNode } from 'langium';
|
|
2
|
+
import { AbstractDeclaration, BinaryExpr, DataModel, ExpressionType } from './generated/ast';
|
|
3
3
|
export { AstNode, Reference } from 'langium';
|
|
4
|
+
export * from './generated/ast';
|
|
4
5
|
/**
|
|
5
6
|
* Shape of type resolution result: an expression type or reference to a declaration
|
|
6
7
|
*/
|
|
@@ -21,16 +22,25 @@ declare module './generated/ast' {
|
|
|
21
22
|
*/
|
|
22
23
|
$resolvedParam?: AttributeParam;
|
|
23
24
|
}
|
|
25
|
+
interface DataModelField {
|
|
26
|
+
$inheritedFrom?: DataModel;
|
|
27
|
+
}
|
|
28
|
+
interface DataModelAttribute {
|
|
29
|
+
$inheritedFrom?: DataModel;
|
|
30
|
+
}
|
|
24
31
|
interface DataModel {
|
|
25
32
|
/**
|
|
26
|
-
*
|
|
33
|
+
* Indicates whether the model is already merged with the base types
|
|
27
34
|
*/
|
|
28
|
-
$
|
|
29
|
-
}
|
|
30
|
-
interface DataModelField {
|
|
31
|
-
$isInherited?: boolean;
|
|
35
|
+
$baseMerged?: boolean;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
38
|
+
export interface InheritableNode extends AstNode {
|
|
39
|
+
$inheritedFrom?: DataModel;
|
|
40
|
+
}
|
|
41
|
+
export interface InheritableNode extends AstNode {
|
|
42
|
+
$inheritedFrom?: DataModel;
|
|
43
|
+
}
|
|
34
44
|
declare module 'langium' {
|
|
35
45
|
interface AstNode {
|
|
36
46
|
/**
|
package/ast.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,kDAAgC;AAgBnB,QAAA,0BAA0B,GAA2C;IAC9E,aAAa;IACb,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,cAAc;IACd,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,gBAAgB;IAChB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,EAAE,EAAE,CAAC;IACL,yBAAyB;IACzB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;CACT,CAAC"}
|