@sap-ux/cds-annotation-parser
Advanced tools
Comparing version 0.2.2 to 0.2.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isReservedProperty = exports.ReservedProperties = void 0; | ||
exports.ReservedProperties = void 0; | ||
exports.isReservedProperty = isReservedProperty; | ||
var ReservedProperties; | ||
@@ -19,3 +20,2 @@ (function (ReservedProperties) { | ||
} | ||
exports.isReservedProperty = isReservedProperty; | ||
//# sourceMappingURL=constants.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAstNodes = exports.getNode = exports.findAnnotationNode = void 0; | ||
exports.getNode = exports.findAnnotationNode = void 0; | ||
exports.getAstNodes = getAstNodes; | ||
const transformer_1 = require("./transformer"); | ||
@@ -134,3 +135,2 @@ const odata_annotation_core_1 = require("@sap-ux/odata-annotation-core"); | ||
} | ||
exports.getAstNodes = getAstNodes; | ||
//# sourceMappingURL=find-annotation-node.js.map |
@@ -219,18 +219,18 @@ import type { IOrAlt, CstNode, TokenType, IToken, SubruleMethodOpts } from 'chevrotain'; | ||
private adjustAssignmentRange; | ||
[DECLARATION_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[ASSIGNMENT_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[PATH_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[PATH_SEGMENT_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[VALUE_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[COLLECTION_VALUE_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[EXTEND_COLLECTION_VALUE_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[STRUCT_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[COLLECTION_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[ENUM_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[QUOTED_IDENTIFIER_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[DELIMITED_IDENTIFIER_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[STRING_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[MULTI_LINE_STRING_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[MULTI_LINE_STRING_STRIP_INDENT_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[EXPRESSION_TYPE]: (idxInCallingRule?: number | undefined, ...args: any[]) => CstNode; | ||
[DECLARATION_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[ASSIGNMENT_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[PATH_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[PATH_SEGMENT_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[VALUE_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[COLLECTION_VALUE_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[EXTEND_COLLECTION_VALUE_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[STRUCT_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[COLLECTION_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[ENUM_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[QUOTED_IDENTIFIER_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[DELIMITED_IDENTIFIER_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[STRING_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[MULTI_LINE_STRING_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[MULTI_LINE_STRING_STRIP_INDENT_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
[EXPRESSION_TYPE]: (idxInCallingRule?: number, ...args: any[]) => CstNode; | ||
/** | ||
@@ -237,0 +237,0 @@ * |
@@ -169,3 +169,3 @@ import { Range } from '@sap-ux/text-document-utils'; | ||
} | ||
export declare const isContainer: (node: AnnotationNode) => node is Record | Collection | AnnotationGroupItems; | ||
export declare const isContainer: (node: AnnotationNode) => node is AnnotationGroupItems | Record | Collection; | ||
export type Assignment = Annotation | AnnotationGroup; | ||
@@ -172,0 +172,0 @@ export type Expression = CorrectExpression | IncorrectExpression | UnsupportedOperatorExpression; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.containsIncorrectExpressions = exports.positionIsInExpressionWhiteSpace = exports.rebuildNumberSigns = exports.buildExpression = exports.getEdmOperatorMap = exports.operatorMap = exports.operatorImageMap = exports.OPERATOR_NAME_NOT_BETWEEN = exports.OPERATOR_NAME_BETWEEN = exports.OPERATOR_NAME_NOT_LIKE = exports.OPERATOR_NAME_LIKE = exports.OPERATOR_NAME_IS_NOT_NULL = exports.OPERATOR_NAME_IS_NULL = exports.OPERATOR_NAME_OR = exports.OPERATOR_NAME_AND = exports.OPERATOR_NAME_NOT = exports.OPERATOR_NAME_UNARY_MINUS = exports.OPERATOR_NAME_DIVIDE = exports.OPERATOR_NAME_MULTIPLY = exports.OPERATOR_NAME_MINUS = exports.OPERATOR_NAME_PLUS = exports.OPERATOR_NAME_CONCAT = exports.OPERATOR_NAME_TERNARY = exports.OPERATOR_NAME_LESS_OR_EQUAL = exports.OPERATOR_NAME_LESS_THEN = exports.OPERATOR_NAME_GREATER_OR_EQUAL = exports.OPERATOR_NAME_GREATER_THEN = exports.OPERATOR_NAME_EQUAL = exports.OPERATOR_NAME_NOT_EQUAL = void 0; | ||
exports.operatorMap = exports.operatorImageMap = exports.OPERATOR_NAME_NOT_BETWEEN = exports.OPERATOR_NAME_BETWEEN = exports.OPERATOR_NAME_NOT_LIKE = exports.OPERATOR_NAME_LIKE = exports.OPERATOR_NAME_IS_NOT_NULL = exports.OPERATOR_NAME_IS_NULL = exports.OPERATOR_NAME_OR = exports.OPERATOR_NAME_AND = exports.OPERATOR_NAME_NOT = exports.OPERATOR_NAME_UNARY_MINUS = exports.OPERATOR_NAME_DIVIDE = exports.OPERATOR_NAME_MULTIPLY = exports.OPERATOR_NAME_MINUS = exports.OPERATOR_NAME_PLUS = exports.OPERATOR_NAME_CONCAT = exports.OPERATOR_NAME_TERNARY = exports.OPERATOR_NAME_LESS_OR_EQUAL = exports.OPERATOR_NAME_LESS_THEN = exports.OPERATOR_NAME_GREATER_OR_EQUAL = exports.OPERATOR_NAME_GREATER_THEN = exports.OPERATOR_NAME_EQUAL = exports.OPERATOR_NAME_NOT_EQUAL = void 0; | ||
exports.getEdmOperatorMap = getEdmOperatorMap; | ||
exports.buildExpression = buildExpression; | ||
exports.rebuildNumberSigns = rebuildNumberSigns; | ||
exports.positionIsInExpressionWhiteSpace = positionIsInExpressionWhiteSpace; | ||
exports.containsIncorrectExpressions = containsIncorrectExpressions; | ||
const odata_annotation_core_1 = require("@sap-ux/odata-annotation-core"); | ||
@@ -207,3 +212,2 @@ const annotation_ast_nodes_1 = require("./annotation-ast-nodes"); | ||
} | ||
exports.getEdmOperatorMap = getEdmOperatorMap; | ||
/** | ||
@@ -227,3 +231,2 @@ * Builds expression. | ||
} | ||
exports.buildExpression = buildExpression; | ||
/** | ||
@@ -471,3 +474,2 @@ * Checks if nodes are correctly sorted based on their ranges. | ||
} | ||
exports.rebuildNumberSigns = rebuildNumberSigns; | ||
/** | ||
@@ -525,3 +527,2 @@ * Sorts expression operators and operands based on their ranges. | ||
} | ||
exports.positionIsInExpressionWhiteSpace = positionIsInExpressionWhiteSpace; | ||
/** | ||
@@ -547,3 +548,2 @@ * Recursively checks if expression contains some incorrect nested expressions. | ||
} | ||
exports.containsIncorrectExpressions = containsIncorrectExpressions; | ||
//# sourceMappingURL=expressions.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.copyRange = exports.copyPosition = exports.areRangesEqual = exports.arePositionsEqual = void 0; | ||
exports.copyRange = exports.copyPosition = void 0; | ||
exports.arePositionsEqual = arePositionsEqual; | ||
exports.areRangesEqual = areRangesEqual; | ||
const text_document_utils_1 = require("@sap-ux/text-document-utils"); | ||
@@ -15,3 +17,2 @@ /** | ||
} | ||
exports.arePositionsEqual = arePositionsEqual; | ||
/** | ||
@@ -27,3 +28,2 @@ * Checks if given ranges are equal. | ||
} | ||
exports.areRangesEqual = areRangesEqual; | ||
const copyPosition = (position) => text_document_utils_1.Position.create(position.line, position.character); | ||
@@ -30,0 +30,0 @@ exports.copyPosition = copyPosition; |
export declare const hasNaNOrUndefined: (value: undefined | number) => boolean; | ||
export declare const isDefined: <T>(value: T | undefined) => value is T; | ||
export declare const hasItems: <T>(array: T[] | undefined, minItemCount?: number) => array is T[]; | ||
export declare const hasItems: <T>(array: Array<T> | undefined, minItemCount?: number) => array is T[]; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@sap-ux/cds-annotation-parser", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Annotation Parser for CDS", | ||
@@ -11,9 +11,9 @@ "publisher": "SAPSE", | ||
"chevrotain": "7.1.1", | ||
"@sap-ux/odata-annotation-core": "0.2.1", | ||
"@sap-ux/odata-vocabularies": "0.4.2", | ||
"@sap-ux/odata-entity-model": "0.3.0", | ||
"@sap-ux/odata-annotation-core": "0.2.2", | ||
"@sap-ux/odata-vocabularies": "0.4.3", | ||
"@sap-ux/odata-entity-model": "0.3.1", | ||
"@sap-ux/text-document-utils": "0.2.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.3.3", | ||
"typescript": "5.6.2", | ||
"npm-run-all2": "6.2.0" | ||
@@ -20,0 +20,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285602
3530
+ Added@sap-ux/odata-annotation-core@0.2.2(transitive)
+ Added@sap-ux/odata-annotation-core-types@0.4.2(transitive)
+ Added@sap-ux/odata-entity-model@0.3.1(transitive)
+ Added@sap-ux/odata-vocabularies@0.4.3(transitive)
- Removed@sap-ux/odata-annotation-core@0.2.1(transitive)
- Removed@sap-ux/odata-annotation-core-types@0.4.1(transitive)
- Removed@sap-ux/odata-entity-model@0.3.0(transitive)
- Removed@sap-ux/odata-vocabularies@0.4.2(transitive)