@supernova-studio/pulsar-core 2.0.14 → 2.0.15
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/build/main/core/src/browser-bundle.d.ts +1 -0
- package/build/main/core/src/engine/ExportEngineLegacy.d.ts +17 -0
- package/build/main/core/src/engine/ExportEngineNew.d.ts +12 -0
- package/build/main/core/src/engine/configuration/ExportConfiguration.d.ts +25 -0
- package/build/main/core/src/engine/generation/ExportDataProducer.d.ts +20 -0
- package/build/main/core/src/engine/generation/queue/ExportDataQueue.d.ts +16 -0
- package/build/main/core/src/engine/generation/queue/ExportDataQueueOperation.d.ts +6 -0
- package/build/main/core/src/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +7 -0
- package/build/main/core/src/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +7 -0
- package/build/main/core/src/engine/generation/requests/ExportDataRequest.d.ts +21 -0
- package/build/main/core/src/engine/generation/requests/ExportDataRequestDataStore.d.ts +16 -0
- package/build/main/core/src/engine/generation/requests/ExportDataRequestNameStore.d.ts +22 -0
- package/build/main/core/src/engine/generation/requests/ExportDataRequestProducer.d.ts +23 -0
- package/build/main/core/src/engine/generation/requests/ExportDataResponse.d.ts +15 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestAsset.d.ts +15 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +18 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestBundledResource.d.ts +11 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +13 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +13 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMDocumentationPage.d.ts +13 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +11 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +13 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +13 -0
- package/build/main/core/src/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +13 -0
- package/build/main/core/src/engine/items/ExportItemProducer.d.ts +14 -0
- package/build/main/core/src/engine/items/construction/ExportItem.d.ts +10 -0
- package/build/main/core/src/engine/items/construction/ExportItemBuilder.d.ts +9 -0
- package/build/main/core/src/engine/items/queue/ExportItemQueue.d.ts +16 -0
- package/build/main/core/src/engine/items/queue/ExportItemQueueOperation.d.ts +6 -0
- package/build/main/core/src/engine/items/requests/ExportItemRequest.d.ts +16 -0
- package/build/main/core/src/engine/items/requests/ExportItemRequestProducer.d.ts +8 -0
- package/build/main/core/src/engine/items/requests/ExportItemResponse.d.ts +11 -0
- package/build/main/core/src/engine/items/requests/ExportItemResponseProducer.d.ts +7 -0
- package/build/main/core/src/engine/jsruntime/JSExportContext.d.ts +10 -0
- package/build/main/core/src/engine/loaders/BlueprintLoader.d.ts +9 -0
- package/build/main/core/src/engine/writing/queue/ExportWriterQueue.d.ts +16 -0
- package/build/main/core/src/engine/writing/queue/ExportWriterQueueOperation.d.ts +6 -0
- package/build/main/core/src/engine/writing/requests/ExportWriterRequest.d.ts +16 -0
- package/build/main/core/src/engine/writing/requests/ExportWriterRequestProducer.d.ts +8 -0
- package/build/main/core/src/engine/writing/requests/ExportWriterResponse.d.ts +11 -0
- package/build/main/core/src/engine/writing/requests/ExportWriterResponseProducer.d.ts +7 -0
- package/build/main/core/src/engine/writing/writers/ExportItemWriter.d.ts +14 -0
- package/build/main/core/src/engine/writing/writers/ExportWriterRuleProcessor.d.ts +11 -0
- package/build/main/core/src/engine/writing/writers/memory/ExportWriterMemory.d.ts +4 -0
- package/build/main/core/src/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +11 -0
- package/build/main/core/src/engine/writing/writers/memory/ExportWriterStore.d.ts +16 -0
- package/build/main/core/src/exports.d.ts +8 -0
- package/build/main/core/src/index.d.ts +1 -0
- package/build/main/core/src/model/assets/ExporterBundledResource.d.ts +6 -0
- package/build/main/core/src/model/dsm/DSMReferenceStore.d.ts +32 -0
- package/build/main/core/src/model/exporters/Exporter.d.ts +125 -0
- package/build/main/core/src/model/exporters/ExporterContribution.d.ts +15 -0
- package/build/main/core/src/model/exporters/ExporterContributionBlock.d.ts +27 -0
- package/build/main/core/src/model/exporters/ExporterContributionBlockProperty.d.ts +16 -0
- package/build/main/core/src/model/exporters/ExporterContributionBlockVariant.d.ts +18 -0
- package/build/main/core/src/model/exporters/ExporterContributionConfiguration.d.ts +12 -0
- package/build/main/core/src/model/exporters/ExporterContributionConfigurationItem.d.ts +40 -0
- package/build/main/core/src/model/exporters/configuration/ExporterConfigurationProperty.d.ts +44 -0
- package/build/main/core/src/model/maps/ExporterMapAsset.d.ts +32 -0
- package/build/main/core/src/model/maps/ExporterMapBlueprint.d.ts +20 -0
- package/build/main/core/src/model/maps/ExporterMapBundledResource.d.ts +12 -0
- package/build/main/core/src/model/sources/ExporterSource.d.ts +25 -0
- package/build/main/core/src/pulsar/Pulsar.d.ts +91 -0
- package/build/main/core/src/pulsar/PulsarInterface.d.ts +117 -0
- package/build/main/core/src/pulsar/PulsarStaticAnalysis.d.ts +16 -0
- package/build/main/core/src/pulsar/PulsarStaticAnalysisInterface.d.ts +13 -0
- package/build/main/core/src/pulsar/managers/PulsarBlueprintManager.d.ts +16 -0
- package/build/main/core/src/pulsar/managers/PulsarCIManager.d.ts +31 -0
- package/build/main/core/src/pulsar/managers/PulsarCodeManager.d.ts +25 -0
- package/build/main/core/src/pulsar/managers/PulsarConfigurationManager.d.ts +6 -0
- package/build/main/core/src/pulsar/managers/PulsarExporterManager.d.ts +7 -0
- package/build/main/core/src/pulsar/managers/generators/PulsarExporterPackageAnalyzer.d.ts +10 -0
- package/build/main/core/src/pulsar/managers/generators/PulsarExporterPackageGenerator.d.ts +7 -0
- package/build/main/core/src/pulsar/managers/generators/PulsarFiles.d.ts +21 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageBrowserLoader.d.ts +12 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageFileSystemLoader.d.ts +15 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageGithubLoader.d.ts +32 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageLoader.d.ts +10 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageMemoryLoader.d.ts +14 -0
- package/build/main/core/src/pulsar/managers/loaders/PulsarExporterPackageURLLoader.d.ts +12 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterAssetLoader.d.ts +13 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterConfigLoader.d.ts +9 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterJSLoader.d.ts +9 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterLocalConfigLoader.d.ts +9 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterMappingLoader.d.ts +21 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterObjectLoader.d.ts +6 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterReadmeLoader.d.ts +9 -0
- package/build/main/core/src/pulsar/managers/loaders/partials/PulsarExporterSourceLoader.d.ts +14 -0
- package/build/main/core/src/pulsar/managers/loaders/support/PulsarExporterUnzipper.d.ts +11 -0
- package/build/main/core/src/pulsar/managers/loaders/support/PulsarPathParser.d.ts +4 -0
- package/build/main/core/src/pulsar/managers/loaders/validators/PulsarExporterConfigurationValidator.d.ts +11 -0
- package/build/main/core/src/pulsar/managers/loaders/validators/PulsarExporterMappingValidator.d.ts +8 -0
- package/build/main/core/src/pulsar/managers/loaders/validators/PulsarExporterObjectValidator.d.ts +10 -0
- package/build/main/core/src/pulsar/managers/loaders/validators/PulsarExporterSourceValidator.d.ts +4 -0
- package/build/main/core/src/pulsar/managers/loaders/validators/PulsarJSONValidator.d.ts +3 -0
- package/build/main/core/src/tests/TestConfiguration.d.ts +10 -0
- package/build/main/core/src/tests/casebuilders/ci.d.ts +12 -0
- package/build/main/core/src/tests/casebuilders/configuration.d.ts +5 -0
- package/build/main/core/src/tests/casebuilders/dsm.d.ts +7 -0
- package/build/main/core/src/tests/casebuilders/modelObjects.d.ts +14 -0
- package/build/main/core/src/tests/complex/TestExporter.spec.d.ts +1 -0
- package/build/main/core/src/tests/dynamic_execution/DynamicExecutionSupport.d.ts +4 -0
- package/build/main/core/src/tests/dynamic_execution/TestConfigurableExecution.spec.d.ts +1 -0
- package/build/main/core/src/tests/dynamic_execution/TestJSConstantExecution.spec.d.ts +1 -0
- package/build/main/core/src/tests/dynamic_execution/TestJSFunctionExecution.spec.d.ts +1 -0
- package/build/main/core/src/tests/dynamic_execution/TestJSTransformerExecution.spec.d.ts +1 -0
- package/build/main/core/src/tests/lib.pulsar/TestPulsarBlueprintManipulation.spec.d.ts +1 -0
- package/build/main/core/src/tests/lib.pulsar/TestPulsarCodeManipulation.spec.d.ts +1 -0
- package/build/main/core/src/tests/lib.pulsar/TestPulsarExporterManipulation.spec.d.ts +1 -0
- package/build/main/core/src/tests/packages/TestGitHubPackageDownloader.spec.d.ts +1 -0
- package/build/main/core/src/tests/packages/TestRemotePackageDownloader.spec.d.ts +1 -0
- package/build/main/core/src/tests/packages/TestZipping.spec.d.ts +1 -0
- package/build/main/core/src/tests/scenarios/TestBrowserScenario.spec.d.ts +1 -0
- package/build/main/core/src/tests/scenarios/TestCIScenario.spec.d.ts +1 -0
- package/build/main/core/src/tools/Logger.d.ts +3 -0
- package/build/main/core/src/tools/LoggerDefaultMessages.d.ts +9 -0
- package/build/main/core/src/tools/Timer.d.ts +14 -0
- package/build/main/language/src/blueprints/Blueprint.d.ts +9 -0
- package/build/main/language/src/blueprints/BlueprintConfiguration.d.ts +17 -0
- package/build/main/language/src/blueprints/BlueprintFactory.d.ts +9 -0
- package/build/main/language/src/configuration/KeywordsFlows.d.ts +23 -0
- package/build/main/language/src/configuration/KeywordsFunctions.d.ts +12 -0
- package/build/main/language/src/configuration/KeywordsTranformers.d.ts +63 -0
- package/build/main/language/src/debugger/Debugger.d.ts +27 -0
- package/build/main/language/src/debugger/DebuggerErrorBuilder.d.ts +14 -0
- package/build/main/language/src/debugger/DebuggerErrors.d.ts +41 -0
- package/build/main/language/src/exports.d.ts +17 -0
- package/build/main/language/src/extensions/dsm/DSMBridge.d.ts +38 -0
- package/build/main/language/src/extensions/dsm/DSMDataCore.d.ts +135 -0
- package/build/main/language/src/extensions/dsm/DSMExecutionContext.d.ts +23 -0
- package/build/main/language/src/extensions/dsm/configuration/DSMKeywordsFunctions.d.ts +52 -0
- package/build/main/language/src/extensions/dsm/functions/assets/DSMFunctionAllAssets.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/assets/DSMFunctionAssetById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/assets/DSMFunctionAssetsByGroupId.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/brands/DSMFunctionAllBrands.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/brands/DSMFunctionCurrentBrand.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/components/DSMFunctionAllComponents.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/components/DSMFunctionComponentById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/configuration/DSMFunctionConfiguration.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/configuration/DSMFunctionPackageConfiguration.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/design_components/DSMFunctionAllDesignComponents.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/design_components/DSMFunctionDesignComponentById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/design_system/DSMFunctionCurrentDesignSystem.d.ts +32 -0
- package/build/main/language/src/extensions/dsm/functions/design_system/DSMFunctionCurrentDesignSystemSwitcher.d.ts +19 -0
- package/build/main/language/src/extensions/dsm/functions/design_system/DSMFunctionDesignSystemById.d.ts +14 -0
- package/build/main/language/src/extensions/dsm/functions/design_system_version/DSMFunctionAllDesignSystemVersions.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/design_system_version/DSMFunctionCurrentDesignSystemVersion.d.ts +28 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsAllGroups.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsAllPages.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsConfiguration.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsDomain.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsGroupById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsPageById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsPageToMarkdown.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/documentation/DSMFunctionDocsRootGroup.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/fonts/DSMFunctionFontIsBold.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/fonts/DSMFunctionFontIsItalic.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/fonts/DSMFunctionFontIsRegular.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/fonts/DSMFunctionFontWeight.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/assets/DSMFunctionAllAssetGroups.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/assets/DSMFunctionAssetGroupById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/assets/DSMFunctionAssetGroupContainingAssetId.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/assets/DSMFunctionAssetGroupTree.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionAllTokenGroupTrees.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionAllTokenGroups.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionTokenGroupById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionTokenGroupContainingTokenId.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionTokenGroupTreeByType.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/groups/tokens/DSMFunctionTokenGroupsByType.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/kvs/DSMFunctionKVSData.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/themes/DSMFunctionAllThemes.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/themes/DSMFunctionCurrentTheme.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/themes/DSMFunctionThemeById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionAllTokens.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionAllTokensByApplyingThemes.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionTokenById.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionTokensByApplyingThemes.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionTokensByGroupId.d.ts +10 -0
- package/build/main/language/src/extensions/dsm/functions/tokens/DSMFunctionTokensByType.d.ts +10 -0
- package/build/main/language/src/index.d.ts +1 -0
- package/build/main/language/src/interpreter/ExecutionContext.d.ts +56 -0
- package/build/main/language/src/interpreter/Interpreter.d.ts +33 -0
- package/build/main/language/src/interpreter/InterpreterContext.d.ts +9 -0
- package/build/main/language/src/interpreter/emitters/BlueprintEmitter.d.ts +5 -0
- package/build/main/language/src/interpreter/emitters/EmittedContent.d.ts +6 -0
- package/build/main/language/src/interpreter/emitters/MemoryBlueprintEmitter.d.ts +11 -0
- package/build/main/language/src/interpreter/flows/Flow.d.ts +37 -0
- package/build/main/language/src/interpreter/flows/FlowIterator.d.ts +25 -0
- package/build/main/language/src/interpreter/flows/FlowOutput.d.ts +9 -0
- package/build/main/language/src/interpreter/flows/FlowSource.d.ts +10 -0
- package/build/main/language/src/interpreter/flows/specific/code/FlowCodeMerge.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/debug/FlowLog.d.ts +18 -0
- package/build/main/language/src/interpreter/flows/specific/emit/FlowEmit.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/function/FlowImport.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/function/FlowReturn.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/if/FlowElse.d.ts +19 -0
- package/build/main/language/src/interpreter/flows/specific/if/FlowElseIf.d.ts +20 -0
- package/build/main/language/src/interpreter/flows/specific/if/FlowIf.d.ts +19 -0
- package/build/main/language/src/interpreter/flows/specific/inject/FlowInject.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/loops/FlowFor.d.ts +17 -0
- package/build/main/language/src/interpreter/flows/specific/loops/FlowMap.d.ts +17 -0
- package/build/main/language/src/interpreter/flows/specific/loops/FlowTraverse.d.ts +18 -0
- package/build/main/language/src/interpreter/flows/specific/loops/FlowTraverseChildren.d.ts +6 -0
- package/build/main/language/src/interpreter/flows/specific/switch/FlowCase.d.ts +17 -0
- package/build/main/language/src/interpreter/flows/specific/switch/FlowDefault.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/switch/FlowSwitch.d.ts +17 -0
- package/build/main/language/src/interpreter/flows/specific/var/FlowConst.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/var/FlowGlobal.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/var/FlowLet.d.ts +16 -0
- package/build/main/language/src/interpreter/flows/specific/var/FlowSet.d.ts +16 -0
- package/build/main/language/src/interpreter/functions/Function.d.ts +31 -0
- package/build/main/language/src/interpreter/functions/specific/blueprints/FunctionCall.d.ts +9 -0
- package/build/main/language/src/interpreter/functions/specific/network/FunctionNetworkGetAnonymous.d.ts +11 -0
- package/build/main/language/src/interpreter/functions/specific/random/FunctionRandomInt.d.ts +9 -0
- package/build/main/language/src/interpreter/functions/specific/random/FunctionRandomString.d.ts +9 -0
- package/build/main/language/src/interpreter/functions/specific/support/FunctionArraysToZippedMap.d.ts +9 -0
- package/build/main/language/src/interpreter/functions/specific/support/FunctionVarDefined.d.ts +9 -0
- package/build/main/language/src/interpreter/functions/specific/support/FunctionVarMutable.d.ts +9 -0
- package/build/main/language/src/interpreter/javascript/JSContext.d.ts +18 -0
- package/build/main/language/src/interpreter/javascript/JSContextBridge.d.ts +16 -0
- package/build/main/language/src/interpreter/javascript/JSFunction.d.ts +20 -0
- package/build/main/language/src/interpreter/javascript/JSTransformer.d.ts +30 -0
- package/build/main/language/src/interpreter/loaders/BlueprintLoader.d.ts +12 -0
- package/build/main/language/src/interpreter/loaders/MemoryBlueprintLoader.d.ts +10 -0
- package/build/main/language/src/interpreter/loggers/Logger.d.ts +47 -0
- package/build/main/language/src/interpreter/loggers/LoggerDefaultMessages.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/Transformer.d.ts +28 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerAppend.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerConcat.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerEnumerated.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerFirst.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerFrom.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerJoin.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerLast.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerRandom.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerRange.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerReversed.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerShuffled.d.ts +11 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerSorted.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/array/TransformerUntil.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/map/TransformerAdd.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/map/TransformerKeys.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/map/TransformerValues.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerAbsolute.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerCeiled.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerFloored.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerNegative.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerPositive.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/numeric/TransformerRounded.d.ts +11 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerCount.d.ts +12 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerEquals.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerFormatDate.d.ts +13 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerIsArray.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerIsBool.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerIsNumber.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerIsObject.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerIsString.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/shared/TransformerToString.d.ts +14 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerCamelcased.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerCapitalized.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerContains.d.ts +11 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerDefault.d.ts +11 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerEndsWith.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerExtended.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerLowercased.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerPrefixed.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerReplacing.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSlashDoubleQuotes.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSlashNewlines.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSlashSingleQuotes.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSnakecased.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSplit.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSplitExpr.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSplitNewlines.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerStartsWith.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSubstring.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerSuffixed.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerTrimmingCharacter.d.ts +11 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerTrimmingSpaces.d.ts +10 -0
- package/build/main/language/src/interpreter/transformers/specific/string/TransformerUppercased.d.ts +10 -0
- package/build/main/language/src/interpreter/variables/Variable.d.ts +22 -0
- package/build/main/language/src/interpreter/variables/VariableContext.d.ts +14 -0
- package/build/main/language/src/parser/Tokenization/Concrete/ConcreteBuffer.d.ts +19 -0
- package/build/main/language/src/parser/Tokenization/Concrete/ConcreteParser.d.ts +25 -0
- package/build/main/language/src/parser/Tokenization/Concrete/ConcreteToken.d.ts +21 -0
- package/build/main/language/src/parser/Tokenization/Lexical/LexicalBuffer.d.ts +22 -0
- package/build/main/language/src/parser/Tokenization/Lexical/LexicalParser.d.ts +14 -0
- package/build/main/language/src/parser/Tokenization/Lexical/LexicalToken.d.ts +24 -0
- package/build/main/language/src/parser/errors/LanguageError.d.ts +5 -0
- package/build/main/language/src/parser/errors/LanguageErrorAnalysis.d.ts +26 -0
- package/build/main/language/src/parser/errors/LoggerErrorUtility.d.ts +8 -0
- package/build/main/language/src/parser/symbols/Symbol.d.ts +29 -0
- package/build/main/language/src/parser/symbols/SymbolBuffer.d.ts +16 -0
- package/build/main/language/src/parser/symbols/SymbolFactory.d.ts +27 -0
- package/build/main/language/src/parser/symbols/SymbolTable.d.ts +22 -0
- package/build/main/language/src/parser/symbols/SymbolType.d.ts +5 -0
- package/build/main/language/src/parser/syntax/SyntaxParser.d.ts +13 -0
- package/build/main/language/src/parser/syntax/SyntaxTree.d.ts +8 -0
- package/build/main/language/src/parser/syntax/nodes/SyntaxNode.d.ts +13 -0
- package/build/main/language/src/parser/syntax/nodes/SyntaxNodeFlow.d.ts +34 -0
- package/build/main/language/src/parser/syntax/nodes/SyntaxNodeGroup.d.ts +17 -0
- package/build/main/language/src/parser/syntax/nodes/SyntaxNodeText.d.ts +16 -0
- package/build/main/language/src/parser/syntax/nodes/substitution/SyntaxNodeSubstitution.d.ts +24 -0
- package/build/main/language/src/parser/syntax/nodes/substitution/SyntaxNodeSubstitutionAnalyzer.d.ts +21 -0
- package/build/main/language/src/parser/syntax/nodes/substitution/interpreters/SyntaxNodeSubstitutionAsyncInterpreter.d.ts +27 -0
- package/build/main/language/src/parser/syntax/nodes/substitution/interpreters/SyntaxNodeSubstitutionInterpreter.d.ts +10 -0
- package/build/main/language/src/parser/syntax/nodes/substitution/interpreters/SyntaxNodeSubstitutionSyncInterpreter.d.ts +25 -0
- package/build/main/language/src/tools/autocomplete/AutocompleteEngine.d.ts +31 -0
- package/build/main/language/src/tools/autocomplete/BlueprintAutocompleteEngine.d.ts +40 -0
- package/build/main/language/src/tools/autocomplete/BlueprintSnippets.d.ts +16 -0
- package/build/main/language/src/tools/autocomplete/PlaceholderDisabledSnippetPool.d.ts +34 -0
- package/build/main/language/src/tools/autocomplete/PlaceholderEnabledSnippetPool.d.ts +35 -0
- package/build/main/language/src/tools/documentation/DeclarationBuilder.d.ts +8 -0
- package/build/main/language/src/tools/documentation/Doc.d.ts +30 -0
- package/build/main/language/src/tools/documentation/Documentable.d.ts +4 -0
- package/build/main/language/src/tools/highlight/BlueprintHighlightEngine.d.ts +51 -0
- package/build/main/language/src/tools/highlight/BlueprintHighlightEngineState.d.ts +41 -0
- package/build/main/language/src/tools/highlight/HighlightEngine.d.ts +44 -0
- package/build/main/language/src/utils/FlowUtils.d.ts +5 -0
- package/build/main/language/src/utils/StringUtils.d.ts +72 -0
- package/package.json +4 -1
- package/images/image.png +0 -0
- package/scripts/travis-npm-publish.sh +0 -4
- package/shims/tmp-promise.js +0 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class SymbolBuffer {
|
|
2
|
+
line: number;
|
|
3
|
+
char: number;
|
|
4
|
+
seekFirstMode: boolean;
|
|
5
|
+
constructor();
|
|
6
|
+
/** Modify seeking buffer with singular character */
|
|
7
|
+
seekUsingCharacter(char: string): void;
|
|
8
|
+
/** Modify seeking buffer with sequence of characters. Can be both regular and special (newlines) characters and modifies buffer accordingly */
|
|
9
|
+
seekUsingMultipleCharacters(chars: string): void;
|
|
10
|
+
/** Modify counters by regular character */
|
|
11
|
+
seekNextChar(): void;
|
|
12
|
+
/** Modify counters by newline character */
|
|
13
|
+
seekNextLine(): void;
|
|
14
|
+
/** Set behavior of counter. When enabled, counter will start from -1, expecting seek to happen before first data read. Defaults to true */
|
|
15
|
+
setSeekHappensFirst(seekFirst: boolean): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SyntaxNode } from '../syntax/nodes/SyntaxNode';
|
|
2
|
+
import { ConcreteToken } from '../Tokenization/Concrete/ConcreteToken';
|
|
3
|
+
import { LexicalToken } from '../Tokenization/Lexical/LexicalToken';
|
|
4
|
+
import { Symbol } from './Symbol';
|
|
5
|
+
export declare class SymbolFactory {
|
|
6
|
+
private evaluatedSource;
|
|
7
|
+
constructor(source: string);
|
|
8
|
+
setSource(source: string): void;
|
|
9
|
+
private symbol;
|
|
10
|
+
lexicalSymbolFromToken(token: LexicalToken): Symbol;
|
|
11
|
+
concreteSymbolFromToken(token: ConcreteToken): Symbol;
|
|
12
|
+
syntaxSymbolFromNode(token: SyntaxNode): Symbol;
|
|
13
|
+
/** Compute symbol range from array of given lexical tokens. Will find beginning and end line and char or return -1 if no tokens were given */
|
|
14
|
+
computeSymbolRangeFromLexicalTokens(tokens: LexicalToken[]): {
|
|
15
|
+
startLine: number;
|
|
16
|
+
startChar: number;
|
|
17
|
+
endLine: number;
|
|
18
|
+
endChar: number;
|
|
19
|
+
};
|
|
20
|
+
/** Compute symbol range from array of given concrete tokens. Will find beginning and end line and char or return -1 if no tokens were given */
|
|
21
|
+
computeSymbolRangeFromConcreteTokens(tokens: ConcreteToken[]): {
|
|
22
|
+
startLine: number;
|
|
23
|
+
startChar: number;
|
|
24
|
+
endLine: number;
|
|
25
|
+
endChar: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SyntaxNode } from '../syntax/nodes/SyntaxNode';
|
|
2
|
+
import { ConcreteToken } from '../Tokenization/Concrete/ConcreteToken';
|
|
3
|
+
import { LexicalToken } from '../Tokenization/Lexical/LexicalToken';
|
|
4
|
+
import { Symbol } from './Symbol';
|
|
5
|
+
export declare class PLSymbolTable {
|
|
6
|
+
private symbolFactory;
|
|
7
|
+
readonly symbols: Map<string, Symbol>;
|
|
8
|
+
constructor(source: string);
|
|
9
|
+
emitSymbolFromLexicalToken(token: LexicalToken): Symbol;
|
|
10
|
+
emitSymbolFromConcreteToken(token: ConcreteToken): Symbol;
|
|
11
|
+
emitSymbolFromSyntaxNode(node: SyntaxNode): Symbol;
|
|
12
|
+
private storeSymbol;
|
|
13
|
+
setExecutedSource(source: string): void;
|
|
14
|
+
lexicalPhaseSymbols(): Array<Symbol>;
|
|
15
|
+
lexicalPhaseSymbolsSortedByLocation(): Array<Symbol>;
|
|
16
|
+
concretePhaseSymbols(): Array<Symbol>;
|
|
17
|
+
concretePhaseSymbolSortedByLocation(): Array<Symbol>;
|
|
18
|
+
syntaxPhaseSymbols(): Array<Symbol>;
|
|
19
|
+
syntaxPhaseSymbolSortedByLocation(): Array<Symbol>;
|
|
20
|
+
symbolById(symbolId: string): Symbol | null;
|
|
21
|
+
symbolArraySortedByLocation(symbols: Array<Symbol>): Array<Symbol>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PLExecutionContext } from '../../interpreter/ExecutionContext';
|
|
2
|
+
import { ConcreteBuffer } from '../Tokenization/Concrete/ConcreteBuffer';
|
|
3
|
+
import { SyntaxNodeFlow } from './nodes/SyntaxNodeFlow';
|
|
4
|
+
import { SyntaxTree } from './SyntaxTree';
|
|
5
|
+
export declare class SyntaxParser {
|
|
6
|
+
readonly tokens: ConcreteBuffer;
|
|
7
|
+
executionContext: PLExecutionContext;
|
|
8
|
+
openedFlowNodes: Array<SyntaxNodeFlow>;
|
|
9
|
+
constructor(tokens: ConcreteBuffer, executionContext: PLExecutionContext);
|
|
10
|
+
parse(): SyntaxTree;
|
|
11
|
+
parseTokens(tokens: ConcreteBuffer): SyntaxTree;
|
|
12
|
+
lastOpenedChainNode(): SyntaxNodeFlow | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PLExecutionContext } from '../../interpreter/ExecutionContext';
|
|
2
|
+
import { SyntaxNodeGroup } from './nodes/SyntaxNodeGroup';
|
|
3
|
+
export declare class SyntaxTree {
|
|
4
|
+
rootNode: SyntaxNodeGroup;
|
|
5
|
+
constructor(executionContext: PLExecutionContext, rootNode?: SyntaxNodeGroup);
|
|
6
|
+
debugDescription(): string;
|
|
7
|
+
equals(obj: SyntaxTree): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConcreteToken } from '../../Tokenization/Concrete/ConcreteToken';
|
|
2
|
+
export declare enum NodeType {
|
|
3
|
+
text = 0,
|
|
4
|
+
flow = 1,
|
|
5
|
+
substitution = 2,
|
|
6
|
+
group = 3
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class SyntaxNode {
|
|
9
|
+
nodeType: NodeType;
|
|
10
|
+
backingTokens: Array<ConcreteToken>;
|
|
11
|
+
debugSymbol: string | null;
|
|
12
|
+
abstract debugDescription(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PLExecutionContext } from '../../../interpreter/ExecutionContext';
|
|
2
|
+
import { PLFlow } from '../../../interpreter/flows/Flow';
|
|
3
|
+
import { PLFlowSource } from '../../../interpreter/flows/FlowSource';
|
|
4
|
+
import { ConcreteToken } from '../../Tokenization/Concrete/ConcreteToken';
|
|
5
|
+
import { PLFlowOutput } from './../../../interpreter/flows/FlowOutput';
|
|
6
|
+
import { PLInterpreterContext } from './../../../interpreter/InterpreterContext';
|
|
7
|
+
import { NodeType, SyntaxNode } from './SyntaxNode';
|
|
8
|
+
import { SyntaxNodeGroup } from './SyntaxNodeGroup';
|
|
9
|
+
export declare class SyntaxNodeFlow implements SyntaxNode {
|
|
10
|
+
nodeType: NodeType;
|
|
11
|
+
backingTokens: Array<ConcreteToken>;
|
|
12
|
+
debugSymbol: string | null;
|
|
13
|
+
flowGroup: SyntaxNodeGroup;
|
|
14
|
+
flowIdentifier: string;
|
|
15
|
+
directive: string;
|
|
16
|
+
flow: PLFlow;
|
|
17
|
+
lineOffset: number;
|
|
18
|
+
firstLineDirective: boolean;
|
|
19
|
+
outputs: Map<string, PLFlowOutput>;
|
|
20
|
+
sources: Map<string, PLFlowSource>;
|
|
21
|
+
keywords: Map<string, boolean>;
|
|
22
|
+
previousChainFlow?: SyntaxNodeFlow;
|
|
23
|
+
nextChainFlow?: SyntaxNodeFlow;
|
|
24
|
+
parent?: SyntaxNodeFlow;
|
|
25
|
+
constructor(directive: string, lineOffset: number, firstLineDirective: boolean, flowGroup: SyntaxNodeGroup | null, executionContext: PLExecutionContext, from: Array<ConcreteToken>);
|
|
26
|
+
setLinksToFlow(node: SyntaxNodeFlow): void;
|
|
27
|
+
unlinkPreviousChainedFlow(): void;
|
|
28
|
+
unlinkNextChainedFlow(): void;
|
|
29
|
+
setParent(node: SyntaxNodeFlow | null): void;
|
|
30
|
+
flowStackIdentifier(): Array<string>;
|
|
31
|
+
debugDescription(): string;
|
|
32
|
+
equals(obj: SyntaxNodeFlow): boolean;
|
|
33
|
+
interpret(_context: PLInterpreterContext, _executionContext: PLExecutionContext): Promise<string>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SyntaxNode } from './SyntaxNode';
|
|
2
|
+
import { NodeType } from './SyntaxNode';
|
|
3
|
+
import { PLExecutionContext } from '../../../interpreter/ExecutionContext';
|
|
4
|
+
import { PLInterpreterContext } from './../../../interpreter/InterpreterContext';
|
|
5
|
+
import { ConcreteToken } from '../../Tokenization/Concrete/ConcreteToken';
|
|
6
|
+
export declare class SyntaxNodeGroup implements SyntaxNode {
|
|
7
|
+
nodeType: NodeType;
|
|
8
|
+
debugSymbol: string | null;
|
|
9
|
+
backingTokens: Array<ConcreteToken>;
|
|
10
|
+
nodes: Array<SyntaxNode>;
|
|
11
|
+
depth: number;
|
|
12
|
+
constructor(nodes: Array<SyntaxNode>, depth: number, executionContext: PLExecutionContext, from: Array<ConcreteToken>);
|
|
13
|
+
add(node: SyntaxNode): void;
|
|
14
|
+
debugDescription(): string;
|
|
15
|
+
equals(obj: SyntaxNodeGroup): boolean;
|
|
16
|
+
interpret(_context: PLInterpreterContext, _executionContext: PLExecutionContext): Promise<string>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyntaxNode } from './SyntaxNode';
|
|
2
|
+
import { NodeType } from './SyntaxNode';
|
|
3
|
+
import { PLExecutionContext } from '../../../interpreter/ExecutionContext';
|
|
4
|
+
import { PLInterpreterContext } from './../../../interpreter/InterpreterContext';
|
|
5
|
+
import { ConcreteToken } from '../../Tokenization/Concrete/ConcreteToken';
|
|
6
|
+
export declare class SyntaxNodeText implements SyntaxNode {
|
|
7
|
+
nodeType: NodeType;
|
|
8
|
+
backingTokens: Array<ConcreteToken>;
|
|
9
|
+
debugSymbol: string | null;
|
|
10
|
+
text: string;
|
|
11
|
+
constructor(text: string, executionContext: PLExecutionContext, from: Array<ConcreteToken>);
|
|
12
|
+
debugDescription(): string;
|
|
13
|
+
equals(obj: SyntaxNodeText): boolean;
|
|
14
|
+
interpret(_context: PLInterpreterContext, _executionContext: PLExecutionContext): Promise<string>;
|
|
15
|
+
interpretSync(_context: PLInterpreterContext, _executionContext: PLExecutionContext): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NodeType, SyntaxNode } from '../SyntaxNode';
|
|
2
|
+
import { PLFunction } from '../../../../interpreter/functions/Function';
|
|
3
|
+
import { PLExecutionContext } from '../../../../interpreter/ExecutionContext';
|
|
4
|
+
import { ConcreteToken } from '../../../Tokenization/Concrete/ConcreteToken';
|
|
5
|
+
import jsep from 'jsep';
|
|
6
|
+
import { SyntaxNodeSubstitutionExecutionMode } from './SyntaxNodeSubstitutionAnalyzer';
|
|
7
|
+
import { SyntaxNodeSubstitutionInterpreter } from './interpreters/SyntaxNodeSubstitutionInterpreter';
|
|
8
|
+
export declare class SyntaxNodeSubstitution implements SyntaxNode {
|
|
9
|
+
nodeType: NodeType;
|
|
10
|
+
backingTokens: Array<ConcreteToken>;
|
|
11
|
+
debugSymbol: string | null;
|
|
12
|
+
customDataSource: {
|
|
13
|
+
function: PLFunction;
|
|
14
|
+
directive: string;
|
|
15
|
+
} | null;
|
|
16
|
+
directive: string;
|
|
17
|
+
isVirtual: boolean;
|
|
18
|
+
rootExpression: jsep.Expression;
|
|
19
|
+
preferredExecutionMode: SyntaxNodeSubstitutionExecutionMode;
|
|
20
|
+
interpreter: SyntaxNodeSubstitutionInterpreter;
|
|
21
|
+
constructor(directive: string, executionContext: PLExecutionContext, from: Array<ConcreteToken>, isVirtual: boolean);
|
|
22
|
+
debugDescription(): string;
|
|
23
|
+
equals(obj: SyntaxNodeSubstitution): boolean;
|
|
24
|
+
}
|
package/build/main/language/src/parser/syntax/nodes/substitution/SyntaxNodeSubstitutionAnalyzer.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PLExecutionContext } from "../../../../interpreter/ExecutionContext";
|
|
2
|
+
import jsep from "jsep";
|
|
3
|
+
import { ObjectExpression } from '@jsep-plugin/object';
|
|
4
|
+
import { SyntaxNodeSubstitution } from "./SyntaxNodeSubstitution";
|
|
5
|
+
export declare enum SyntaxNodeSubstitutionExecutionMode {
|
|
6
|
+
sync = 0,
|
|
7
|
+
async = 1
|
|
8
|
+
}
|
|
9
|
+
export declare class SyntaxNodeSubstitutionAnalyzer {
|
|
10
|
+
executionContext: PLExecutionContext;
|
|
11
|
+
constructor(executionContext: PLExecutionContext);
|
|
12
|
+
analyzePreferredExecutionMode(node: SyntaxNodeSubstitution): SyntaxNodeSubstitutionExecutionMode;
|
|
13
|
+
needsAsyncExpression(expression: jsep.Expression): boolean;
|
|
14
|
+
needsAsyncCallExpression(expression: jsep.CallExpression): boolean;
|
|
15
|
+
needsAsyncCallMemberExpression(callee: jsep.MemberExpression): boolean;
|
|
16
|
+
needsAsyncArrayExpression(expression: jsep.ArrayExpression): boolean;
|
|
17
|
+
needsAsyncBinaryExpression(expression: jsep.BinaryExpression): boolean;
|
|
18
|
+
needsAsyncConditionalExpression(expression: jsep.ConditionalExpression): boolean;
|
|
19
|
+
needsAsyncMemberExpression(expression: jsep.MemberExpression): boolean;
|
|
20
|
+
needsAsyncObjectExpression(expression: ObjectExpression): boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PLExecutionContext } from '../../../../../interpreter/ExecutionContext';
|
|
2
|
+
import { PLInterpreterContext } from '../../../../../interpreter/InterpreterContext';
|
|
3
|
+
import jsep from 'jsep';
|
|
4
|
+
import { ObjectExpression } from '@jsep-plugin/object';
|
|
5
|
+
import { SyntaxNodeSubstitution } from '../SyntaxNodeSubstitution';
|
|
6
|
+
import { SyntaxNodeSubstitutionInterpreter } from './SyntaxNodeSubstitutionInterpreter';
|
|
7
|
+
export declare class SyntaxNodeSubstitutionAsyncInterpreter extends SyntaxNodeSubstitutionInterpreter {
|
|
8
|
+
expressionResolutionLookup: Object;
|
|
9
|
+
node: SyntaxNodeSubstitution;
|
|
10
|
+
constructor(node: SyntaxNodeSubstitution);
|
|
11
|
+
interpretAsync(context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
12
|
+
resolveExpression(expression: jsep.Expression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
13
|
+
processIdentifier(expression: jsep.Identifier, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
14
|
+
processLiteralExpression(expression: jsep.Literal, context: PLInterpreterContext, executionContext: PLExecutionContext): string | boolean | number;
|
|
15
|
+
processUnaryExpression(expression: jsep.UnaryExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
16
|
+
processBinaryExpression(expression: jsep.BinaryExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
17
|
+
validateBooleanBinaryOp(leftValue: any, rightValue: any, operator: string): void;
|
|
18
|
+
validateNumericBinaryOp(leftValue: any, rightValue: any, operator: string): void;
|
|
19
|
+
processArrayExpression(expression: jsep.ArrayExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<Array<any>>;
|
|
20
|
+
processConditionalExpression(expression: jsep.ConditionalExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
21
|
+
processThisExpression(expression: jsep.ThisExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
22
|
+
processMemberExpression(expression: jsep.MemberExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
23
|
+
processCallExpression(expression: jsep.CallExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
24
|
+
processCallMemberExpression(callee: jsep.MemberExpression, args: Array<any>, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
25
|
+
processCompoundExpression(expression: jsep.Compound, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
26
|
+
processObjectExpression(expression: ObjectExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PLExecutionContext } from "../../../../../interpreter/ExecutionContext";
|
|
2
|
+
import { PLInterpreterContext } from "../../../../../interpreter/InterpreterContext";
|
|
3
|
+
import { SyntaxNodeSubstitution } from "../SyntaxNodeSubstitution";
|
|
4
|
+
export declare class SyntaxNodeSubstitutionInterpreter {
|
|
5
|
+
expressionResolutionLookup: Object;
|
|
6
|
+
node: SyntaxNodeSubstitution;
|
|
7
|
+
constructor(node: SyntaxNodeSubstitution);
|
|
8
|
+
interpretSync(context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
9
|
+
interpretAsync(context: PLInterpreterContext, executionContext: PLExecutionContext): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PLExecutionContext } from '../../../../../interpreter/ExecutionContext';
|
|
2
|
+
import { PLInterpreterContext } from '../../../../../interpreter/InterpreterContext';
|
|
3
|
+
import jsep from 'jsep';
|
|
4
|
+
import { ObjectExpression } from '@jsep-plugin/object';
|
|
5
|
+
import { SyntaxNodeSubstitutionInterpreter } from './SyntaxNodeSubstitutionInterpreter';
|
|
6
|
+
import { SyntaxNodeSubstitution } from '../SyntaxNodeSubstitution';
|
|
7
|
+
export declare class SyntaxNodeSubstitutionSyncInterpreter extends SyntaxNodeSubstitutionInterpreter {
|
|
8
|
+
constructor(node: SyntaxNodeSubstitution);
|
|
9
|
+
interpretSync(context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
10
|
+
resolveExpression(expression: jsep.Expression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
11
|
+
processIdentifier(expression: jsep.Identifier, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
12
|
+
processLiteralExpression(expression: jsep.Literal, context: PLInterpreterContext, executionContext: PLExecutionContext): string | boolean | number;
|
|
13
|
+
processUnaryExpression(expression: jsep.UnaryExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
14
|
+
processBinaryExpression(expression: jsep.BinaryExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
15
|
+
validateBooleanBinaryOp(leftValue: any, rightValue: any, operator: string): void;
|
|
16
|
+
validateNumericBinaryOp(leftValue: any, rightValue: any, operator: string): void;
|
|
17
|
+
processArrayExpression(expression: jsep.ArrayExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): Array<any>;
|
|
18
|
+
processConditionalExpression(expression: jsep.ConditionalExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
19
|
+
processThisExpression(expression: jsep.ThisExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
20
|
+
processMemberExpression(expression: jsep.MemberExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
21
|
+
processCallExpression(expression: jsep.CallExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
22
|
+
processCallMemberExpression(callee: jsep.MemberExpression, args: Array<any>, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
23
|
+
processCompoundExpression(expression: jsep.Compound, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
24
|
+
processObjectExpression(expression: ObjectExpression, context: PLInterpreterContext, executionContext: PLExecutionContext): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PLDoc } from './../documentation/Doc';
|
|
2
|
+
export declare enum PLAutocompleteEngineSuggestionType {
|
|
3
|
+
method = "method",
|
|
4
|
+
transformer = "transformer",
|
|
5
|
+
snippet = "snippet",
|
|
6
|
+
variable = "variable"
|
|
7
|
+
}
|
|
8
|
+
export declare type PLAutocompleteEngineSuggestion = {
|
|
9
|
+
type: PLAutocompleteEngineSuggestionType;
|
|
10
|
+
inputString: string;
|
|
11
|
+
documentationObject: PLDoc;
|
|
12
|
+
suggestionString: string;
|
|
13
|
+
declarationString: string | null;
|
|
14
|
+
ranges: Array<{
|
|
15
|
+
location: number;
|
|
16
|
+
length: number;
|
|
17
|
+
}>;
|
|
18
|
+
weight: number;
|
|
19
|
+
caretLocation: number | null;
|
|
20
|
+
};
|
|
21
|
+
export declare type PLAutocompleteEngineApplicationResult = {
|
|
22
|
+
resultingString: string;
|
|
23
|
+
proposedSelectionLocation: number;
|
|
24
|
+
proposedSelectionLength: number;
|
|
25
|
+
};
|
|
26
|
+
export declare class PLAutocompleteEngine {
|
|
27
|
+
constructor();
|
|
28
|
+
suggestNextBasedOnString(_string: String, _selectionLocation: number, _selectionLength: number): Array<PLAutocompleteEngineSuggestion>;
|
|
29
|
+
suggestedStringUntilSelection(string: String, selectionLocation: number, _selectionLength: number): string;
|
|
30
|
+
applySuggestion(suggestion: PLAutocompleteEngineSuggestion, string: String, selectionLocation: number, _selectionLength: number, _decoderAddition: number): PLAutocompleteEngineApplicationResult;
|
|
31
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PLAutocompleteEngine, PLAutocompleteEngineSuggestion } from './AutocompleteEngine';
|
|
2
|
+
import { PLAutocompleteBlueprintSnippet } from './BlueprintSnippets';
|
|
3
|
+
import { PLExecutionContext } from './../../interpreter/ExecutionContext';
|
|
4
|
+
export declare enum PLBlueprintAutocompleteEngineControlCharacter {
|
|
5
|
+
substitutionOpen = "{{",
|
|
6
|
+
substitutionClose = "}}",
|
|
7
|
+
flowOpening = "{[",
|
|
8
|
+
flowClosing = "/]}",
|
|
9
|
+
commentOpen = "/*",
|
|
10
|
+
commentClose = "*/",
|
|
11
|
+
quote = "\"",
|
|
12
|
+
none = "none"
|
|
13
|
+
}
|
|
14
|
+
export declare class PLBlueprintAutocompleteEngine extends PLAutocompleteEngine {
|
|
15
|
+
executionContext: PLExecutionContext;
|
|
16
|
+
snippets: Array<PLAutocompleteBlueprintSnippet>;
|
|
17
|
+
includePlaceholders: boolean;
|
|
18
|
+
constructor(executionContext: PLExecutionContext, includePlaceholders?: boolean);
|
|
19
|
+
update(executionContext: PLExecutionContext): void;
|
|
20
|
+
loadSnippets(snippets: Array<PLAutocompleteBlueprintSnippet>): void;
|
|
21
|
+
suggestNextBasedOnString(string: string, selectionLocation: number, selectionLength: number): Array<PLAutocompleteEngineSuggestion>;
|
|
22
|
+
private suggestionsForString;
|
|
23
|
+
private variableSuggestionsContainingKeyword;
|
|
24
|
+
private transformerSuggestionsContainingKeyword;
|
|
25
|
+
private snippetSuggestionsContainingKeyword;
|
|
26
|
+
private functionSuggestionsContainingKeyword;
|
|
27
|
+
private convertFunctionToSuggestion;
|
|
28
|
+
private convertTransformerToSuggestion;
|
|
29
|
+
private convertVariableToSuggestion;
|
|
30
|
+
private convertSnippetToSuggestion;
|
|
31
|
+
private sortedSuggestions;
|
|
32
|
+
private rangesOfSubsequence;
|
|
33
|
+
private compactRanges;
|
|
34
|
+
private longestRangeOfRanges;
|
|
35
|
+
private seekLastControlCharacterOfString;
|
|
36
|
+
private allControlCharacters;
|
|
37
|
+
private lastPartOfStringContains;
|
|
38
|
+
private lastWordOfString;
|
|
39
|
+
private lastLineOfString;
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type PLAutocompleteBlueprintSnippet = {
|
|
2
|
+
/** Snippet invocation keyword */
|
|
3
|
+
keyword: string;
|
|
4
|
+
/** Snippet content to be inserted into the code */
|
|
5
|
+
content: string;
|
|
6
|
+
/** Snippet description */
|
|
7
|
+
description: string | null;
|
|
8
|
+
/** Suggestion string that will be used to replace user input if use commits the action */
|
|
9
|
+
caretPosition: number | null;
|
|
10
|
+
/** Priority */
|
|
11
|
+
priority: number;
|
|
12
|
+
};
|
|
13
|
+
export declare class PLAutocompleteBlueprintSnippets {
|
|
14
|
+
constructor();
|
|
15
|
+
snippetPool(includingEditorPlaceholder?: boolean): Array<PLAutocompleteBlueprintSnippet>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PLAutocompleteBlueprintSnippet } from './BlueprintSnippets';
|
|
2
|
+
export declare class PLPlaceholderDisabledSnippetPool {
|
|
3
|
+
constructor();
|
|
4
|
+
allSnippets(): Array<PLAutocompleteBlueprintSnippet>;
|
|
5
|
+
commentSnippet(): PLAutocompleteBlueprintSnippet;
|
|
6
|
+
commentMultilineSnippet(): PLAutocompleteBlueprintSnippet;
|
|
7
|
+
flowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
8
|
+
flowEndSnippet(): PLAutocompleteBlueprintSnippet;
|
|
9
|
+
flowNoBodySnippet(): PLAutocompleteBlueprintSnippet;
|
|
10
|
+
substitutionSnippet(): PLAutocompleteBlueprintSnippet;
|
|
11
|
+
logFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
12
|
+
varFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
13
|
+
letFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
14
|
+
setFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
15
|
+
globalFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
16
|
+
importFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
17
|
+
returnFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
18
|
+
emitFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
19
|
+
injectFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
20
|
+
codeMergeFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
21
|
+
mapFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
22
|
+
mapElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
23
|
+
forFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
24
|
+
forElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
25
|
+
traverseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
26
|
+
switchFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
27
|
+
switchDefaultFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
28
|
+
caseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
29
|
+
defaultFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
30
|
+
ifFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
31
|
+
ifElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
32
|
+
ifElseIfElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
33
|
+
elseSnippet(): PLAutocompleteBlueprintSnippet;
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PLAutocompleteBlueprintSnippet } from './BlueprintSnippets';
|
|
2
|
+
export declare class PLPlaceholderEnabledSnippetPool {
|
|
3
|
+
constructor();
|
|
4
|
+
allSnippets(): Array<PLAutocompleteBlueprintSnippet>;
|
|
5
|
+
commentSnippet(): PLAutocompleteBlueprintSnippet;
|
|
6
|
+
commentMultilineSnippet(): PLAutocompleteBlueprintSnippet;
|
|
7
|
+
flowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
8
|
+
flowEndSnippet(): PLAutocompleteBlueprintSnippet;
|
|
9
|
+
flowNoBodySnippet(): PLAutocompleteBlueprintSnippet;
|
|
10
|
+
substitutionSnippet(): PLAutocompleteBlueprintSnippet;
|
|
11
|
+
logFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
12
|
+
letFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
13
|
+
constFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
14
|
+
setFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
15
|
+
globalFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
16
|
+
importFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
17
|
+
returnFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
18
|
+
emitFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
19
|
+
injectFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
20
|
+
codeMergeFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
21
|
+
mapFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
22
|
+
mapElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
23
|
+
forFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
24
|
+
forElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
25
|
+
traverseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
26
|
+
traverseChildrenFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
27
|
+
switchFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
28
|
+
switchDefaultFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
29
|
+
caseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
30
|
+
defaultFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
31
|
+
ifFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
32
|
+
ifElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
33
|
+
ifElseIfElseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
34
|
+
elseFlowSnippet(): PLAutocompleteBlueprintSnippet;
|
|
35
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PLFunction } from '../../interpreter/functions/Function';
|
|
2
|
+
import { PLTransformer } from '../../interpreter/transformers/Transformer';
|
|
3
|
+
export declare class PLDeclarationBuilder {
|
|
4
|
+
static snippetDeclarationForFunction(func: PLFunction, includePlaceholders: boolean): string;
|
|
5
|
+
static snippetDeclarationForTransformer(transformer: PLTransformer, includePlaceholders: boolean): string;
|
|
6
|
+
static documentationDeclarationForFunction(func: PLFunction): string;
|
|
7
|
+
static documentationDeclarationForTransformer(transformer: PLTransformer): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PLFunction } from './../../interpreter/functions/Function';
|
|
2
|
+
import { PLTransformer } from '../../interpreter/transformers/Transformer';
|
|
3
|
+
export declare type DocDataType = string;
|
|
4
|
+
export declare enum DocDataTypePredefinedType {
|
|
5
|
+
number = "Number",
|
|
6
|
+
bool = "Bool",
|
|
7
|
+
string = "string",
|
|
8
|
+
int = "Int",
|
|
9
|
+
double = "Double",
|
|
10
|
+
float = "Float",
|
|
11
|
+
array = "Array",
|
|
12
|
+
dict = "Dictionary",
|
|
13
|
+
any = "Any"
|
|
14
|
+
}
|
|
15
|
+
export interface DocArgument {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
dataType: DocDataType;
|
|
19
|
+
}
|
|
20
|
+
export declare class PLDoc {
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
returnType: string | null;
|
|
24
|
+
link: string | null;
|
|
25
|
+
arguments: Array<DocArgument>;
|
|
26
|
+
constructor(name: string, link: string | null, text: string, dataType: string | null, args: Array<DocArgument> | null);
|
|
27
|
+
static functionDoc(func: PLFunction, text: string, dataType: DocDataType | DocDataTypePredefinedType, args: Array<DocArgument>, link: string | null): PLDoc;
|
|
28
|
+
static transfomerDoc(transformer: PLTransformer, text: string, dataType: DocDataType | DocDataTypePredefinedType, args: Array<DocArgument>, link: string | null): PLDoc;
|
|
29
|
+
static arg(name: string, text: string, dataType: DocDataType | DocDataTypePredefinedType): DocArgument;
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PLHighlightEngine, PLHighlightEngineToken } from './HighlightEngine';
|
|
2
|
+
import { PLFlow } from './../../interpreter/flows/Flow';
|
|
3
|
+
import { PLTransformer } from './../../interpreter/transformers/Transformer';
|
|
4
|
+
import { PLFunction } from './../../interpreter/functions/Function';
|
|
5
|
+
import { PLExecutionContext } from './../../interpreter/ExecutionContext';
|
|
6
|
+
import { PLBlueprintHighlightEngineState } from './BlueprintHighlightEngineState';
|
|
7
|
+
import { SyntaxNodeSubstitution } from '../../parser/syntax/nodes/substitution/SyntaxNodeSubstitution';
|
|
8
|
+
export declare class PLBlueprintHighlightEngine extends PLHighlightEngine {
|
|
9
|
+
blueprintFlowOpeningTag: string;
|
|
10
|
+
blueprintFlowClosingTag: string;
|
|
11
|
+
blueprintFlowClosingEndingTag: string;
|
|
12
|
+
blueprintFlowOpeningSubstitution: string;
|
|
13
|
+
blueprintFlowClosingSubstitution: string;
|
|
14
|
+
blueprintCommentOpening: string;
|
|
15
|
+
blueprintCommentClosing: string;
|
|
16
|
+
blueprintSnippetOpening: string;
|
|
17
|
+
blueprintSnippetClosing: string;
|
|
18
|
+
blueprintFunctions: Map<string, PLFunction>;
|
|
19
|
+
blueprintTransformers: Map<string, PLTransformer>;
|
|
20
|
+
blueprintFlows: Map<string, PLFlow>;
|
|
21
|
+
executionContext: PLExecutionContext;
|
|
22
|
+
constructor(executionContext: PLExecutionContext);
|
|
23
|
+
tokenize(string: string): Array<PLHighlightEngineToken>;
|
|
24
|
+
tokenizeControlTokens(string: string): Array<PLHighlightEngineToken>;
|
|
25
|
+
tokenizeNoncontrolTokens(string: string): Array<PLHighlightEngineToken>;
|
|
26
|
+
tokenizeUntilCommentEnd(state: PLBlueprintHighlightEngineState, string: string): {
|
|
27
|
+
remaining: string;
|
|
28
|
+
tokens: Array<PLHighlightEngineToken>;
|
|
29
|
+
};
|
|
30
|
+
tokenizeUntilSnippetEnd(state: PLBlueprintHighlightEngineState, string: string): {
|
|
31
|
+
remaining: string;
|
|
32
|
+
tokens: Array<PLHighlightEngineToken>;
|
|
33
|
+
};
|
|
34
|
+
tokenizeUntilSubstitutionEndOrNewline(state: PLBlueprintHighlightEngineState, string: string): {
|
|
35
|
+
remaining: string;
|
|
36
|
+
tokens: Array<PLHighlightEngineToken>;
|
|
37
|
+
};
|
|
38
|
+
tokenizeUntilFlowEndOrNewline(state: PLBlueprintHighlightEngineState, string: string): {
|
|
39
|
+
remaining: string;
|
|
40
|
+
tokens: Array<PLHighlightEngineToken>;
|
|
41
|
+
};
|
|
42
|
+
tokenizeUntilAnyNonControlOpeningTag(state: PLBlueprintHighlightEngineState, string: string): string;
|
|
43
|
+
tokenizeUntilAnyControlOpeningTag(state: PLBlueprintHighlightEngineState, string: string): {
|
|
44
|
+
remaining: string;
|
|
45
|
+
tokens: Array<PLHighlightEngineToken>;
|
|
46
|
+
};
|
|
47
|
+
tokenizeFlow(definition: string, initialSeekIndex: number): Array<PLHighlightEngineToken>;
|
|
48
|
+
tokenizeSubstitution(definition: string, initialSeekIndex: number): Array<PLHighlightEngineToken>;
|
|
49
|
+
highlightSubstitution(_node: SyntaxNodeSubstitution, _definition: string, _initialSeekIndex: number): Array<PLHighlightEngineToken>;
|
|
50
|
+
updateKeywords(executionContext: PLExecutionContext): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare class PLBlueprintHighlightEngineState {
|
|
2
|
+
seekedIndex: number;
|
|
3
|
+
followsDot: boolean;
|
|
4
|
+
followsFunction: boolean;
|
|
5
|
+
followsFlowOpening: boolean;
|
|
6
|
+
followsSubstitutionOpening: boolean;
|
|
7
|
+
commentOpened: boolean;
|
|
8
|
+
snippetOpened: boolean;
|
|
9
|
+
bufferStart: number;
|
|
10
|
+
buffer: string;
|
|
11
|
+
fullString: string;
|
|
12
|
+
lineSeparator: string;
|
|
13
|
+
wordSeparator: string;
|
|
14
|
+
constructor(fullString: string);
|
|
15
|
+
resetAfterNewline(): void;
|
|
16
|
+
resetAfterSpace(): void;
|
|
17
|
+
resetAfterSubstitutionOpeningTag(): void;
|
|
18
|
+
resetAfterSubstitutionClosingTag(): void;
|
|
19
|
+
resetAfterFlowOpeningTag(): void;
|
|
20
|
+
resetAfterBracket(): void;
|
|
21
|
+
resetAfterFlowClosingTag(): void;
|
|
22
|
+
openComment(): void;
|
|
23
|
+
resetAfterClosingComment(): void;
|
|
24
|
+
openSnippet(): void;
|
|
25
|
+
resetAfterClosingSnippet(): void;
|
|
26
|
+
addToBuffer(character: string): void;
|
|
27
|
+
isBufferedNewline(): boolean;
|
|
28
|
+
isLastCharacterWordSeparator(): boolean;
|
|
29
|
+
isLastCharacterLineSeparator(): boolean;
|
|
30
|
+
isLastCharacterOpeningBracket(): boolean;
|
|
31
|
+
isLastCharacterClosingBracket(): boolean;
|
|
32
|
+
isLastCharacterQuote(): boolean;
|
|
33
|
+
isLastCharacterFunctionMark(): boolean;
|
|
34
|
+
lastBufferPart(size: number): string | null;
|
|
35
|
+
lastBufferPartIfEquals(equals: string): {
|
|
36
|
+
equals: boolean;
|
|
37
|
+
startIndex: number;
|
|
38
|
+
size: number;
|
|
39
|
+
} | null;
|
|
40
|
+
textAtPosition(position: number, length: number): string;
|
|
41
|
+
}
|