db5 0.6.30 → 0.7.0
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/package.json +1 -42
- package/README.md +0 -3
- package/bin/astnCompact.mjs +0 -3
- package/bin/astnExpand.mjs +0 -3
- package/dist/schemaHost.d.ts +0 -2
- package/dist/schemaHost.js +0 -8
- package/dist/schemaHost.js.map +0 -1
- package/dist/src/implementations/getSchemaSchemaBuilder.d.ts +0 -2
- package/dist/src/implementations/getSchemaSchemaBuilder.js +0 -33
- package/dist/src/implementations/getSchemaSchemaBuilder.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.d.ts +0 -13
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReference.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/index.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/generics/index.js +0 -15
- package/dist/src/implementations/inMemoryDataset/generics/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Global.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js +0 -13
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Root.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js +0 -55
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js +0 -467
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js +0 -243
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.d.ts +0 -35
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js +0 -215
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js +0 -14
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js +0 -72
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.d.ts +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js +0 -48
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js +0 -27
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.d.ts +0 -38
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js +0 -85
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js +0 -94
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.d.ts +0 -42
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js +0 -122
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js +0 -59
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.d.ts +0 -56
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js +0 -127
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.d.ts +0 -11
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.d.ts +0 -9
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.d.ts +0 -32
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js +0 -114
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js +0 -34
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.d.ts +0 -36
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js +0 -74
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.d.ts +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js +0 -68
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.d.ts +0 -0
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js +0 -99
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js +0 -238
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js +0 -175
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/index.js +0 -6
- package/dist/src/implementations/inMemoryDataset/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/types.d.ts +0 -45
- package/dist/src/implementations/inMemoryDataset/types.js +0 -3
- package/dist/src/implementations/inMemoryDataset/types.js.map +0 -1
- package/dist/src/implementations/index.d.ts +0 -3
- package/dist/src/implementations/index.js +0 -16
- package/dist/src/implementations/index.js.map +0 -1
- package/dist/src/implementations/makeNativeHTTPrequest.d.ts +0 -4
- package/dist/src/implementations/makeNativeHTTPrequest.js +0 -76
- package/dist/src/implementations/makeNativeHTTPrequest.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -16
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/SchemaHost.d.ts +0 -4
- package/dist/src/interfaces/SchemaHost.js +0 -3
- package/dist/src/interfaces/SchemaHost.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/asyncAPI.d.ts +0 -96
- package/dist/src/interfaces/asyncAPI/asyncAPI.js +0 -3
- package/dist/src/interfaces/asyncAPI/asyncAPI.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.d.ts +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.js +0 -14
- package/dist/src/interfaces/asyncAPI/generic/index.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/subscribables.d.ts +0 -15
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js +0 -3
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/index.d.ts +0 -2
- package/dist/src/interfaces/asyncAPI/index.js +0 -15
- package/dist/src/interfaces/asyncAPI/index.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -2
- package/dist/src/interfaces/index.js +0 -15
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.js +0 -106
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.d.ts +0 -24
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.js +0 -177
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.d.ts +0 -6
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.js +0 -102
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.d.ts +0 -14
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.js +0 -151
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.js +0 -68
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.d.ts +0 -7
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.js +0 -69
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.js +0 -60
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.js +0 -75
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.js +0 -64
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.d.ts +0 -3
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.js +0 -65
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.d.ts +0 -5
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.js +0 -44
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.js +0 -10
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.js.map +0 -1
- package/dist/src/parserSpecific/implementation/index.d.ts +0 -7
- package/dist/src/parserSpecific/implementation/index.js +0 -24
- package/dist/src/parserSpecific/implementation/index.js.map +0 -1
- package/dist/src/parserSpecific/index.d.ts +0 -2
- package/dist/src/parserSpecific/index.js +0 -15
- package/dist/src/parserSpecific/index.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/Dataset.d.ts +0 -27
- package/dist/src/parserSpecific/interfaces/Dataset.js +0 -10
- package/dist/src/parserSpecific/interfaces/Dataset.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.d.ts +0 -12
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.js +0 -6
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.d.ts +0 -3
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.js +0 -3
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.d.ts +0 -33
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.js +0 -3
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.d.ts +0 -11
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.js +0 -3
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.d.ts +0 -8
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.d.ts +0 -19
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.d.ts +0 -4
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.d.ts +0 -9
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/index.d.ts +0 -9
- package/dist/src/parserSpecific/interfaces/index.js +0 -22
- package/dist/src/parserSpecific/interfaces/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js +0 -113
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js +0 -110
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.d.ts +0 -45
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js +0 -405
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js +0 -98
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js +0 -387
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.d.ts +0 -6
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js +0 -84
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js +0 -131
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js +0 -233
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.d.ts +0 -64
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js.map +0 -1
- package/dist/tsbin/astnCompact.d.ts +0 -1
- package/dist/tsbin/astnCompact.js +0 -5
- package/dist/tsbin/astnCompact.js.map +0 -1
- package/dist/tsbin/astnExpand.d.ts +0 -1
- package/dist/tsbin/astnExpand.js +0 -5
- package/dist/tsbin/astnExpand.js.map +0 -1
- package/dist/tsbin/serialize.d.ts +0 -2
- package/dist/tsbin/serialize.js +0 -79
- package/dist/tsbin/serialize.js.map +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.createInternalSchemaBuilder = exports.createSchemaAndSideEffects = void 0;
|
|
23
|
-
const astncore = __importStar(require("astn-core"));
|
|
24
|
-
const createDeserializer_1 = require("./createDeserializer");
|
|
25
|
-
const createTypedParserDefinitions_1 = require("./createTypedParserDefinitions");
|
|
26
|
-
const p = __importStar(require("pareto-20"));
|
|
27
|
-
const sideEffects = __importStar(require("./sideEffects"));
|
|
28
|
-
function createSchemaAndSideEffects(onSchemaError) {
|
|
29
|
-
const isb = createInternalSchemaBuilder(onSchemaError);
|
|
30
|
-
return {
|
|
31
|
-
onData: (data) => {
|
|
32
|
-
return isb.onData(data);
|
|
33
|
-
},
|
|
34
|
-
onEnd: (aborted, endAnnotation) => {
|
|
35
|
-
return isb.onEnd(aborted, endAnnotation).mapResult(schema => {
|
|
36
|
-
return p.value({
|
|
37
|
-
schema: createTypedParserDefinitions_1.convertToGenericSchema(schema),
|
|
38
|
-
createStreamingValidator: (onValidationError) => sideEffects.createRoot(schema, onValidationError),
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.createSchemaAndSideEffects = createSchemaAndSideEffects;
|
|
45
|
-
function createInternalSchemaBuilder(onSchemaError) {
|
|
46
|
-
let foundError = false;
|
|
47
|
-
let metaData = null;
|
|
48
|
-
function onSchemaSchemaError(error, annotation) {
|
|
49
|
-
onSchemaError(error, annotation);
|
|
50
|
-
foundError = true;
|
|
51
|
-
}
|
|
52
|
-
function onSchemaError2(error, annotation) {
|
|
53
|
-
onSchemaError(["internal schema", error], annotation);
|
|
54
|
-
foundError = true;
|
|
55
|
-
}
|
|
56
|
-
return astncore.createStackedParser({
|
|
57
|
-
root: {
|
|
58
|
-
exists: createDeserializer_1.createDeserializer((errorMessage, range) => {
|
|
59
|
-
onSchemaSchemaError(["expect", errorMessage], range);
|
|
60
|
-
}, (message, range) => {
|
|
61
|
-
onSchemaSchemaError(["validation", { message: message }], range);
|
|
62
|
-
}, md2 => {
|
|
63
|
-
metaData = md2;
|
|
64
|
-
}, () => p.value(null)),
|
|
65
|
-
missing: () => {
|
|
66
|
-
//
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
}, error => {
|
|
70
|
-
onSchemaError2(["stacked", error.type], error.annotation);
|
|
71
|
-
}, () => {
|
|
72
|
-
if (metaData === null) {
|
|
73
|
-
if (!foundError) {
|
|
74
|
-
throw new Error("UNEXPECTED: NO SCHEMA AND NO ERRORS");
|
|
75
|
-
}
|
|
76
|
-
return p.error(null);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return p.success(metaData);
|
|
80
|
-
}
|
|
81
|
-
}, () => astncore.createDummyValueHandler(() => p.value(null)));
|
|
82
|
-
}
|
|
83
|
-
exports.createInternalSchemaBuilder = createInternalSchemaBuilder;
|
|
84
|
-
//# sourceMappingURL=createSchemaAndSideEffects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createSchemaAndSideEffects.js","sourceRoot":"","sources":["../../../../../../src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,6DAAyD;AAEzD,iFAAuE;AACvE,6CAA8B;AAC9B,2DAA4C;AAK5C,SAAgB,0BAA0B,CACtC,aAA0F;IAE1F,MAAM,GAAG,GAAG,2BAA2B,CAAC,aAAa,CAAC,CAAA;IACtD,OAAO;QACH,MAAM,EAAE,CAAC,IAA2C,EAAqB,EAAE;YACvE,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC3B,CAAC;QACD,KAAK,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE;YAC9B,OAAO,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CAAC,KAAK,CAAC,IAAI,CAAC,CACtB;YACD,OAAO,EAAE,GAAG,EAAE;gBACV,EAAE;YACN,CAAC;SACJ;KACJ,EACD,KAAK,CAAC,EAAE;QACJ,cAAc,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7D,CAAC,EAED,GAAmC,EAAE;QACjC,IAAI,QAAQ,KAAK,IAAI,EAAE;YACnB,IAAI,CAAC,UAAU,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;aACzD;YACD,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;SACvB;aAAM;YACH,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;SAC7B;IACL,CAAC,EACD,GAAG,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAC9D,CAAA;AACL,CAAC;AApDD,kEAoDC"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertToGenericSchema = void 0;
|
|
4
|
-
const Reference_1 = require("./Reference");
|
|
5
|
-
const Dictionary_1 = require("./Dictionary");
|
|
6
|
-
function assertUnreachable(_x) {
|
|
7
|
-
throw new Error("Unreachable");
|
|
8
|
-
}
|
|
9
|
-
function convertToGenericNode(node, componentTypes, keyProperty, resolveRegistry) {
|
|
10
|
-
const properties = Dictionary_1.createDictionary({});
|
|
11
|
-
node.properties.forEach((prop, key) => {
|
|
12
|
-
if (prop === keyProperty) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
properties.add(key, {
|
|
16
|
-
type: (() => {
|
|
17
|
-
switch (prop.type[0]) {
|
|
18
|
-
case "collection": {
|
|
19
|
-
const $ = prop.type[1];
|
|
20
|
-
switch ($.type[0]) {
|
|
21
|
-
case "dictionary": {
|
|
22
|
-
const $$ = $.type[1];
|
|
23
|
-
const targetNode = convertToGenericNode($.node, componentTypes, $$["key property"].get(), resolveRegistry);
|
|
24
|
-
const foo = $$["key property"].get();
|
|
25
|
-
if (foo.type[0] !== "value") {
|
|
26
|
-
throw new Error("unexpected");
|
|
27
|
-
}
|
|
28
|
-
return ["dictionary", {
|
|
29
|
-
"node": targetNode,
|
|
30
|
-
"key": {
|
|
31
|
-
"default value": foo.type[1]["default value"],
|
|
32
|
-
"quoted": (() => {
|
|
33
|
-
switch (foo.type[1].type[0]) {
|
|
34
|
-
case "boolean":
|
|
35
|
-
return false;
|
|
36
|
-
case "number":
|
|
37
|
-
return false;
|
|
38
|
-
case "string":
|
|
39
|
-
return true;
|
|
40
|
-
default:
|
|
41
|
-
return assertUnreachable(foo.type[1].type[0]);
|
|
42
|
-
}
|
|
43
|
-
})(),
|
|
44
|
-
},
|
|
45
|
-
// "key property": createReference($$["key property"].name, targetNode.properties, resolveRegistry, keys => {
|
|
46
|
-
// throw new Error(`UNEXPECTED: KEY Property not found: ${$$["key property"].name}, available keys: ${keys.join()}`);
|
|
47
|
-
// }),
|
|
48
|
-
}];
|
|
49
|
-
}
|
|
50
|
-
case "list": {
|
|
51
|
-
const targetNode = convertToGenericNode($.node, componentTypes, null, resolveRegistry);
|
|
52
|
-
return ["list", {
|
|
53
|
-
node: targetNode,
|
|
54
|
-
}];
|
|
55
|
-
}
|
|
56
|
-
default:
|
|
57
|
-
return assertUnreachable($.type[0]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
case "component": {
|
|
61
|
-
const $ = prop.type[1];
|
|
62
|
-
return ["component", {
|
|
63
|
-
type: Reference_1.createReference($.type.name, componentTypes, resolveRegistry, () => {
|
|
64
|
-
throw new Error("UNEXPECTED");
|
|
65
|
-
}),
|
|
66
|
-
}];
|
|
67
|
-
}
|
|
68
|
-
case "state group": {
|
|
69
|
-
const $ = prop.type[1];
|
|
70
|
-
const states = Dictionary_1.createDictionary($.states.map(state => {
|
|
71
|
-
return {
|
|
72
|
-
node: convertToGenericNode(state.node, componentTypes, null, resolveRegistry),
|
|
73
|
-
};
|
|
74
|
-
}));
|
|
75
|
-
return ["tagged union", {
|
|
76
|
-
"options": states,
|
|
77
|
-
"default option": Reference_1.createReference($["default state"].name, states, resolveRegistry, keys => {
|
|
78
|
-
throw new Error(`UNEXPECTED: KEY state not found: ${$["default state"].name}, available keys: ${keys.join()}`);
|
|
79
|
-
}),
|
|
80
|
-
}];
|
|
81
|
-
}
|
|
82
|
-
case "value": {
|
|
83
|
-
const $ = prop.type[1];
|
|
84
|
-
return ["simple string", {
|
|
85
|
-
"default value": $["default value"],
|
|
86
|
-
"quoted": (() => {
|
|
87
|
-
switch ($.type[0]) {
|
|
88
|
-
case "boolean":
|
|
89
|
-
return false;
|
|
90
|
-
case "number":
|
|
91
|
-
return false;
|
|
92
|
-
case "string":
|
|
93
|
-
return true;
|
|
94
|
-
default:
|
|
95
|
-
return assertUnreachable($.type[0]);
|
|
96
|
-
}
|
|
97
|
-
})(),
|
|
98
|
-
}];
|
|
99
|
-
}
|
|
100
|
-
default:
|
|
101
|
-
return assertUnreachable(prop.type[0]);
|
|
102
|
-
}
|
|
103
|
-
})(),
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
return {
|
|
107
|
-
properties: properties,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function convertToGenericSchema(schema) {
|
|
111
|
-
const resolveRegistry = new Reference_1.ResolveRegistry();
|
|
112
|
-
const componentTypes = Dictionary_1.createDictionary({});
|
|
113
|
-
schema["component types"].forEach((ct, ctName) => {
|
|
114
|
-
componentTypes.add(ctName, {
|
|
115
|
-
node: convertToGenericNode(ct.node, componentTypes, null, resolveRegistry),
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
const rootType = Reference_1.createReference(schema["root type"].name, componentTypes, resolveRegistry, () => {
|
|
119
|
-
throw new Error("UNEXPECTED");
|
|
120
|
-
});
|
|
121
|
-
const success = resolveRegistry.resolve();
|
|
122
|
-
if (!success) {
|
|
123
|
-
throw new Error("UNEXPECTED");
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
"component types": componentTypes,
|
|
127
|
-
"root type": rootType,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
exports.convertToGenericSchema = convertToGenericSchema;
|
|
131
|
-
//# sourceMappingURL=createTypedParserDefinitions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createTypedParserDefinitions.js","sourceRoot":"","sources":["../../../../../../src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.ts"],"names":[],"mappings":";;;AACA,2CAGoB;AACpB,6CAEqB;AAGrB,SAAS,iBAAiB,CAAK,EAAS;IACpC,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;AAClC,CAAC;AAED,SAAS,oBAAoB,CACzB,IAAU,EAAE,cAA0E,EACtF,WAA4B,EAC5B,eAAgC;IAEhC,MAAM,UAAU,GAAG,6BAAgB,CAA8B,EAAE,CAAC,CAAA;IACpE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QAClC,IAAI,IAAI,KAAK,WAAW,EAAE;YACtB,OAAM;SACT;QACD,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;YAChB,IAAI,EAAE,CAAC,GAAoC,EAAE;gBACzC,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;oBAClB,KAAK,YAAY,CAAC,CAAC;wBACf,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;wBACtB,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;4BACf,KAAK,YAAY,CAAC,CAAC;gCACf,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;gCACpB,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AAE;QACV,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAA;KAChC;IACD,OAAO;QACH,iBAAiB,EAAE,cAAc;QACjC,WAAW,EAAE,QAAQ;KACxB,CAAA;AACL,CAAC;AAnBD,wDAmBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./createSchemaAndSideEffects"), exports);
|
|
14
|
-
__exportStar(require("./types"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/schemas/mrshl/schemaschema@0.1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4C;AAC5C,0CAAuB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as t from "./types";
|
|
2
|
-
import * as astncore from "astn-core";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export declare function createRoot<Annotation>(schema: t.Schema, onError: (message: string, annotation: Annotation, severity: astncore.DiagnosticSeverity) => void): astncore.RootHandler<Annotation>;
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint
|
|
3
|
-
"max-classes-per-file": off,
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.createRoot = void 0;
|
|
29
|
-
const astncore = __importStar(require("astn-core"));
|
|
30
|
-
__exportStar(require("./types"), exports);
|
|
31
|
-
function assertUnreachable(_x) {
|
|
32
|
-
throw new Error("unreachable");
|
|
33
|
-
}
|
|
34
|
-
function createDictionary(_definition, collectionDefinition, onError) {
|
|
35
|
-
return {
|
|
36
|
-
onClose: () => {
|
|
37
|
-
//
|
|
38
|
-
},
|
|
39
|
-
onEntry: () => {
|
|
40
|
-
return createNode(collectionDefinition.node, onError);
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function createList(_definition, collectionDefinition, onError) {
|
|
45
|
-
return {
|
|
46
|
-
onEntry: () => {
|
|
47
|
-
return createNode(collectionDefinition.node, onError);
|
|
48
|
-
},
|
|
49
|
-
onClose: () => {
|
|
50
|
-
//
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function createStateGroup(definition, onError) {
|
|
55
|
-
return {
|
|
56
|
-
onUnexpectedOption: () => {
|
|
57
|
-
//
|
|
58
|
-
},
|
|
59
|
-
onOption: $ => {
|
|
60
|
-
const state = definition.states.getUnsafe($.data.optionString.value);
|
|
61
|
-
return createNode(state.node, onError);
|
|
62
|
-
},
|
|
63
|
-
// onUnexpectedOption: () => {
|
|
64
|
-
// //
|
|
65
|
-
// },
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function createProp(name, nodedefinition, onError) {
|
|
69
|
-
return {
|
|
70
|
-
onDictionary: () => {
|
|
71
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
72
|
-
if (prop.type[0] !== "collection") {
|
|
73
|
-
throw new Error("unexpected");
|
|
74
|
-
}
|
|
75
|
-
const $ = prop.type[1];
|
|
76
|
-
if ($.type[0] !== "dictionary") {
|
|
77
|
-
throw new Error("unexpected");
|
|
78
|
-
}
|
|
79
|
-
return createDictionary($.type[1], $, onError);
|
|
80
|
-
},
|
|
81
|
-
onList: () => {
|
|
82
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
83
|
-
if (prop.type[0] !== "collection") {
|
|
84
|
-
throw new Error("unexpected");
|
|
85
|
-
}
|
|
86
|
-
const $ = prop.type[1];
|
|
87
|
-
if ($.type[0] !== "list") {
|
|
88
|
-
throw new Error("unexpected");
|
|
89
|
-
}
|
|
90
|
-
return createList($.type[1], $, onError);
|
|
91
|
-
},
|
|
92
|
-
onTaggedUnion: () => {
|
|
93
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
94
|
-
if (prop.type[0] !== "state group") {
|
|
95
|
-
throw new Error("unexpected");
|
|
96
|
-
}
|
|
97
|
-
const $ = prop.type[1];
|
|
98
|
-
return createStateGroup($, onError);
|
|
99
|
-
},
|
|
100
|
-
onComponent: () => {
|
|
101
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
102
|
-
if (prop.type[0] !== "component") {
|
|
103
|
-
throw new Error("unexpected");
|
|
104
|
-
}
|
|
105
|
-
const $ = prop.type[1];
|
|
106
|
-
return createNode($.type.get().node, onError);
|
|
107
|
-
},
|
|
108
|
-
onNull: () => {
|
|
109
|
-
//
|
|
110
|
-
},
|
|
111
|
-
onMultilineString: _$ => {
|
|
112
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
113
|
-
if (prop.type[0] !== "value") {
|
|
114
|
-
throw new Error("unexpected");
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
onSimpleString: $ => {
|
|
118
|
-
const prop = nodedefinition.properties.getUnsafe(name);
|
|
119
|
-
if (prop.type[0] !== "value") {
|
|
120
|
-
throw new Error("unexpected");
|
|
121
|
-
}
|
|
122
|
-
const $$ = prop.type[1];
|
|
123
|
-
switch ($$.type[0]) {
|
|
124
|
-
case "boolean": {
|
|
125
|
-
if ($.data.wrapping[0] !== "none") {
|
|
126
|
-
onError(`expected a boolean, found a quoted string`, $.annotation.annotation, astncore.DiagnosticSeverity.error);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
const val = $.data.value;
|
|
130
|
-
if (val !== "true" && val !== "false") {
|
|
131
|
-
onError(`value '${val}' is not a boolean`, $.annotation.annotation, astncore.DiagnosticSeverity.error);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
case "number": {
|
|
137
|
-
if ($.data.wrapping[0] !== "none") {
|
|
138
|
-
onError(`expected a number, found a wrapped string`, $.annotation.annotation, astncore.DiagnosticSeverity.error);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
const val = $.data.value;
|
|
142
|
-
//eslint-disable-next-line no-new-wrappers
|
|
143
|
-
if (isNaN(new Number(val).valueOf())) {
|
|
144
|
-
onError(`value '${val}' is not a number`, $.annotation.annotation, astncore.DiagnosticSeverity.error);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
case "string": {
|
|
150
|
-
if ($.data.wrapping[0] === "none") {
|
|
151
|
-
onError(`expected a quoted string`, $.annotation.annotation, astncore.DiagnosticSeverity.error);
|
|
152
|
-
}
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
default:
|
|
156
|
-
assertUnreachable($$.type[0]);
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
onShorthandTypeOpen: () => {
|
|
160
|
-
throw new Error("unexpected");
|
|
161
|
-
},
|
|
162
|
-
onVerboseTypeOpen: () => {
|
|
163
|
-
throw new Error("unexpected");
|
|
164
|
-
},
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function createShorthandType(definition, onError) {
|
|
168
|
-
return {
|
|
169
|
-
onProperty: $ => {
|
|
170
|
-
return createProp($.annotation.propKey, definition, onError);
|
|
171
|
-
},
|
|
172
|
-
onShorthandTypeClose: () => {
|
|
173
|
-
//
|
|
174
|
-
},
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function createType(definition, onError) {
|
|
178
|
-
return {
|
|
179
|
-
onUnexpectedProperty: () => {
|
|
180
|
-
//
|
|
181
|
-
},
|
|
182
|
-
onProperty: $ => {
|
|
183
|
-
return createProp($.data.keyString.value, definition, onError);
|
|
184
|
-
},
|
|
185
|
-
// onUnexpectedProperty: () => {
|
|
186
|
-
// //
|
|
187
|
-
// },
|
|
188
|
-
onVerboseTypeClose: () => {
|
|
189
|
-
//
|
|
190
|
-
},
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
function createNode(definition, onError) {
|
|
194
|
-
return {
|
|
195
|
-
onDictionary: () => {
|
|
196
|
-
throw new Error("unexpected");
|
|
197
|
-
},
|
|
198
|
-
onList: () => {
|
|
199
|
-
throw new Error("unexpected");
|
|
200
|
-
},
|
|
201
|
-
onTaggedUnion: () => {
|
|
202
|
-
throw new Error("unexpected");
|
|
203
|
-
},
|
|
204
|
-
onComponent: () => {
|
|
205
|
-
throw new Error("unexpected");
|
|
206
|
-
},
|
|
207
|
-
onNull: () => {
|
|
208
|
-
throw new Error("unexpected");
|
|
209
|
-
},
|
|
210
|
-
onMultilineString: _$ => {
|
|
211
|
-
throw new Error("unexpected");
|
|
212
|
-
},
|
|
213
|
-
onSimpleString: _$ => {
|
|
214
|
-
throw new Error("unexpected");
|
|
215
|
-
},
|
|
216
|
-
onShorthandTypeOpen: () => {
|
|
217
|
-
return createShorthandType(definition, onError);
|
|
218
|
-
},
|
|
219
|
-
onVerboseTypeOpen: () => {
|
|
220
|
-
return createType(definition, onError);
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
function createRoot(schema, onError) {
|
|
225
|
-
return {
|
|
226
|
-
root: createNode(schema["root type"].get().node, onError),
|
|
227
|
-
onEnd: () => {
|
|
228
|
-
//
|
|
229
|
-
},
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
exports.createRoot = createRoot;
|
|
233
|
-
//# sourceMappingURL=sideEffects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sideEffects.js","sourceRoot":"","sources":["../../../../../../src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.ts"],"names":[],"mappings":";AAAA;;EAEE;;;;;;;;;;;;;;;;;;;;;;;;;AAGF,oDAAqC;AAErC,0CAAuB;AAEvB,SAAS,iBAAiB,CAAK,EAAS;IACpC,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;AAClC,CAAC;AAED,SAAS,gBAAgB,CACrB,WAAyB,EACzB,oBAAkC,EAClC,OAAiG;IAEjG,OAAO;QACH,OAAO,EAAE,GAAG,EAAE;YACV,EAAE;QACN,CAAC;QACD,OAAO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AAY,CAAC,CAAA;QACjC,CAAC;QACD,cAAc,EAAE,EAAE,CAAC,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAA;QACjC,CAAC;QACD,mBAAmB,EAAE,GAAG,EAAE;YACtB,OAAO,mBAAmB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;QACnD,CAAC;QACD,iBAAiB,EAAE,GAAG,EAAE;YACpB,OAAO,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;QAC1C,CAAC;KACJ,CAAA;AACL,CAAC;AAED,SAAgB,UAAU,CACtB,MAAgB,EAChB,OAAiG;IAEjG,OAAO;QACH,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC;QACzD,KAAK,EAAE,GAAG,EAAE;YACR,EAAE;QACN,CAAC;KACJ,CAAA;AACL,CAAC;AAVD,gCAUC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export interface IReference<T> {
|
|
2
|
-
get(): T;
|
|
3
|
-
readonly name: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IReadonlyLookup<T> {
|
|
6
|
-
getUnsafe(key: string): T;
|
|
7
|
-
get(key: string): T | null;
|
|
8
|
-
getKeys(): string[];
|
|
9
|
-
}
|
|
10
|
-
export declare type RawObject<T> = {
|
|
11
|
-
[key: string]: T;
|
|
12
|
-
};
|
|
13
|
-
export interface IReadonlyDictionary<T> extends IReadonlyLookup<T> {
|
|
14
|
-
forEach(callback: (entry: T, key: string) => void): void;
|
|
15
|
-
map<RT>(callback: (entry: T) => RT): RawObject<RT>;
|
|
16
|
-
toArray<RT>(callback: (entry: T, key: string) => RT): RT[];
|
|
17
|
-
}
|
|
18
|
-
export declare type CollectionType = ["dictionary", Dictionary] | ["list", List];
|
|
19
|
-
export declare type Collection = {
|
|
20
|
-
readonly "node": Node;
|
|
21
|
-
readonly "type": CollectionType;
|
|
22
|
-
};
|
|
23
|
-
export declare type Component = {
|
|
24
|
-
readonly "type": IReference<ComponentType>;
|
|
25
|
-
};
|
|
26
|
-
export declare type ComponentType = {
|
|
27
|
-
readonly "node": Node;
|
|
28
|
-
};
|
|
29
|
-
export declare type Dictionary = {
|
|
30
|
-
readonly "key property": IReference<Property>;
|
|
31
|
-
};
|
|
32
|
-
export declare type List = {};
|
|
33
|
-
export declare type Node = {
|
|
34
|
-
readonly "properties": IReadonlyDictionary<Property>;
|
|
35
|
-
};
|
|
36
|
-
export declare type Property = {
|
|
37
|
-
readonly "type": PropertyType;
|
|
38
|
-
};
|
|
39
|
-
export declare type PropertyType = ["value", Value] | ["component", Component] | ["collection", Collection] | ["state group", StateGroup];
|
|
40
|
-
export declare type Schema = {
|
|
41
|
-
readonly "component types": IReadonlyDictionary<ComponentType>;
|
|
42
|
-
readonly "root type": IReference<ComponentType>;
|
|
43
|
-
};
|
|
44
|
-
export declare type State = {
|
|
45
|
-
readonly "node": Node;
|
|
46
|
-
};
|
|
47
|
-
export declare type StateGroup = {
|
|
48
|
-
readonly "states": IReadonlyDictionary<State>;
|
|
49
|
-
readonly "default state": IReference<State>;
|
|
50
|
-
};
|
|
51
|
-
export declare type ValueType = [
|
|
52
|
-
"string",
|
|
53
|
-
{}
|
|
54
|
-
] | [
|
|
55
|
-
"number",
|
|
56
|
-
{}
|
|
57
|
-
] | [
|
|
58
|
-
"boolean",
|
|
59
|
-
{}
|
|
60
|
-
];
|
|
61
|
-
export declare type Value = {
|
|
62
|
-
readonly "type": ValueType;
|
|
63
|
-
readonly "default value": string;
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/plugins/schemas/mrshl/schemaschema@0.1/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astnCompact.js","sourceRoot":"","sources":["../../tsbin/astnCompact.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AAExC,qBAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/tsbin/astnExpand.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astnExpand.js","sourceRoot":"","sources":["../../tsbin/astnExpand.ts"],"names":[],"mappings":";;AAAA,2CAAwC;AAExC,qBAAS,CAAC,CAAC,UAAU,EAAE,EAAE,+BAA+B,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA"}
|