@zenstackhq/language 3.0.0-alpha.28 → 3.0.0-alpha.29
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/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +5 -5
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataModel, TypeDef, DataField, Enum, EnumField, FunctionDecl, Attribute, AttributeParam,
|
|
1
|
+
import { DataModel, TypeDef, DataField, Enum, EnumField, FunctionDecl, Attribute, AttributeParam, DataFieldAttribute, DataModelAttribute, ExpressionType, Expression, BuiltinType, ReferenceExpr, ConfigExpr, Model, ModelImport, AbstractDeclaration, BinaryExpr } from './ast.cjs';
|
|
2
2
|
import { AstNode, Reference, LangiumDocuments, URI, LangiumDocument } from 'langium';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -13,7 +13,7 @@ declare enum ExpressionContext {
|
|
|
13
13
|
|
|
14
14
|
type AttributeTarget = DataModel | TypeDef | DataField | Enum | EnumField | FunctionDecl | Attribute | AttributeParam;
|
|
15
15
|
declare function hasAttribute(decl: AttributeTarget, name: string): boolean;
|
|
16
|
-
declare function getAttribute(decl: AttributeTarget, name: string):
|
|
16
|
+
declare function getAttribute(decl: AttributeTarget, name: string): DataFieldAttribute | DataModelAttribute | undefined;
|
|
17
17
|
declare function isFromStdlib(node: AstNode): boolean;
|
|
18
18
|
declare function isAuthInvocation(node: AstNode): boolean;
|
|
19
19
|
/**
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataModel, TypeDef, DataField, Enum, EnumField, FunctionDecl, Attribute, AttributeParam,
|
|
1
|
+
import { DataModel, TypeDef, DataField, Enum, EnumField, FunctionDecl, Attribute, AttributeParam, DataFieldAttribute, DataModelAttribute, ExpressionType, Expression, BuiltinType, ReferenceExpr, ConfigExpr, Model, ModelImport, AbstractDeclaration, BinaryExpr } from './ast.js';
|
|
2
2
|
import { AstNode, Reference, LangiumDocuments, URI, LangiumDocument } from 'langium';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -13,7 +13,7 @@ declare enum ExpressionContext {
|
|
|
13
13
|
|
|
14
14
|
type AttributeTarget = DataModel | TypeDef | DataField | Enum | EnumField | FunctionDecl | Attribute | AttributeParam;
|
|
15
15
|
declare function hasAttribute(decl: AttributeTarget, name: string): boolean;
|
|
16
|
-
declare function getAttribute(decl: AttributeTarget, name: string):
|
|
16
|
+
declare function getAttribute(decl: AttributeTarget, name: string): DataFieldAttribute | DataModelAttribute | undefined;
|
|
17
17
|
declare function isFromStdlib(node: AstNode): boolean;
|
|
18
18
|
declare function isAuthInvocation(node: AstNode): boolean;
|
|
19
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenstackhq/language",
|
|
3
3
|
"description": "ZenStack ZModel language specification",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.29",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ZenStack Team",
|
|
7
7
|
"files": [
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"langium-cli": "3.5.0",
|
|
56
56
|
"tmp": "^0.2.3",
|
|
57
57
|
"@types/tmp": "^0.2.6",
|
|
58
|
-
"@zenstackhq/
|
|
59
|
-
"@zenstackhq/
|
|
60
|
-
"@zenstackhq/
|
|
61
|
-
"@zenstackhq/vitest-config": "3.0.0-alpha.
|
|
58
|
+
"@zenstackhq/eslint-config": "3.0.0-alpha.29",
|
|
59
|
+
"@zenstackhq/typescript-config": "3.0.0-alpha.29",
|
|
60
|
+
"@zenstackhq/common-helpers": "3.0.0-alpha.29",
|
|
61
|
+
"@zenstackhq/vitest-config": "3.0.0-alpha.29"
|
|
62
62
|
},
|
|
63
63
|
"volta": {
|
|
64
64
|
"node": "18.19.1",
|