@lcap/nasl-concepts 4.1.0-beta.2 → 4.1.0-beta.20
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/out/common/BaseNode.d.ts +2 -0
- package/out/common/BaseNode.d.ts.map +1 -1
- package/out/common/BaseNode.js +20 -4
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AbstractInterface__.d.ts +1 -1
- package/out/concepts/AbstractInterface__.d.ts.map +1 -1
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Annotation__.d.ts.map +1 -1
- package/out/concepts/Annotation__.js +3 -1
- package/out/concepts/Annotation__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +83 -2
- package/out/concepts/BindEvent__.d.ts.map +1 -1
- package/out/concepts/BindEvent__.js +138 -4
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +1 -1
- package/out/concepts/BindStyle__.d.ts.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +8 -6
- package/out/concepts/BusinessComponent__.d.ts.map +1 -1
- package/out/concepts/BusinessComponent__.js +26 -40
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts.map +1 -1
- package/out/concepts/CallConnector__.js +13 -0
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallGatewayInterface__.d.ts +35 -0
- package/out/concepts/CallGatewayInterface__.d.ts.map +1 -0
- package/out/concepts/CallGatewayInterface__.js +74 -0
- package/out/concepts/CallGatewayInterface__.js.map +1 -0
- package/out/concepts/CallInterface__.d.ts +1 -1
- package/out/concepts/CallInterface__.d.ts.map +1 -1
- package/out/concepts/CallInterface__.js +5 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -1
- package/out/concepts/CallLogic__.d.ts.map +1 -1
- package/out/concepts/CallLogic__.js +22 -17
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +1 -0
- package/out/concepts/EntityProperty__.d.ts.map +1 -1
- package/out/concepts/EntityProperty__.js +22 -1
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts.map +1 -1
- package/out/concepts/Entity__.js +3 -1
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +1 -0
- package/out/concepts/Frontend__.d.ts.map +1 -1
- package/out/concepts/Frontend__.js +16 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/GatewayInterface__.d.ts +114 -0
- package/out/concepts/GatewayInterface__.d.ts.map +1 -0
- package/out/concepts/GatewayInterface__.js +174 -0
- package/out/concepts/GatewayInterface__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.d.ts.map +1 -1
- package/out/concepts/Identifier__.js +80 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/ImportedInterface__.d.ts +1 -1
- package/out/concepts/ImportedInterface__.d.ts.map +1 -1
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +1 -11
- package/out/concepts/Interface__.d.ts.map +1 -1
- package/out/concepts/Interface__.js +55 -61
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.d.ts.map +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts.map +1 -1
- package/out/concepts/Logic__.js +52 -25
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -1
- package/out/concepts/Param__.d.ts.map +1 -1
- package/out/concepts/Param__.js +15 -10
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.d.ts.map +1 -1
- package/out/concepts/ProcessV2__.js +11 -7
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.d.ts.map +1 -1
- package/out/concepts/Process__.js +6 -2
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/Structure__.d.ts.map +1 -1
- package/out/concepts/Structure__.js +1 -1
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +2 -2
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/VariadicExpression__.d.ts +146 -0
- package/out/concepts/VariadicExpression__.d.ts.map +1 -0
- package/out/concepts/VariadicExpression__.js +405 -0
- package/out/concepts/VariadicExpression__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +5 -0
- package/out/concepts/ViewElement__.d.ts.map +1 -1
- package/out/concepts/ViewElement__.js +17 -4
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +10 -6
- package/out/concepts/View__.d.ts.map +1 -1
- package/out/concepts/View__.js +30 -39
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/index__.d.ts +3 -1
- package/out/concepts/index__.d.ts.map +1 -1
- package/out/concepts/index__.js +3 -1
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +153 -0
- package/out/concepts/utils/asserts.d.ts.map +1 -1
- package/out/concepts/utils/asserts.js +223 -15
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +15 -6
- package/out/concepts/utils/types.d.ts.map +1 -1
- package/out/index.d.ts +2 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +1 -0
- package/out/index.js.map +1 -1
- package/out/semantics/localVarCollector.d.ts +13 -6
- package/out/semantics/localVarCollector.d.ts.map +1 -1
- package/out/semantics/localVarCollector.js +39 -3
- package/out/semantics/localVarCollector.js.map +1 -1
- package/out/semantics/semanticData.d.ts.map +1 -1
- package/out/semantics/semanticData.js +8 -3
- package/out/semantics/semanticData.js.map +1 -1
- package/out/service/file-module.d.ts.map +1 -1
- package/out/service/file-module.js +1 -0
- package/out/service/file-module.js.map +1 -1
- package/out/service/getConnector.d.ts.map +1 -1
- package/out/service/getConnector.js +3 -1
- package/out/service/getConnector.js.map +1 -1
- package/out/service/getLogics.d.ts +2 -1
- package/out/service/getLogics.d.ts.map +1 -1
- package/out/service/getLogics.js +7 -3
- package/out/service/getLogics.js.map +1 -1
- package/out/service/getMemberIdentifier.d.ts +1 -2
- package/out/service/getMemberIdentifier.d.ts.map +1 -1
- package/out/service/getMemberIdentifier.js +18 -52
- package/out/service/getMemberIdentifier.js.map +1 -1
- package/out/service/index.d.ts +1 -0
- package/out/service/index.d.ts.map +1 -1
- package/out/service/index.js +1 -0
- package/out/service/index.js.map +1 -1
- package/out/service/node-concept-predicate.d.ts +22 -0
- package/out/service/node-concept-predicate.d.ts.map +1 -0
- package/out/service/node-concept-predicate.js +54 -0
- package/out/service/node-concept-predicate.js.map +1 -0
- package/out/utils/analyzer/index.d.ts +15 -0
- package/out/utils/analyzer/index.d.ts.map +1 -0
- package/out/utils/analyzer/index.js +86 -0
- package/out/utils/analyzer/index.js.map +1 -0
- package/out/utils/bak-translator/composition.d.ts.map +1 -1
- package/out/utils/bak-translator/composition.js +52 -3
- package/out/utils/bak-translator/composition.js.map +1 -1
- package/out/utils/bak-translator/legacy.d.ts.map +1 -1
- package/out/utils/bak-translator/legacy.js +44 -11
- package/out/utils/bak-translator/legacy.js.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isStrictAttribute = exports.isStrictBusinessComponent = exports.isStrictViewComponentDeclaration = exports.isStrictAnonymousFunctionSetter = exports.isStrictPropertyTransformSetter = exports.isStrictPropertySelectSetter = exports.isStrictImageSetter = exports.isStrictIconSetter = exports.isStrictNumberInputSetter = exports.isStrictCapsulesSetter = exports.isStrictEnumSelectSetter = exports.isStrictSetterOption = exports.isStrictSwitchSetter = exports.isStrictInputSetter = exports.isStrictThemeVariable = exports.isStrictBindStyle = exports.isStrictBindEvent = exports.isStrictBindDirective = exports.isStrictBindAttribute = exports.isStrictViewElement = exports.isStrictView = exports.isStrictMetadataType = exports.isStrictEntityIndex = exports.isStrictEntityProperty = exports.isStrictEntity = exports.isStrictDataSource = exports.isStrictEnumItem = exports.isStrictEnum = exports.isStrictStructureProperty = exports.isStrictStructure = exports.isStrictTypeParam = exports.isStrictDatabaseTypeAnnotation = exports.isStrictTypeAnnotation = exports.isStrictMicroApp = exports.isStrictIntegration = exports.isStrictBackend = exports.isStrictFrontend = exports.isStrictFrontendType = exports.isStrictReferredDefinition = exports.isStrictDirectory = exports.isStrictNamespace = exports.isStrictModule = exports.isStrictApp = exports.isStrictApplyAnnotation = exports.isStrictAnnotationProperty = exports.isStrictAnnotation = exports.assertFileNode = exports.isFileNode = exports.assertBaseNode = exports.isBaseNode = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
4
|
+
exports.isStrictCallFunction = exports.isStrictCallEvent = exports.isStrictCallLogic = exports.isStrictComment = exports.isStrictBatchAssignment = exports.isStrictAssignment = exports.isStrictContinue = exports.isStrictBreak = exports.isStrictWhileStatement = exports.isStrictForEachStatement = exports.isStrictSwitchCase = exports.isStrictSwitchStatement = exports.isStrictIfStatement = exports.isStrictEnd = exports.isStrictStart = exports.isStrictAbort = exports.isStrictDefaultValue = exports.isStrictTransactional = exports.isStrictInterfaceParam = exports.isStrictGatewayInterface = exports.isStrictMicroserviceInterface = exports.isStrictConnectionInfo = exports.isStrictInterface = exports.isStrictRetryConfig = exports.isStrictAnonymousFunction = exports.isStrictFunction = exports.isStrictSubLogic = exports.isStrictConstant = exports.isStrictFrontendVariable = exports.isStrictBackendVariable = exports.isStrictVariable = exports.isStrictReturn = exports.isStrictParamWithGroup = exports.isStrictParam = exports.isStrictBusinessLogic = exports.isStrictOverriddenLogic = exports.isStrictAuthLogicForCallInterface = exports.isStrictAuthLogic = exports.isStrictPermissionForSharedScope = exports.isStrictSharedScope = exports.isStrictLogic = exports.isStrictViewComponent = exports.isStrictSlot = exports.isStrictTheme = exports.isStrictCSSRule = exports.isStrictLogicDeclaration = exports.isStrictSlotDeclaration = exports.isStrictEventDeclaration = exports.isStrictPropDeclaration = exports.isStrictEvent = void 0;
|
|
5
|
+
exports.isStrictProcessOutcomes = exports.isStrictAssignee = exports.isStrictProcessOutcome = exports.isStrictCountersignPolicy = exports.isStrictSequentialPolicy = exports.isStrictProcessComponent = exports.isStrictProcessElement = exports.isStrictProcess = exports.isStrictOqlQueryComponent = exports.isStrictSqlQueryComponent = exports.isStrictQueryLimitExpression = exports.isStrictQueryGroupByExpression = exports.isStrictQueryOrderByExpression = exports.isStrictQueryAggregateExpression = exports.isStrictQueryFieldExpression = exports.isStrictQueryJoinExpression = exports.isStrictQueryFromExpression = exports.isStrictQuerySelectExpression = exports.isStrictCallQueryComponent = exports.isStrictPaginate = exports.isStrictNewMap = exports.isStrictNewList = exports.isStrictNewStructure = exports.isStrictNewComposite = exports.isStrictNew = exports.isStrictUnparsed = exports.isStrictMemberExpression = exports.isStrictUnaryExpression = exports.isStrictMatch = exports.isStrictMatchCase = exports.isStrictVariadicExpression = exports.isStrictBinaryExpression = exports.isStrictNumericLiteral = exports.isStrictStaticString = exports.isStrictStringInterpolation = exports.isStrictStringLiteral = exports.isStrictBooleanLiteral = exports.isStrictNullLiteral = exports.isStrictIdentifier = exports.isStrictBlock = exports.isStrictJavaLogic = exports.isStrictJSBlock = exports.isStrictAnchor = exports.isStrictArgument = exports.isStrictValidationRule = exports.isStrictExternalDestination = exports.isStrictDestination = exports.isStrictCallGatewayInterface = exports.isStrictCallMicroserviceInterface = exports.isStrictCallInterface = void 0;
|
|
6
|
+
exports.isAnnotation = exports.isStrictReassignUnmannedV2 = exports.isStrictAutoRejectUnmannedV2 = exports.isStrictAutoApproveUnmannedV2 = exports.isStrictOrSignPolicyV2 = exports.isStrictCountersignPolicyV2 = exports.isStrictSequentialPolicyV2 = exports.isStrictFlowConditionV2 = exports.isStrictDepartmentAssignees = exports.isStrictRoleAssignees = exports.isStrictUserAssignees = exports.isStrictDepartmentManagerV2 = exports.isStrictDirectManagerV2 = exports.isStrictDepartmentV2 = exports.isStrictAssigneeV2 = exports.isStrictOperatePermissionV2 = exports.isStrictProcessElementV2 = exports.isStrictFieldPermissionV2 = exports.isStrictProcessBindV2 = exports.isStrictHistoryProcessV2 = exports.isStrictProcessDefinitionV2 = exports.isStrictProcessV2 = exports.isStrictConnectorLogic = exports.isStrictConnection = exports.isStrictCallConnector = exports.isStrictConnector = exports.isStrictDependency = exports.isStrictMsgTriggerLauncher = exports.isStrictConnectorTriggerLauncher = exports.isStrictTriggerLauncher = exports.isStrictConnectorTrigger = exports.isStrictInterfaceTriggerEvent = exports.isStrictMsgTriggerEvent = exports.isStrictCallAuthInterface = exports.isStrictAuthInterface = exports.isStrictViewBlockWithImage = exports.isStrictViewBlock = exports.isStrictFrontendLibrary = exports.isStrictAssignmentLine = exports.isStrictSelectMembers = exports.isStrictRect = exports.isStrictPoint = exports.isStrictUseComponent = exports.isStrictCompletionProperty = exports.isStrictI18nInfo = exports.isStrictConfigPropertyValue = exports.isStrictConfigProperty = exports.isStrictConfigGroup = exports.isStrictConfiguration = exports.isStrictRole = void 0;
|
|
7
|
+
exports.isEventDeclaration = exports.isPropDeclaration = exports.isEvent = exports.isAttribute = exports.isBusinessComponent = exports.isViewComponentDeclaration = exports.isAnonymousFunctionSetter = exports.isPropertyTransformSetter = exports.isPropertySelectSetter = exports.isImageSetter = exports.isIconSetter = exports.isNumberInputSetter = exports.isCapsulesSetter = exports.isEnumSelectSetter = exports.isSetterOption = exports.isSwitchSetter = exports.isInputSetter = exports.isBaseSetter = exports.isThemeVariable = exports.isBindStyle = exports.isBindEvent = exports.isBindDirective = exports.isBindAttribute = exports.isViewElement = exports.isView = exports.isMetadataType = exports.isEntityIndex = exports.isEntityProperty = exports.isEntity = exports.isDataSource = exports.isEnumItem = exports.isEnum = exports.isStructureProperty = exports.isStructure = exports.isTypeParam = exports.isDatabaseTypeAnnotation = exports.isTypeAnnotation = exports.isMicroApp = exports.isIntegration = exports.isBackend = exports.isFrontend = exports.isFrontendType = exports.isReferredDefinition = exports.isDirectory = exports.isNamespace = exports.isModule = exports.isApp = exports.isApplyAnnotation = exports.isAnnotatable = exports.isAnnotationProperty = void 0;
|
|
8
|
+
exports.isCallFunction = exports.isCallEvent = exports.isCallLogic = exports.isComment = exports.isBatchAssignment = exports.isAssignment = exports.isContinue = exports.isBreak = exports.isWhileStatement = exports.isForEachStatement = exports.isSwitchCase = exports.isSwitchStatement = exports.isIfStatement = exports.isEnd = exports.isStart = exports.isAbort = exports.isDefaultValue = exports.isTransactional = exports.isInterfaceParam = exports.isGatewayInterface = exports.isMicroserviceInterface = exports.isConnectionInfo = exports.isInterface = exports.isRetryConfig = exports.isImportedInterface = exports.isAnonymousFunction = exports.isFunction = exports.isSubLogic = exports.isLogicItem = exports.isConstant = exports.isFrontendVariable = exports.isBackendVariable = exports.isVariable = exports.isReturn = exports.isParamWithGroup = exports.isParam = exports.isAbstractInterface = exports.isBusinessLogic = exports.isOverriddenLogic = exports.isAuthLogicForCallInterface = exports.isAuthLogic = exports.isPermissionForSharedScope = exports.isSharedScope = exports.isLogic = exports.isViewComponent = exports.isSlot = exports.isTheme = exports.isCSSRule = exports.isLogicDeclaration = exports.isSlotDeclaration = void 0;
|
|
9
|
+
exports.isAssignee = exports.isProcessOutcome = exports.isCountersignPolicy = exports.isSequentialPolicy = exports.isMultiApprovalPolicy = exports.isProcessComponent = exports.isProcessElement = exports.isProcess = exports.isOqlQueryComponent = exports.isSqlQueryComponent = exports.isQueryLimitExpression = exports.isQueryGroupByExpression = exports.isQueryOrderByExpression = exports.isQueryAggregateExpression = exports.isQueryFieldExpression = exports.isQueryJoinExpression = exports.isQueryFromExpression = exports.isQuerySelectExpression = exports.isCallQueryComponent = exports.isPaginate = exports.isNewMap = exports.isNewList = exports.isNewStructure = exports.isNewComposite = exports.isNew = exports.isUnparsed = exports.isMemberExpression = exports.isUnaryExpression = exports.isMatch = exports.isMatchCase = exports.isVariadicExpression = exports.isBinaryExpression = exports.isNumericLiteral = exports.isStaticString = exports.isStringInterpolation = exports.isStringLiteral = exports.isBooleanLiteral = exports.isNullLiteral = exports.isIdentifier = exports.isBlock = exports.isJavaLogic = exports.isJSBlock = exports.isAnchor = exports.isArgument = exports.isValidationRule = exports.isExternalDestination = exports.isDestination = exports.isCallGatewayInterface = exports.isCallMicroserviceInterface = exports.isCallInterface = void 0;
|
|
10
|
+
exports.isCountersignPolicyV2 = exports.isSequentialPolicyV2 = exports.isApprovalPolicyV2 = exports.isFlowConditionV2 = exports.isDepartmentAssignees = exports.isRoleAssignees = exports.isUserAssignees = exports.isAssignees = exports.isDepartmentManagerV2 = exports.isDirectManagerV2 = exports.isManagerV2 = exports.isDepartmentV2 = exports.isAssigneeV2 = exports.isOperatePermissionV2 = exports.isProcessElementV2 = exports.isFieldPermissionV2 = exports.isProcessBindV2 = exports.isHistoryProcessV2 = exports.isProcessDefinitionV2 = exports.isProcessV2 = exports.isConnectorLogic = exports.isConnection = exports.isCallConnector = exports.isConnector = exports.isDependency = exports.isMsgTriggerLauncher = exports.isConnectorTriggerLauncher = exports.isTriggerLauncher = exports.isConnectorTrigger = exports.isInterfaceTriggerEvent = exports.isMsgTriggerEvent = exports.isTriggerEvent = exports.isCallAuthInterface = exports.isAuthInterface = exports.isViewBlockWithImage = exports.isViewBlock = exports.isFrontendLibrary = exports.isAssignmentLine = exports.isSelectMembers = exports.isRect = exports.isPoint = exports.isUseComponent = exports.isCompletionProperty = exports.isI18nInfo = exports.isConfigPropertyValue = exports.isConfigProperty = exports.isConfigGroup = exports.isConfiguration = exports.isRole = exports.isProcessOutcomes = void 0;
|
|
11
|
+
exports.assertStrictBusinessComponent = exports.assertStrictViewComponentDeclaration = exports.assertStrictAnonymousFunctionSetter = exports.assertStrictPropertyTransformSetter = exports.assertStrictPropertySelectSetter = exports.assertStrictImageSetter = exports.assertStrictIconSetter = exports.assertStrictNumberInputSetter = exports.assertStrictCapsulesSetter = exports.assertStrictEnumSelectSetter = exports.assertStrictSetterOption = exports.assertStrictSwitchSetter = exports.assertStrictInputSetter = exports.assertStrictThemeVariable = exports.assertStrictBindStyle = exports.assertStrictBindEvent = exports.assertStrictBindDirective = exports.assertStrictBindAttribute = exports.assertStrictViewElement = exports.assertStrictView = exports.assertStrictMetadataType = exports.assertStrictEntityIndex = exports.assertStrictEntityProperty = exports.assertStrictEntity = exports.assertStrictDataSource = exports.assertStrictEnumItem = exports.assertStrictEnum = exports.assertStrictStructureProperty = exports.assertStrictStructure = exports.assertStrictTypeParam = exports.assertStrictDatabaseTypeAnnotation = exports.assertStrictTypeAnnotation = exports.assertStrictMicroApp = exports.assertStrictIntegration = exports.assertStrictBackend = exports.assertStrictFrontend = exports.assertStrictFrontendType = exports.assertStrictReferredDefinition = exports.assertStrictDirectory = exports.assertStrictNamespace = exports.assertStrictModule = exports.assertStrictApp = exports.assertStrictApplyAnnotation = exports.assertStrictAnnotationProperty = exports.assertStrictAnnotation = exports.isReassignUnmannedV2 = exports.isAutoRejectUnmannedV2 = exports.isAutoApproveUnmannedV2 = exports.isUnmannedApprovalStrategyV2 = exports.isOrSignPolicyV2 = void 0;
|
|
12
|
+
exports.assertStrictCallEvent = exports.assertStrictCallLogic = exports.assertStrictComment = exports.assertStrictBatchAssignment = exports.assertStrictAssignment = exports.assertStrictContinue = exports.assertStrictBreak = exports.assertStrictWhileStatement = exports.assertStrictForEachStatement = exports.assertStrictSwitchCase = exports.assertStrictSwitchStatement = exports.assertStrictIfStatement = exports.assertStrictEnd = exports.assertStrictStart = exports.assertStrictAbort = exports.assertStrictDefaultValue = exports.assertStrictTransactional = exports.assertStrictInterfaceParam = exports.assertStrictGatewayInterface = exports.assertStrictMicroserviceInterface = exports.assertStrictConnectionInfo = exports.assertStrictInterface = exports.assertStrictRetryConfig = exports.assertStrictAnonymousFunction = exports.assertStrictFunction = exports.assertStrictSubLogic = exports.assertStrictConstant = exports.assertStrictFrontendVariable = exports.assertStrictBackendVariable = exports.assertStrictVariable = exports.assertStrictReturn = exports.assertStrictParamWithGroup = exports.assertStrictParam = exports.assertStrictBusinessLogic = exports.assertStrictOverriddenLogic = exports.assertStrictAuthLogicForCallInterface = exports.assertStrictAuthLogic = exports.assertStrictPermissionForSharedScope = exports.assertStrictSharedScope = exports.assertStrictLogic = exports.assertStrictViewComponent = exports.assertStrictSlot = exports.assertStrictTheme = exports.assertStrictCSSRule = exports.assertStrictLogicDeclaration = exports.assertStrictSlotDeclaration = exports.assertStrictEventDeclaration = exports.assertStrictPropDeclaration = exports.assertStrictEvent = exports.assertStrictAttribute = void 0;
|
|
13
|
+
exports.assertStrictAssignee = exports.assertStrictProcessOutcome = exports.assertStrictCountersignPolicy = exports.assertStrictSequentialPolicy = exports.assertStrictProcessComponent = exports.assertStrictProcessElement = exports.assertStrictProcess = exports.assertStrictOqlQueryComponent = exports.assertStrictSqlQueryComponent = exports.assertStrictQueryLimitExpression = exports.assertStrictQueryGroupByExpression = exports.assertStrictQueryOrderByExpression = exports.assertStrictQueryAggregateExpression = exports.assertStrictQueryFieldExpression = exports.assertStrictQueryJoinExpression = exports.assertStrictQueryFromExpression = exports.assertStrictQuerySelectExpression = exports.assertStrictCallQueryComponent = exports.assertStrictPaginate = exports.assertStrictNewMap = exports.assertStrictNewList = exports.assertStrictNewStructure = exports.assertStrictNewComposite = exports.assertStrictNew = exports.assertStrictUnparsed = exports.assertStrictMemberExpression = exports.assertStrictUnaryExpression = exports.assertStrictMatch = exports.assertStrictMatchCase = exports.assertStrictVariadicExpression = exports.assertStrictBinaryExpression = exports.assertStrictNumericLiteral = exports.assertStrictStaticString = exports.assertStrictStringInterpolation = exports.assertStrictStringLiteral = exports.assertStrictBooleanLiteral = exports.assertStrictNullLiteral = exports.assertStrictIdentifier = exports.assertStrictBlock = exports.assertStrictJavaLogic = exports.assertStrictJSBlock = exports.assertStrictAnchor = exports.assertStrictArgument = exports.assertStrictValidationRule = exports.assertStrictExternalDestination = exports.assertStrictDestination = exports.assertStrictCallGatewayInterface = exports.assertStrictCallMicroserviceInterface = exports.assertStrictCallInterface = exports.assertStrictCallFunction = void 0;
|
|
14
|
+
exports.assertStrictReassignUnmannedV2 = exports.assertStrictAutoRejectUnmannedV2 = exports.assertStrictAutoApproveUnmannedV2 = exports.assertStrictOrSignPolicyV2 = exports.assertStrictCountersignPolicyV2 = exports.assertStrictSequentialPolicyV2 = exports.assertStrictFlowConditionV2 = exports.assertStrictDepartmentAssignees = exports.assertStrictRoleAssignees = exports.assertStrictUserAssignees = exports.assertStrictDepartmentManagerV2 = exports.assertStrictDirectManagerV2 = exports.assertStrictDepartmentV2 = exports.assertStrictAssigneeV2 = exports.assertStrictOperatePermissionV2 = exports.assertStrictProcessElementV2 = exports.assertStrictFieldPermissionV2 = exports.assertStrictProcessBindV2 = exports.assertStrictHistoryProcessV2 = exports.assertStrictProcessDefinitionV2 = exports.assertStrictProcessV2 = exports.assertStrictConnectorLogic = exports.assertStrictConnection = exports.assertStrictCallConnector = exports.assertStrictConnector = exports.assertStrictDependency = exports.assertStrictMsgTriggerLauncher = exports.assertStrictConnectorTriggerLauncher = exports.assertStrictTriggerLauncher = exports.assertStrictConnectorTrigger = exports.assertStrictInterfaceTriggerEvent = exports.assertStrictMsgTriggerEvent = exports.assertStrictCallAuthInterface = exports.assertStrictAuthInterface = exports.assertStrictViewBlockWithImage = exports.assertStrictViewBlock = exports.assertStrictFrontendLibrary = exports.assertStrictAssignmentLine = exports.assertStrictSelectMembers = exports.assertStrictRect = exports.assertStrictPoint = exports.assertStrictUseComponent = exports.assertStrictCompletionProperty = exports.assertStrictI18nInfo = exports.assertStrictConfigPropertyValue = exports.assertStrictConfigProperty = exports.assertStrictConfigGroup = exports.assertStrictConfiguration = exports.assertStrictRole = exports.assertStrictProcessOutcomes = void 0;
|
|
15
|
+
exports.assertPropDeclaration = exports.assertEvent = exports.assertAttribute = exports.assertBusinessComponent = exports.assertViewComponentDeclaration = exports.assertAnonymousFunctionSetter = exports.assertPropertyTransformSetter = exports.assertPropertySelectSetter = exports.assertImageSetter = exports.assertIconSetter = exports.assertNumberInputSetter = exports.assertCapsulesSetter = exports.assertEnumSelectSetter = exports.assertSetterOption = exports.assertSwitchSetter = exports.assertInputSetter = exports.assertBaseSetter = exports.assertThemeVariable = exports.assertBindStyle = exports.assertBindEvent = exports.assertBindDirective = exports.assertBindAttribute = exports.assertViewElement = exports.assertView = exports.assertMetadataType = exports.assertEntityIndex = exports.assertEntityProperty = exports.assertEntity = exports.assertDataSource = exports.assertEnumItem = exports.assertEnum = exports.assertStructureProperty = exports.assertStructure = exports.assertTypeParam = exports.assertDatabaseTypeAnnotation = exports.assertTypeAnnotation = exports.assertMicroApp = exports.assertIntegration = exports.assertBackend = exports.assertFrontend = exports.assertFrontendType = exports.assertReferredDefinition = exports.assertDirectory = exports.assertNamespace = exports.assertModule = exports.assertApp = exports.assertApplyAnnotation = exports.assertAnnotatable = exports.assertAnnotationProperty = exports.assertAnnotation = void 0;
|
|
16
|
+
exports.assertCallEvent = exports.assertCallLogic = exports.assertComment = exports.assertBatchAssignment = exports.assertAssignment = exports.assertContinue = exports.assertBreak = exports.assertWhileStatement = exports.assertForEachStatement = exports.assertSwitchCase = exports.assertSwitchStatement = exports.assertIfStatement = exports.assertEnd = exports.assertStart = exports.assertAbort = exports.assertDefaultValue = exports.assertTransactional = exports.assertInterfaceParam = exports.assertGatewayInterface = exports.assertMicroserviceInterface = exports.assertConnectionInfo = exports.assertInterface = exports.assertRetryConfig = exports.assertImportedInterface = exports.assertAnonymousFunction = exports.assertFunction = exports.assertSubLogic = exports.assertLogicItem = exports.assertConstant = exports.assertFrontendVariable = exports.assertBackendVariable = exports.assertVariable = exports.assertReturn = exports.assertParamWithGroup = exports.assertParam = exports.assertAbstractInterface = exports.assertBusinessLogic = exports.assertOverriddenLogic = exports.assertAuthLogicForCallInterface = exports.assertAuthLogic = exports.assertPermissionForSharedScope = exports.assertSharedScope = exports.assertLogic = exports.assertViewComponent = exports.assertSlot = exports.assertTheme = exports.assertCSSRule = exports.assertLogicDeclaration = exports.assertSlotDeclaration = exports.assertEventDeclaration = void 0;
|
|
17
|
+
exports.assertProcessOutcome = exports.assertCountersignPolicy = exports.assertSequentialPolicy = exports.assertMultiApprovalPolicy = exports.assertProcessComponent = exports.assertProcessElement = exports.assertProcess = exports.assertOqlQueryComponent = exports.assertSqlQueryComponent = exports.assertQueryLimitExpression = exports.assertQueryGroupByExpression = exports.assertQueryOrderByExpression = exports.assertQueryAggregateExpression = exports.assertQueryFieldExpression = exports.assertQueryJoinExpression = exports.assertQueryFromExpression = exports.assertQuerySelectExpression = exports.assertCallQueryComponent = exports.assertPaginate = exports.assertNewMap = exports.assertNewList = exports.assertNewStructure = exports.assertNewComposite = exports.assertNew = exports.assertUnparsed = exports.assertMemberExpression = exports.assertUnaryExpression = exports.assertMatch = exports.assertMatchCase = exports.assertVariadicExpression = exports.assertBinaryExpression = exports.assertNumericLiteral = exports.assertStaticString = exports.assertStringInterpolation = exports.assertStringLiteral = exports.assertBooleanLiteral = exports.assertNullLiteral = exports.assertIdentifier = exports.assertBlock = exports.assertJavaLogic = exports.assertJSBlock = exports.assertAnchor = exports.assertArgument = exports.assertValidationRule = exports.assertExternalDestination = exports.assertDestination = exports.assertCallGatewayInterface = exports.assertCallMicroserviceInterface = exports.assertCallInterface = exports.assertCallFunction = void 0;
|
|
18
|
+
exports.assertSequentialPolicyV2 = exports.assertApprovalPolicyV2 = exports.assertFlowConditionV2 = exports.assertDepartmentAssignees = exports.assertRoleAssignees = exports.assertUserAssignees = exports.assertAssignees = exports.assertDepartmentManagerV2 = exports.assertDirectManagerV2 = exports.assertManagerV2 = exports.assertDepartmentV2 = exports.assertAssigneeV2 = exports.assertOperatePermissionV2 = exports.assertProcessElementV2 = exports.assertFieldPermissionV2 = exports.assertProcessBindV2 = exports.assertHistoryProcessV2 = exports.assertProcessDefinitionV2 = exports.assertProcessV2 = exports.assertConnectorLogic = exports.assertConnection = exports.assertCallConnector = exports.assertConnector = exports.assertDependency = exports.assertMsgTriggerLauncher = exports.assertConnectorTriggerLauncher = exports.assertTriggerLauncher = exports.assertConnectorTrigger = exports.assertInterfaceTriggerEvent = exports.assertMsgTriggerEvent = exports.assertTriggerEvent = exports.assertCallAuthInterface = exports.assertAuthInterface = exports.assertViewBlockWithImage = exports.assertViewBlock = exports.assertFrontendLibrary = exports.assertAssignmentLine = exports.assertSelectMembers = exports.assertRect = exports.assertPoint = exports.assertUseComponent = exports.assertCompletionProperty = exports.assertI18nInfo = exports.assertConfigPropertyValue = exports.assertConfigProperty = exports.assertConfigGroup = exports.assertConfiguration = exports.assertRole = exports.assertProcessOutcomes = exports.assertAssignee = void 0;
|
|
19
|
+
exports.assertReassignUnmannedV2 = exports.assertAutoRejectUnmannedV2 = exports.assertAutoApproveUnmannedV2 = exports.assertUnmannedApprovalStrategyV2 = exports.assertOrSignPolicyV2 = exports.assertCountersignPolicyV2 = void 0;
|
|
19
20
|
/**
|
|
20
21
|
* 判断为节点
|
|
21
22
|
*/
|
|
@@ -1189,6 +1190,21 @@ function isStrictMicroserviceInterface(node) {
|
|
|
1189
1190
|
return isBaseNode(node) && node.concept === 'MicroserviceInterface';
|
|
1190
1191
|
}
|
|
1191
1192
|
exports.isStrictMicroserviceInterface = isStrictMicroserviceInterface;
|
|
1193
|
+
/**
|
|
1194
|
+
* 严格判断输入为 GatewayInterface 节点
|
|
1195
|
+
*
|
|
1196
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1197
|
+
* @example
|
|
1198
|
+
* ```ts
|
|
1199
|
+
* if (isStrictGatewayInterface(node)) {
|
|
1200
|
+
* // 在这个花括号内,node 的类型为 GatewayInterface
|
|
1201
|
+
* }
|
|
1202
|
+
* ```
|
|
1203
|
+
*/
|
|
1204
|
+
function isStrictGatewayInterface(node) {
|
|
1205
|
+
return isBaseNode(node) && node.concept === 'GatewayInterface';
|
|
1206
|
+
}
|
|
1207
|
+
exports.isStrictGatewayInterface = isStrictGatewayInterface;
|
|
1192
1208
|
/**
|
|
1193
1209
|
* 严格判断输入为 InterfaceParam 节点
|
|
1194
1210
|
*
|
|
@@ -1504,6 +1520,21 @@ function isStrictCallMicroserviceInterface(node) {
|
|
|
1504
1520
|
return isBaseNode(node) && node.concept === 'CallMicroserviceInterface';
|
|
1505
1521
|
}
|
|
1506
1522
|
exports.isStrictCallMicroserviceInterface = isStrictCallMicroserviceInterface;
|
|
1523
|
+
/**
|
|
1524
|
+
* 严格判断输入为 CallGatewayInterface 节点
|
|
1525
|
+
*
|
|
1526
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1527
|
+
* @example
|
|
1528
|
+
* ```ts
|
|
1529
|
+
* if (isStrictCallGatewayInterface(node)) {
|
|
1530
|
+
* // 在这个花括号内,node 的类型为 CallGatewayInterface
|
|
1531
|
+
* }
|
|
1532
|
+
* ```
|
|
1533
|
+
*/
|
|
1534
|
+
function isStrictCallGatewayInterface(node) {
|
|
1535
|
+
return isBaseNode(node) && node.concept === 'CallGatewayInterface';
|
|
1536
|
+
}
|
|
1537
|
+
exports.isStrictCallGatewayInterface = isStrictCallGatewayInterface;
|
|
1507
1538
|
/**
|
|
1508
1539
|
* 严格判断输入为 Destination 节点
|
|
1509
1540
|
*
|
|
@@ -1744,6 +1775,21 @@ function isStrictBinaryExpression(node) {
|
|
|
1744
1775
|
return isBaseNode(node) && node.concept === 'BinaryExpression';
|
|
1745
1776
|
}
|
|
1746
1777
|
exports.isStrictBinaryExpression = isStrictBinaryExpression;
|
|
1778
|
+
/**
|
|
1779
|
+
* 严格判断输入为 VariadicExpression 节点
|
|
1780
|
+
*
|
|
1781
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1782
|
+
* @example
|
|
1783
|
+
* ```ts
|
|
1784
|
+
* if (isStrictVariadicExpression(node)) {
|
|
1785
|
+
* // 在这个花括号内,node 的类型为 VariadicExpression
|
|
1786
|
+
* }
|
|
1787
|
+
* ```
|
|
1788
|
+
*/
|
|
1789
|
+
function isStrictVariadicExpression(node) {
|
|
1790
|
+
return isBaseNode(node) && node.concept === 'VariadicExpression';
|
|
1791
|
+
}
|
|
1792
|
+
exports.isStrictVariadicExpression = isStrictVariadicExpression;
|
|
1747
1793
|
/**
|
|
1748
1794
|
* 严格判断输入为 MatchCase 节点
|
|
1749
1795
|
*
|
|
@@ -4061,6 +4107,7 @@ function isAbstractInterface(node) {
|
|
|
4061
4107
|
node.concept === 'ImportedInterface' ||
|
|
4062
4108
|
node.concept === 'Interface' ||
|
|
4063
4109
|
node.concept === 'MicroserviceInterface' ||
|
|
4110
|
+
node.concept === 'GatewayInterface' ||
|
|
4064
4111
|
node.concept === 'AuthInterface'));
|
|
4065
4112
|
}
|
|
4066
4113
|
exports.isAbstractInterface = isAbstractInterface;
|
|
@@ -4221,6 +4268,7 @@ function isLogicItem(node) {
|
|
|
4221
4268
|
node.concept === 'CallFunction' ||
|
|
4222
4269
|
node.concept === 'CallInterface' ||
|
|
4223
4270
|
node.concept === 'CallMicroserviceInterface' ||
|
|
4271
|
+
node.concept === 'CallGatewayInterface' ||
|
|
4224
4272
|
node.concept === 'CallAuthInterface' ||
|
|
4225
4273
|
node.concept === 'Destination' ||
|
|
4226
4274
|
node.concept === 'ExternalDestination' ||
|
|
@@ -4237,6 +4285,7 @@ function isLogicItem(node) {
|
|
|
4237
4285
|
node.concept === 'StringInterpolation' ||
|
|
4238
4286
|
node.concept === 'NumericLiteral' ||
|
|
4239
4287
|
node.concept === 'BinaryExpression' ||
|
|
4288
|
+
node.concept === 'VariadicExpression' ||
|
|
4240
4289
|
node.concept === 'MatchCase' ||
|
|
4241
4290
|
node.concept === 'Match' ||
|
|
4242
4291
|
node.concept === 'UnaryExpression' ||
|
|
@@ -4332,6 +4381,7 @@ function isImportedInterface(node) {
|
|
|
4332
4381
|
(node.concept === 'ImportedInterface' ||
|
|
4333
4382
|
node.concept === 'Interface' ||
|
|
4334
4383
|
node.concept === 'MicroserviceInterface' ||
|
|
4384
|
+
node.concept === 'GatewayInterface' ||
|
|
4335
4385
|
node.concept === 'AuthInterface'));
|
|
4336
4386
|
}
|
|
4337
4387
|
exports.isImportedInterface = isImportedInterface;
|
|
@@ -4368,6 +4418,7 @@ function isInterface(node) {
|
|
|
4368
4418
|
return (isBaseNode(node) &&
|
|
4369
4419
|
(node.concept === 'Interface' ||
|
|
4370
4420
|
node.concept === 'MicroserviceInterface' ||
|
|
4421
|
+
node.concept === 'GatewayInterface' ||
|
|
4371
4422
|
node.concept === 'AuthInterface'));
|
|
4372
4423
|
}
|
|
4373
4424
|
exports.isInterface = isInterface;
|
|
@@ -4405,6 +4456,23 @@ function isMicroserviceInterface(node) {
|
|
|
4405
4456
|
(node.concept === 'MicroserviceInterface'));
|
|
4406
4457
|
}
|
|
4407
4458
|
exports.isMicroserviceInterface = isMicroserviceInterface;
|
|
4459
|
+
/**
|
|
4460
|
+
* 判断输入为 GatewayInterface 节点实例
|
|
4461
|
+
*
|
|
4462
|
+
* @description 包含节点类以及节点继承类的判断
|
|
4463
|
+
* @description 等价于`instanceof`运算,GatewayInterface 节点没有继承类,此判断等价于`isStrictGatewayInterface`
|
|
4464
|
+
* @example
|
|
4465
|
+
* ```ts
|
|
4466
|
+
* if (isGatewayInterface(node)) {
|
|
4467
|
+
* // 在这个花括号内,node 的类型是 GatewayInterface 或者 GatewayInterface 继承类型
|
|
4468
|
+
* }
|
|
4469
|
+
* ```
|
|
4470
|
+
*/
|
|
4471
|
+
function isGatewayInterface(node) {
|
|
4472
|
+
return (isBaseNode(node) &&
|
|
4473
|
+
(node.concept === 'GatewayInterface'));
|
|
4474
|
+
}
|
|
4475
|
+
exports.isGatewayInterface = isGatewayInterface;
|
|
4408
4476
|
/**
|
|
4409
4477
|
* 判断输入为 InterfaceParam 节点实例
|
|
4410
4478
|
*
|
|
@@ -4745,6 +4813,7 @@ function isCallInterface(node) {
|
|
|
4745
4813
|
return (isBaseNode(node) &&
|
|
4746
4814
|
(node.concept === 'CallInterface' ||
|
|
4747
4815
|
node.concept === 'CallMicroserviceInterface' ||
|
|
4816
|
+
node.concept === 'CallGatewayInterface' ||
|
|
4748
4817
|
node.concept === 'CallAuthInterface'));
|
|
4749
4818
|
}
|
|
4750
4819
|
exports.isCallInterface = isCallInterface;
|
|
@@ -4765,6 +4834,23 @@ function isCallMicroserviceInterface(node) {
|
|
|
4765
4834
|
(node.concept === 'CallMicroserviceInterface'));
|
|
4766
4835
|
}
|
|
4767
4836
|
exports.isCallMicroserviceInterface = isCallMicroserviceInterface;
|
|
4837
|
+
/**
|
|
4838
|
+
* 判断输入为 CallGatewayInterface 节点实例
|
|
4839
|
+
*
|
|
4840
|
+
* @description 包含节点类以及节点继承类的判断
|
|
4841
|
+
* @description 等价于`instanceof`运算,CallGatewayInterface 节点没有继承类,此判断等价于`isStrictCallGatewayInterface`
|
|
4842
|
+
* @example
|
|
4843
|
+
* ```ts
|
|
4844
|
+
* if (isCallGatewayInterface(node)) {
|
|
4845
|
+
* // 在这个花括号内,node 的类型是 CallGatewayInterface 或者 CallGatewayInterface 继承类型
|
|
4846
|
+
* }
|
|
4847
|
+
* ```
|
|
4848
|
+
*/
|
|
4849
|
+
function isCallGatewayInterface(node) {
|
|
4850
|
+
return (isBaseNode(node) &&
|
|
4851
|
+
(node.concept === 'CallGatewayInterface'));
|
|
4852
|
+
}
|
|
4853
|
+
exports.isCallGatewayInterface = isCallGatewayInterface;
|
|
4768
4854
|
/**
|
|
4769
4855
|
* 判断输入为 Destination 节点实例
|
|
4770
4856
|
*
|
|
@@ -5037,6 +5123,23 @@ function isBinaryExpression(node) {
|
|
|
5037
5123
|
(node.concept === 'BinaryExpression'));
|
|
5038
5124
|
}
|
|
5039
5125
|
exports.isBinaryExpression = isBinaryExpression;
|
|
5126
|
+
/**
|
|
5127
|
+
* 判断输入为 VariadicExpression 节点实例
|
|
5128
|
+
*
|
|
5129
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5130
|
+
* @description 等价于`instanceof`运算,VariadicExpression 节点没有继承类,此判断等价于`isStrictVariadicExpression`
|
|
5131
|
+
* @example
|
|
5132
|
+
* ```ts
|
|
5133
|
+
* if (isVariadicExpression(node)) {
|
|
5134
|
+
* // 在这个花括号内,node 的类型是 VariadicExpression 或者 VariadicExpression 继承类型
|
|
5135
|
+
* }
|
|
5136
|
+
* ```
|
|
5137
|
+
*/
|
|
5138
|
+
function isVariadicExpression(node) {
|
|
5139
|
+
return (isBaseNode(node) &&
|
|
5140
|
+
(node.concept === 'VariadicExpression'));
|
|
5141
|
+
}
|
|
5142
|
+
exports.isVariadicExpression = isVariadicExpression;
|
|
5040
5143
|
/**
|
|
5041
5144
|
* 判断输入为 MatchCase 节点实例
|
|
5042
5145
|
*
|
|
@@ -7794,6 +7897,23 @@ function assertStrictMicroserviceInterface(node) {
|
|
|
7794
7897
|
}
|
|
7795
7898
|
}
|
|
7796
7899
|
exports.assertStrictMicroserviceInterface = assertStrictMicroserviceInterface;
|
|
7900
|
+
/**
|
|
7901
|
+
* 严格断言为 GatewayInterface 节点
|
|
7902
|
+
*
|
|
7903
|
+
* @description 仅断言节点本身,不包含继承类
|
|
7904
|
+
* @example
|
|
7905
|
+
* ```ts
|
|
7906
|
+
* assertStrictGatewayInterface(node);
|
|
7907
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 GatewayInterface 类型
|
|
7908
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7909
|
+
* ```
|
|
7910
|
+
*/
|
|
7911
|
+
function assertStrictGatewayInterface(node) {
|
|
7912
|
+
if (!isStrictGatewayInterface(node)) {
|
|
7913
|
+
throw new Error(`GatewayInterface 节点严格断言失败`);
|
|
7914
|
+
}
|
|
7915
|
+
}
|
|
7916
|
+
exports.assertStrictGatewayInterface = assertStrictGatewayInterface;
|
|
7797
7917
|
/**
|
|
7798
7918
|
* 严格断言为 InterfaceParam 节点
|
|
7799
7919
|
*
|
|
@@ -8151,6 +8271,23 @@ function assertStrictCallMicroserviceInterface(node) {
|
|
|
8151
8271
|
}
|
|
8152
8272
|
}
|
|
8153
8273
|
exports.assertStrictCallMicroserviceInterface = assertStrictCallMicroserviceInterface;
|
|
8274
|
+
/**
|
|
8275
|
+
* 严格断言为 CallGatewayInterface 节点
|
|
8276
|
+
*
|
|
8277
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8278
|
+
* @example
|
|
8279
|
+
* ```ts
|
|
8280
|
+
* assertStrictCallGatewayInterface(node);
|
|
8281
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CallGatewayInterface 类型
|
|
8282
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8283
|
+
* ```
|
|
8284
|
+
*/
|
|
8285
|
+
function assertStrictCallGatewayInterface(node) {
|
|
8286
|
+
if (!isStrictCallGatewayInterface(node)) {
|
|
8287
|
+
throw new Error(`CallGatewayInterface 节点严格断言失败`);
|
|
8288
|
+
}
|
|
8289
|
+
}
|
|
8290
|
+
exports.assertStrictCallGatewayInterface = assertStrictCallGatewayInterface;
|
|
8154
8291
|
/**
|
|
8155
8292
|
* 严格断言为 Destination 节点
|
|
8156
8293
|
*
|
|
@@ -8423,6 +8560,23 @@ function assertStrictBinaryExpression(node) {
|
|
|
8423
8560
|
}
|
|
8424
8561
|
}
|
|
8425
8562
|
exports.assertStrictBinaryExpression = assertStrictBinaryExpression;
|
|
8563
|
+
/**
|
|
8564
|
+
* 严格断言为 VariadicExpression 节点
|
|
8565
|
+
*
|
|
8566
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8567
|
+
* @example
|
|
8568
|
+
* ```ts
|
|
8569
|
+
* assertStrictVariadicExpression(node);
|
|
8570
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 VariadicExpression 类型
|
|
8571
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8572
|
+
* ```
|
|
8573
|
+
*/
|
|
8574
|
+
function assertStrictVariadicExpression(node) {
|
|
8575
|
+
if (!isStrictVariadicExpression(node)) {
|
|
8576
|
+
throw new Error(`VariadicExpression 节点严格断言失败`);
|
|
8577
|
+
}
|
|
8578
|
+
}
|
|
8579
|
+
exports.assertStrictVariadicExpression = assertStrictVariadicExpression;
|
|
8426
8580
|
/**
|
|
8427
8581
|
* 严格断言为 MatchCase 节点
|
|
8428
8582
|
*
|
|
@@ -11225,6 +11379,24 @@ function assertMicroserviceInterface(node) {
|
|
|
11225
11379
|
}
|
|
11226
11380
|
}
|
|
11227
11381
|
exports.assertMicroserviceInterface = assertMicroserviceInterface;
|
|
11382
|
+
/**
|
|
11383
|
+
* 断言为 GatewayInterface 节点
|
|
11384
|
+
*
|
|
11385
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11386
|
+
* @description 节点没有继承类时,等价于`assertStrictGatewayInterface`方法
|
|
11387
|
+
* @example
|
|
11388
|
+
* ```ts
|
|
11389
|
+
* assertGatewayInterface(node);
|
|
11390
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 GatewayInterface 或者 GatewayInterface 继承类型
|
|
11391
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11392
|
+
* ```
|
|
11393
|
+
*/
|
|
11394
|
+
function assertGatewayInterface(node) {
|
|
11395
|
+
if (!isGatewayInterface(node)) {
|
|
11396
|
+
throw new Error(`GatewayInterface 节点断言失败`);
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
exports.assertGatewayInterface = assertGatewayInterface;
|
|
11228
11400
|
/**
|
|
11229
11401
|
* 断言为 InterfaceParam 节点
|
|
11230
11402
|
*
|
|
@@ -11603,6 +11775,24 @@ function assertCallMicroserviceInterface(node) {
|
|
|
11603
11775
|
}
|
|
11604
11776
|
}
|
|
11605
11777
|
exports.assertCallMicroserviceInterface = assertCallMicroserviceInterface;
|
|
11778
|
+
/**
|
|
11779
|
+
* 断言为 CallGatewayInterface 节点
|
|
11780
|
+
*
|
|
11781
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11782
|
+
* @description 节点没有继承类时,等价于`assertStrictCallGatewayInterface`方法
|
|
11783
|
+
* @example
|
|
11784
|
+
* ```ts
|
|
11785
|
+
* assertCallGatewayInterface(node);
|
|
11786
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CallGatewayInterface 或者 CallGatewayInterface 继承类型
|
|
11787
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11788
|
+
* ```
|
|
11789
|
+
*/
|
|
11790
|
+
function assertCallGatewayInterface(node) {
|
|
11791
|
+
if (!isCallGatewayInterface(node)) {
|
|
11792
|
+
throw new Error(`CallGatewayInterface 节点断言失败`);
|
|
11793
|
+
}
|
|
11794
|
+
}
|
|
11795
|
+
exports.assertCallGatewayInterface = assertCallGatewayInterface;
|
|
11606
11796
|
/**
|
|
11607
11797
|
* 断言为 Destination 节点
|
|
11608
11798
|
*
|
|
@@ -11891,6 +12081,24 @@ function assertBinaryExpression(node) {
|
|
|
11891
12081
|
}
|
|
11892
12082
|
}
|
|
11893
12083
|
exports.assertBinaryExpression = assertBinaryExpression;
|
|
12084
|
+
/**
|
|
12085
|
+
* 断言为 VariadicExpression 节点
|
|
12086
|
+
*
|
|
12087
|
+
* @description 包含节点类以及节点继承类的判断
|
|
12088
|
+
* @description 节点没有继承类时,等价于`assertStrictVariadicExpression`方法
|
|
12089
|
+
* @example
|
|
12090
|
+
* ```ts
|
|
12091
|
+
* assertVariadicExpression(node);
|
|
12092
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 VariadicExpression 或者 VariadicExpression 继承类型
|
|
12093
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
12094
|
+
* ```
|
|
12095
|
+
*/
|
|
12096
|
+
function assertVariadicExpression(node) {
|
|
12097
|
+
if (!isVariadicExpression(node)) {
|
|
12098
|
+
throw new Error(`VariadicExpression 节点断言失败`);
|
|
12099
|
+
}
|
|
12100
|
+
}
|
|
12101
|
+
exports.assertVariadicExpression = assertVariadicExpression;
|
|
11894
12102
|
/**
|
|
11895
12103
|
* 断言为 MatchCase 节点
|
|
11896
12104
|
*
|