@abapify/acds 0.4.17 → 0.4.21
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.d.mts +0 -32
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -36
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "chevrotain";
|
|
2
|
-
//#region src/ast.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* AST Node Types for ABAP CDS source
|
|
5
4
|
*
|
|
@@ -630,8 +629,6 @@ type CdsDefinition = TableDefinition | StructureDefinition | SimpleTypeDefinitio
|
|
|
630
629
|
interface CdsSourceFile extends AstNode {
|
|
631
630
|
definitions: CdsDefinition[];
|
|
632
631
|
}
|
|
633
|
-
//#endregion
|
|
634
|
-
//#region src/errors.d.ts
|
|
635
632
|
interface CdsParseError {
|
|
636
633
|
message: string;
|
|
637
634
|
line: number;
|
|
@@ -639,8 +636,6 @@ interface CdsParseError {
|
|
|
639
636
|
offset: number;
|
|
640
637
|
length: number;
|
|
641
638
|
}
|
|
642
|
-
//#endregion
|
|
643
|
-
//#region src/lib/ast/walker.d.ts
|
|
644
639
|
type WithMembers = ViewEntityDefinition | AbstractEntityDefinition | CustomEntityDefinition | HierarchyDefinition | ExtensionDefinition;
|
|
645
640
|
type WithFields = TableDefinition | StructureDefinition | ExternalEntityDefinition | TableFunctionDefinition;
|
|
646
641
|
type WithParameters = ViewEntityDefinition | AbstractEntityDefinition | CustomEntityDefinition | ExternalEntityDefinition | TableFunctionDefinition | ScalarFunctionDefinition | HierarchyDefinition;
|
|
@@ -695,14 +690,8 @@ declare function walkParameters(file: CdsSourceFile): Iterable<{
|
|
|
695
690
|
declare function isAssociation(m: ViewMember): m is AssociationDeclaration;
|
|
696
691
|
/** Look up an annotation by its dotted key. Returns the first match. */
|
|
697
692
|
declare function findAnnotation(annotations: readonly Annotation[], key: string): Annotation | undefined;
|
|
698
|
-
//#endregion
|
|
699
|
-
//#region src/lib/validate/cardinality.d.ts
|
|
700
693
|
declare function validateCardinality(file: CdsSourceFile): SemanticDiagnostic[];
|
|
701
|
-
//#endregion
|
|
702
|
-
//#region src/lib/validate/elements.d.ts
|
|
703
694
|
declare function validateViewElements(file: CdsSourceFile): SemanticDiagnostic[];
|
|
704
|
-
//#endregion
|
|
705
|
-
//#region src/lib/validate/index.d.ts
|
|
706
695
|
interface SemanticDiagnostic {
|
|
707
696
|
/** Stable machine-readable code. */
|
|
708
697
|
code: string;
|
|
@@ -713,32 +702,14 @@ interface SemanticDiagnostic {
|
|
|
713
702
|
}
|
|
714
703
|
/** Run all validators. */
|
|
715
704
|
declare function validate(file: CdsSourceFile): SemanticDiagnostic[];
|
|
716
|
-
//#endregion
|
|
717
|
-
//#region src/lib/grammar/ddl.d.ts
|
|
718
705
|
declare const ddlCoverage: GrammarCoverage;
|
|
719
|
-
//#endregion
|
|
720
|
-
//#region src/lib/grammar/dcl.d.ts
|
|
721
706
|
declare const dclCoverage: GrammarCoverage;
|
|
722
|
-
//#endregion
|
|
723
|
-
//#region src/lib/grammar/annotations.d.ts
|
|
724
707
|
declare const annotationsCoverage: GrammarCoverage;
|
|
725
|
-
//#endregion
|
|
726
|
-
//#region src/lib/grammar/associations.d.ts
|
|
727
708
|
declare const associationsCoverage: GrammarCoverage;
|
|
728
|
-
//#endregion
|
|
729
|
-
//#region src/lib/grammar/joins.d.ts
|
|
730
709
|
declare const joinsCoverage: GrammarCoverage;
|
|
731
|
-
//#endregion
|
|
732
|
-
//#region src/lib/grammar/parameters.d.ts
|
|
733
710
|
declare const parametersCoverage: GrammarCoverage;
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region src/lib/grammar/projections.d.ts
|
|
736
711
|
declare const projectionsCoverage: GrammarCoverage;
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/lib/grammar/actions.d.ts
|
|
739
712
|
declare const actionsCoverage: GrammarCoverage;
|
|
740
|
-
//#endregion
|
|
741
|
-
//#region src/lib/grammar/index.d.ts
|
|
742
713
|
/**
|
|
743
714
|
* Grammar coverage index.
|
|
744
715
|
*
|
|
@@ -755,8 +726,6 @@ type GrammarCoverage = {
|
|
|
755
726
|
readonly constructs: readonly string[];
|
|
756
727
|
};
|
|
757
728
|
declare const GRAMMAR_COVERAGE: readonly GrammarCoverage[];
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/index.d.ts
|
|
760
729
|
/** Result of parsing a CDS source file */
|
|
761
730
|
interface ParseResult {
|
|
762
731
|
/** The parsed AST (may be partial if there are errors) */
|
|
@@ -771,6 +740,5 @@ interface ParseResult {
|
|
|
771
740
|
* @returns Parse result with AST and any errors
|
|
772
741
|
*/
|
|
773
742
|
declare function parse(source: string): ParseResult;
|
|
774
|
-
//#endregion
|
|
775
743
|
export { type AbstractEntityDefinition, type AccessPolicyDefinition, type AnnotatedElement, type Annotation, type AnnotationArray, type AnnotationDefinition, type AnnotationObject, type AnnotationProperty, type AnnotationValue, type AspectBinding, type AspectBindingMapping, type AspectDefinition, type AspectElement, type AssociationDeclaration, type AssociationKind, type AssociationRedirection, type AstNode, type BooleanLiteral, type BuiltinTypeRef, type Cardinality, type CardinalityWord, type CdsDefinition, type CdsParseError, type CdsSourceFile, type ConditionedJoinClause, type CrossJoinClause, type CustomEntityDefinition, type DataSource, type DataSourceKind, type DataSourceParameter, type DclOptionalElement, type EnumValue, type ExposeStatement, type Expression, type ExtendSetOperation, type ExtensionDefinition, type ExternalEntityDefinition, type FieldDefinition, GRAMMAR_COVERAGE, type GrammarCoverage, type GrantStatement, type HierarchyDefinition, type HierarchyPeriod, type IncludeDirective, type InheritStatement, type InheritingConditionsStatement, type JoinClause, type JoinGroup, type JoinSource, type JoinType, type MetadataExtension, type NamedTypeRef, type NumberLiteral, type ParameterDefinition, ParseResult, type RedefinedAssociation, type RoleDefinition, type RoleMember, type ScalarFunctionDefinition, type SelectStatement, type SemanticDiagnostic, type ServiceDefinition, type SetOperation, type SimpleTypeDefinition, type SortItem, type SourceLocation, type StringLiteral, type StructureDefinition, type TableDefinition, type TableFunctionDefinition, type TableMember, type TypeRef, type ViewElement, type ViewEntityDefinition, type ViewMember, type WordCardinality, actionsCoverage, annotationsCoverage, associationsCoverage, dclCoverage, ddlCoverage, findAnnotation, hasFields, hasMembers, hasParameters, isAssociation, joinsCoverage, parametersCoverage, parse, projectionsCoverage, validate, validateCardinality, validateViewElements, walkAnnotations, walkAssociations, walkDefinitions, walkFields, walkFromAssociations, walkJoins, walkParameters, walkViewElements };
|
|
776
744
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/ast.ts","../src/errors.ts","../src/lib/ast/walker.ts","../src/lib/validate/cardinality.ts","../src/lib/validate/elements.ts","../src/lib/validate/index.ts","../src/lib/grammar/ddl.ts","../src/lib/grammar/dcl.ts","../src/lib/grammar/annotations.ts","../src/lib/grammar/associations.ts","../src/lib/grammar/joins.ts","../src/lib/grammar/parameters.ts","../src/lib/grammar/projections.ts","../src/lib/grammar/actions.ts","../src/lib/grammar/index.ts","../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/ast.ts","../src/errors.ts","../src/lib/ast/walker.ts","../src/lib/validate/cardinality.ts","../src/lib/validate/elements.ts","../src/lib/validate/index.ts","../src/lib/grammar/ddl.ts","../src/lib/grammar/dcl.ts","../src/lib/grammar/annotations.ts","../src/lib/grammar/associations.ts","../src/lib/grammar/joins.ts","../src/lib/grammar/parameters.ts","../src/lib/grammar/projections.ts","../src/lib/grammar/actions.ts","../src/lib/grammar/index.ts","../src/index.ts"],"mappings":";;;;;;;;;UAaiB;EACf;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf,MAAM;;;KAQI,kBACR,gBACA,YACA,iBACA,gBACA,kBACA;UAEa,sBAAsB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BACA,0BACA,2BACA;;iBAGY,WAAW,KAAK,gBAAgB,OAAO;;iBAWvC,UAAU,KAAK,gBAAgB,OAAO;iBAStC,cAAc,KAAK,gBAAgB,OAAO;;iBAazC,gBAAgB,MAAM,gBAAgB,SAAS;;;;;iBAQ/C,gBAAgB,MAAM,gBAAgB,SAAS;;iBA2B/C,iBACf,MAAM,gBACL;EAAW,OAAO;EAAa,SAAS;;;iBAW1B,iBACf,MAAM,gBACL;EAAW,OAAO;EAAa,aAAa;;;;;;;;;iBAoB9B,qBAAqB,MAAM,gBAAgB;EAC1D,OAAO;EACP,aAAa;;;iBAgCE,UACf,MAAM,gBACL;EAAW,OAAO;EAAsB,MAAM;;;iBA6ChC,WACf,MAAM,gBACL;EAAW,OAAO;EAAY,OAAO;;;iBAWvB,eACf,MAAM,gBACL;EAAW,OAAO;EAAgB,WAAW;;iBAOhC,cAAc,GAAG,aAAa,KAAK;;iBAKnC,eACd,sBAAsB,cACtB,cACC;iBCjQa,oBAAoB,MAAM,gBAAgB;iBCF1C,qBACd,MAAM,gBACL;UCAc;;EAEf;EACA;EACA;;EAEA;;;iBAIc,SAAS,MAAM,gBAAgB;cCiBlC,aAAa;cCdb,aAAa;cCDb,qBAAqB;cCMrB,sBAAsB;cCatB,eAAe;cC/Bf,oBAAoB;cCYpB,qBAAqB;cCRrB,iBAAiB;;;;;;;;;;;;KCLlB;WACD;WACA;;cAqBE,2BAA2B;;UCHvB;;EAEf,KAAK;;EAEL,QAAQ;;;;;;;;iBASM,MAAM,iBAAiB"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CstParser, EOF, Lexer, createToken } from "chevrotain";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/tokens.ts
|
|
4
4
|
/**
|
|
5
5
|
* Chevrotain Token Definitions for ABAP CDS
|
|
6
6
|
*
|
|
@@ -1012,8 +1012,7 @@ const allTokens = [
|
|
|
1012
1012
|
];
|
|
1013
1013
|
const CdsLexer = new Lexer(allTokens);
|
|
1014
1014
|
|
|
1015
|
-
|
|
1016
|
-
//#region src/parser.ts
|
|
1015
|
+
// src/parser.ts
|
|
1017
1016
|
/**
|
|
1018
1017
|
* Chevrotain CstParser for ABAP CDS.
|
|
1019
1018
|
*
|
|
@@ -2885,8 +2884,7 @@ var CdsParser = class CdsParser extends CstParser {
|
|
|
2885
2884
|
/** Singleton parser instance (Chevrotain parsers are reusable) */
|
|
2886
2885
|
const cdsParser = new CdsParser();
|
|
2887
2886
|
|
|
2888
|
-
|
|
2889
|
-
//#region src/visitor.ts
|
|
2887
|
+
// src/visitor.ts
|
|
2890
2888
|
const BaseCstVisitor = cdsParser.getBaseCstVisitorConstructor();
|
|
2891
2889
|
function asNodes(v) {
|
|
2892
2890
|
return v ?? [];
|
|
@@ -4058,8 +4056,7 @@ var CdsVisitor = class extends BaseCstVisitor {
|
|
|
4058
4056
|
/** Singleton visitor instance */
|
|
4059
4057
|
const cdsVisitor = new CdsVisitor();
|
|
4060
4058
|
|
|
4061
|
-
|
|
4062
|
-
//#region src/errors.ts
|
|
4059
|
+
// src/errors.ts
|
|
4063
4060
|
function fromLexError(err) {
|
|
4064
4061
|
return {
|
|
4065
4062
|
message: err.message,
|
|
@@ -4080,8 +4077,7 @@ function fromParseError(err) {
|
|
|
4080
4077
|
};
|
|
4081
4078
|
}
|
|
4082
4079
|
|
|
4083
|
-
|
|
4084
|
-
//#region src/lib/ast/walker.ts
|
|
4080
|
+
// src/lib/ast/walker.ts
|
|
4085
4081
|
/** True when the definition has a `members` array (view-like entities). */
|
|
4086
4082
|
function hasMembers(def) {
|
|
4087
4083
|
return def.kind === "viewEntity" || def.kind === "abstractEntity" || def.kind === "customEntity" || def.kind === "hierarchy" || def.kind === "extension";
|
|
@@ -4221,8 +4217,7 @@ function findAnnotation(annotations, key) {
|
|
|
4221
4217
|
return annotations.find((a) => a.key === key);
|
|
4222
4218
|
}
|
|
4223
4219
|
|
|
4224
|
-
|
|
4225
|
-
//#region src/lib/validate/cardinality.ts
|
|
4220
|
+
// src/lib/validate/cardinality.ts
|
|
4226
4221
|
function validateCardinality(file) {
|
|
4227
4222
|
const diagnostics = [];
|
|
4228
4223
|
const associations = [...walkAssociations(file), ...walkFromAssociations(file)];
|
|
@@ -4253,8 +4248,7 @@ function validateCardinality(file) {
|
|
|
4253
4248
|
return diagnostics;
|
|
4254
4249
|
}
|
|
4255
4250
|
|
|
4256
|
-
|
|
4257
|
-
//#region src/lib/validate/elements.ts
|
|
4251
|
+
// src/lib/validate/elements.ts
|
|
4258
4252
|
function validateViewElements(file) {
|
|
4259
4253
|
const diagnostics = [];
|
|
4260
4254
|
for (const { element } of walkViewElements(file)) {
|
|
@@ -4275,15 +4269,13 @@ function validateViewElements(file) {
|
|
|
4275
4269
|
return diagnostics;
|
|
4276
4270
|
}
|
|
4277
4271
|
|
|
4278
|
-
|
|
4279
|
-
//#region src/lib/validate/index.ts
|
|
4272
|
+
// src/lib/validate/index.ts
|
|
4280
4273
|
/** Run all validators. */
|
|
4281
4274
|
function validate(file) {
|
|
4282
4275
|
return [...validateCardinality(file), ...validateViewElements(file)];
|
|
4283
4276
|
}
|
|
4284
4277
|
|
|
4285
|
-
|
|
4286
|
-
//#region src/lib/grammar/ddl.ts
|
|
4278
|
+
// src/lib/grammar/ddl.ts
|
|
4287
4279
|
const ddlCoverage = {
|
|
4288
4280
|
topic: "ddl",
|
|
4289
4281
|
constructs: [
|
|
@@ -4320,8 +4312,7 @@ const ddlCoverage = {
|
|
|
4320
4312
|
]
|
|
4321
4313
|
};
|
|
4322
4314
|
|
|
4323
|
-
|
|
4324
|
-
//#region src/lib/grammar/dcl.ts
|
|
4315
|
+
// src/lib/grammar/dcl.ts
|
|
4325
4316
|
const dclCoverage = {
|
|
4326
4317
|
topic: "dcl",
|
|
4327
4318
|
constructs: [
|
|
@@ -4336,8 +4327,7 @@ const dclCoverage = {
|
|
|
4336
4327
|
]
|
|
4337
4328
|
};
|
|
4338
4329
|
|
|
4339
|
-
|
|
4340
|
-
//#region src/lib/grammar/annotations.ts
|
|
4330
|
+
// src/lib/grammar/annotations.ts
|
|
4341
4331
|
const annotationsCoverage = {
|
|
4342
4332
|
topic: "annotations",
|
|
4343
4333
|
constructs: [
|
|
@@ -4350,8 +4340,7 @@ const annotationsCoverage = {
|
|
|
4350
4340
|
]
|
|
4351
4341
|
};
|
|
4352
4342
|
|
|
4353
|
-
|
|
4354
|
-
//#region src/lib/grammar/associations.ts
|
|
4343
|
+
// src/lib/grammar/associations.ts
|
|
4355
4344
|
const associationsCoverage = {
|
|
4356
4345
|
topic: "associations",
|
|
4357
4346
|
constructs: [
|
|
@@ -4371,8 +4360,7 @@ const associationsCoverage = {
|
|
|
4371
4360
|
]
|
|
4372
4361
|
};
|
|
4373
4362
|
|
|
4374
|
-
|
|
4375
|
-
//#region src/lib/grammar/joins.ts
|
|
4363
|
+
// src/lib/grammar/joins.ts
|
|
4376
4364
|
const joinsCoverage = {
|
|
4377
4365
|
topic: "joins",
|
|
4378
4366
|
constructs: [
|
|
@@ -4402,8 +4390,7 @@ const joinsCoverage = {
|
|
|
4402
4390
|
]
|
|
4403
4391
|
};
|
|
4404
4392
|
|
|
4405
|
-
|
|
4406
|
-
//#region src/lib/grammar/parameters.ts
|
|
4393
|
+
// src/lib/grammar/parameters.ts
|
|
4407
4394
|
const parametersCoverage = {
|
|
4408
4395
|
topic: "parameters",
|
|
4409
4396
|
constructs: [
|
|
@@ -4413,8 +4400,7 @@ const parametersCoverage = {
|
|
|
4413
4400
|
]
|
|
4414
4401
|
};
|
|
4415
4402
|
|
|
4416
|
-
|
|
4417
|
-
//#region src/lib/grammar/projections.ts
|
|
4403
|
+
// src/lib/grammar/projections.ts
|
|
4418
4404
|
const projectionsCoverage = {
|
|
4419
4405
|
topic: "projections",
|
|
4420
4406
|
constructs: [
|
|
@@ -4435,15 +4421,13 @@ const projectionsCoverage = {
|
|
|
4435
4421
|
]
|
|
4436
4422
|
};
|
|
4437
4423
|
|
|
4438
|
-
|
|
4439
|
-
//#region src/lib/grammar/actions.ts
|
|
4424
|
+
// src/lib/grammar/actions.ts
|
|
4440
4425
|
const actionsCoverage = {
|
|
4441
4426
|
topic: "actions",
|
|
4442
4427
|
constructs: []
|
|
4443
4428
|
};
|
|
4444
4429
|
|
|
4445
|
-
|
|
4446
|
-
//#region src/lib/grammar/index.ts
|
|
4430
|
+
// src/lib/grammar/index.ts
|
|
4447
4431
|
const GRAMMAR_COVERAGE = [
|
|
4448
4432
|
ddlCoverage,
|
|
4449
4433
|
dclCoverage,
|
|
@@ -4455,8 +4439,7 @@ const GRAMMAR_COVERAGE = [
|
|
|
4455
4439
|
actionsCoverage
|
|
4456
4440
|
];
|
|
4457
4441
|
|
|
4458
|
-
|
|
4459
|
-
//#region src/index.ts
|
|
4442
|
+
// src/index.ts
|
|
4460
4443
|
/**
|
|
4461
4444
|
* @abapify/acds — ABAP CDS Source Parser
|
|
4462
4445
|
*
|
|
@@ -4501,6 +4484,5 @@ function parse(source) {
|
|
|
4501
4484
|
};
|
|
4502
4485
|
}
|
|
4503
4486
|
|
|
4504
|
-
//#endregion
|
|
4505
4487
|
export { GRAMMAR_COVERAGE, actionsCoverage, annotationsCoverage, associationsCoverage, dclCoverage, ddlCoverage, findAnnotation, hasFields, hasMembers, hasParameters, isAssociation, joinsCoverage, parametersCoverage, parse, projectionsCoverage, validate, validateCardinality, validateViewElements, walkAnnotations, walkAssociations, walkDefinitions, walkFields, walkFromAssociations, walkJoins, walkParameters, walkViewElements };
|
|
4506
4488
|
//# sourceMappingURL=index.mjs.map
|