@zenstackhq/language 3.0.0-beta.26 → 3.0.0-beta.28
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/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -10
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model, DataSource, DataModel, TypeDef, Enum, Attribute, Expression, InvocationExpr, FunctionDecl } from './ast.cjs';
|
|
1
|
+
import { Model, DataSource, GeneratorDecl, DataModel, TypeDef, Enum, Attribute, Expression, InvocationExpr, FunctionDecl } from './ast.cjs';
|
|
2
2
|
import { ValidationAcceptor, Module, DeepPartial, AstNode } from 'langium';
|
|
3
3
|
import { LangiumServices, PartialLangiumServices, LangiumSharedServices, DefaultSharedModuleContext } from 'langium/lsp';
|
|
4
4
|
|
|
@@ -40,6 +40,7 @@ declare class ZModelValidator {
|
|
|
40
40
|
constructor(services: ZModelServices);
|
|
41
41
|
checkModel(node: Model, accept: ValidationAcceptor): void;
|
|
42
42
|
checkDataSource(node: DataSource, accept: ValidationAcceptor): void;
|
|
43
|
+
checkGenerator(node: GeneratorDecl, accept: ValidationAcceptor): void;
|
|
43
44
|
checkDataModel(node: DataModel, accept: ValidationAcceptor): void;
|
|
44
45
|
checkTypeDef(node: TypeDef, accept: ValidationAcceptor): void;
|
|
45
46
|
checkEnum(node: Enum, accept: ValidationAcceptor): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model, DataSource, DataModel, TypeDef, Enum, Attribute, Expression, InvocationExpr, FunctionDecl } from './ast.js';
|
|
1
|
+
import { Model, DataSource, GeneratorDecl, DataModel, TypeDef, Enum, Attribute, Expression, InvocationExpr, FunctionDecl } from './ast.js';
|
|
2
2
|
import { ValidationAcceptor, Module, DeepPartial, AstNode } from 'langium';
|
|
3
3
|
import { LangiumServices, PartialLangiumServices, LangiumSharedServices, DefaultSharedModuleContext } from 'langium/lsp';
|
|
4
4
|
|
|
@@ -40,6 +40,7 @@ declare class ZModelValidator {
|
|
|
40
40
|
constructor(services: ZModelServices);
|
|
41
41
|
checkModel(node: Model, accept: ValidationAcceptor): void;
|
|
42
42
|
checkDataSource(node: DataSource, accept: ValidationAcceptor): void;
|
|
43
|
+
checkGenerator(node: GeneratorDecl, accept: ValidationAcceptor): void;
|
|
43
44
|
checkDataModel(node: DataModel, accept: ValidationAcceptor): void;
|
|
44
45
|
checkTypeDef(node: TypeDef, accept: ValidationAcceptor): void;
|
|
45
46
|
checkEnum(node: Enum, accept: ValidationAcceptor): void;
|
package/dist/index.js
CHANGED
|
@@ -7243,6 +7243,7 @@ function registerValidationChecks(services) {
|
|
|
7243
7243
|
const checks = {
|
|
7244
7244
|
Model: validator.checkModel,
|
|
7245
7245
|
DataSource: validator.checkDataSource,
|
|
7246
|
+
GeneratorDecl: validator.checkGenerator,
|
|
7246
7247
|
DataModel: validator.checkDataModel,
|
|
7247
7248
|
TypeDef: validator.checkTypeDef,
|
|
7248
7249
|
Enum: validator.checkEnum,
|
|
@@ -7268,6 +7269,11 @@ var ZModelValidator = class {
|
|
|
7268
7269
|
checkDataSource(node, accept) {
|
|
7269
7270
|
new DataSourceValidator().validate(node, accept);
|
|
7270
7271
|
}
|
|
7272
|
+
checkGenerator(node, accept) {
|
|
7273
|
+
accept("warning", '"generator" is not used by ZenStack and should be removed.', {
|
|
7274
|
+
node
|
|
7275
|
+
});
|
|
7276
|
+
}
|
|
7271
7277
|
checkDataModel(node, accept) {
|
|
7272
7278
|
new DataModelValidator().validate(node, accept);
|
|
7273
7279
|
}
|