astn 0.97.0 → 0.98.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/dist/{pub/esc/legacy/tsbin → esc/bin}/normalizeFile.d.ts +0 -0
- package/dist/esc/bin/normalizeFile.js +5 -0
- package/dist/{pub/esc/legacy/tsbin → esc/bin}/toJSON.d.ts +0 -0
- package/dist/esc/bin/toJSON.js +5 -0
- package/dist/{pub/esc → esc}/legacy/notSureYet/formatCLI.d.ts +4 -4
- package/dist/esc/legacy/notSureYet/formatCLI.js +30 -0
- package/dist/{pub/esc → esc}/legacy/notSureYet/normalizeText.d.ts +1 -1
- package/dist/esc/legacy/notSureYet/normalizeText.js +7 -0
- package/dist/{pub/esc → esc}/legacy/notSureYet/toJSON.d.ts +1 -1
- package/dist/esc/legacy/notSureYet/toJSON.js +7 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IChunk.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IChunk.js +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/ILocationState.d.ts +3 -3
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/ILocationState.js +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenStreamConsumer.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenStreamConsumer.js +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenizer.d.ts +4 -4
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenizer.js +0 -0
- package/dist/modules/astn/esc/implementation/PreToken.d.ts +44 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/PreToken.js +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/TokenizerOptions.d.ts +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/TokenizerOptions.js +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createASTNNormalizer.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createASTNNormalizer.js +5 -20
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createASTNSerializer.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createASTNSerializer.js +3 -4
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createAnnotater.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createAnnotater.js +12 -8
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createExpectContext.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createExpectContext.js +6 -22
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createFlattener.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createFlattener.js +13 -12
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createJSONFormatter.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createJSONFormatter.js +15 -11
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createJSONSerializer.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createJSONSerializer.js +3 -4
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createPreTokenizer.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createPreTokenizer.js +10 -26
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createStreamPreTokenizer.d.ts +3 -3
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createStreamPreTokenizer.js +2 -3
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createStructureParser.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createStructureParser.js +19 -18
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTokenizer.d.ts +4 -4
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTokenizer.js +1 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTokenizer2.d.ts +3 -3
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTokenizer2.js +16 -11
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTreeParser.d.ts +2 -2
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createTreeParser.js +15 -34
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/dummyHandlers.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/dummyHandlers.js +0 -1
- package/dist/modules/astn/esc/implementation/expect2.d.ts +5 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/expect2.js +9 -5
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/getEndLocationFromRange.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/getEndLocationFromRange.js +0 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/index.d.ts +1 -1
- package/dist/modules/astn/esc/implementation/index.js +25 -0
- package/dist/modules/astn/esc/implementation/printExpectIssue.d.ts +2 -0
- package/dist/{pub/esc/implementations/_astn/printExpectError.js → modules/astn/esc/implementation/printExpectIssue.js} +14 -10
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printExpectedValue.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printExpectedValue.js +9 -5
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printLocation.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printLocation.js +0 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printRange.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printRange.js +0 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printStructureError.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printStructureError.js +9 -5
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printTokenError.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printTokenError.js +9 -5
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printTokenizerError.d.ts +1 -1
- package/dist/modules/astn/esc/implementation/printTokenizerError.js +27 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printTreeParserError.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/printTreeParserError.js +11 -7
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/stringSerialization.d.ts +0 -0
- package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/stringSerialization.js +2 -15
- package/dist/modules/astn/esc/index.d.ts +1 -0
- package/dist/modules/astn/esc/index.js +6 -0
- package/dist/modules/astn/index.d.ts +2 -0
- package/dist/modules/astn/index.js +6 -0
- package/dist/modules/astn/interface/index.d.ts +18 -0
- package/dist/{pub/esc/interfaces/astn/CreateASTNNormalizer.js → modules/astn/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateASTNNormalizer.d.ts +2 -2
- package/dist/{pub/esc/interfaces/astn/CreateDummyTreeHandler.js → modules/astn/interface/interfaces/CreateASTNNormalizer.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateDummyTreeHandler.d.ts +1 -1
- package/dist/{pub/esc/interfaces/astn/CreateDummyTypedHandler.js → modules/astn/interface/interfaces/CreateDummyTreeHandler.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateDummyTypedHandler.d.ts +1 -1
- package/dist/{pub/esc/interfaces/astn/CreateExpectContext.js → modules/astn/interface/interfaces/CreateDummyTypedHandler.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateExpectContext.d.ts +1 -2
- package/dist/{pub/esc/interfaces/astn/CreateFormatter.js → modules/astn/interface/interfaces/CreateExpectContext.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateFormatter.d.ts +1 -1
- package/dist/{pub/esc/interfaces/astn/CreateStructureParser.js → modules/astn/interface/interfaces/CreateFormatter.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateStructureParser.d.ts +2 -2
- package/dist/{pub/esc/interfaces/astn/CreateTokenizer.js → modules/astn/interface/interfaces/CreateStructureParser.js} +0 -0
- package/dist/modules/astn/interface/interfaces/CreateTokenizer.d.ts +15 -0
- package/dist/{pub/esc/interfaces/astn/CreateTreeParser.js → modules/astn/interface/interfaces/CreateTokenizer.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/CreateTreeParser.d.ts +3 -3
- package/dist/{pub/esc/interfaces/astn/ExpectIssue.js → modules/astn/interface/interfaces/CreateTreeParser.js} +0 -0
- package/dist/modules/astn/interface/interfaces/ExpectIssue.d.ts +28 -0
- package/dist/{pub/esc/interfaces/astn/ExpectedValue.js → modules/astn/interface/interfaces/ExpectIssue.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/IExpectContext.d.ts +4 -4
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/IExpectContext.js +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/IStructureErrorHandler.d.ts +1 -1
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/IStructureErrorHandler.js +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/OnExpectIssue.d.ts +1 -1
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/interfaces}/OnExpectIssue.js +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/types}/ExpectedValue.d.ts +2 -2
- package/dist/{pub/esc/interfaces/astn/TokenError.js → modules/astn/interface/types/ExpectedValue.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/types}/StructureError.d.ts +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/types}/StructureError.js +0 -0
- package/dist/modules/astn/interface/types/TokenError.d.ts +7 -0
- package/dist/{pub/esc/interfaces/astn/TokenizerError.js → modules/astn/interface/types/TokenError.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/types}/TokenizerError.d.ts +0 -0
- package/dist/{pub/esc/interfaces/astn/TreeParserError.js → modules/astn/interface/types/TokenizerError.js} +0 -0
- package/dist/{pub/esc/interfaces/astn → modules/astn/interface/types}/TreeParserError.d.ts +3 -6
- package/dist/{pub/esc/interfaces/etc/CreateStreamConsumer.js → modules/astn/interface/types/TreeParserError.js} +0 -0
- package/dist/modules/astn/interface/types/expect.d.ts +2 -0
- package/dist/{pub/esc/interfaces/etc/DiagnosticSeverity.js → modules/astn/interface/types/expect.js} +0 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createASTNUnmarshaller.d.ts +8 -8
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createASTNUnmarshaller.js +13 -17
- package/dist/modules/astnTyped/esc/implementation/createBuilder.d.ts +3 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createBuilder.js +0 -1
- package/dist/modules/astnTyped/esc/implementation/createCodeCompletionFinder.d.ts +5 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createCodeCompletionFinder.js +3 -4
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createCodeCompletionsGenerator.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createCodeCompletionsGenerator.js +13 -32
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createDummyTypedHandler.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createDummyTypedHandler.js +0 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createExternalSchemaLoader.d.ts +8 -8
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createExternalSchemaLoader.js +1 -2
- package/dist/modules/astnTyped/esc/implementation/createHoverTextFinder.d.ts +7 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createHoverTextFinder.js +3 -4
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createHoverTextsGenerator.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createHoverTextsGenerator.js +11 -10
- package/dist/modules/astnTyped/esc/implementation/createMarshallInterface.d.ts +3 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createMarshallInterface.js +2 -15
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createProcessorForASTNStreamWithContext.d.ts +5 -5
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createProcessorForASTNStreamWithContext.js +9 -5
- package/dist/modules/astnTyped/esc/implementation/createSchemaHandler.d.ts +6 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createSchemaHandler.js +0 -1
- package/dist/modules/astnTyped/esc/implementation/createTreeUnmarshaller.d.ts +12 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createTreeUnmarshaller.js +2 -3
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createTypedForker.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createTypedForker.js +0 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createValueUnmarshaller.d.ts +9 -9
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/createValueUnmarshaller.js +7 -26
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/index.d.ts +0 -0
- package/dist/modules/astnTyped/esc/implementation/index.js +20 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/isPositionBeforeLocation.d.ts +1 -1
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/isPositionBeforeLocation.js +0 -1
- package/dist/modules/astnTyped/esc/implementation/marshall.d.ts +20 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/marshall.js +17 -13
- package/dist/modules/astnTyped/esc/implementation/printContextSchemaError.d.ts +2 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/printContextSchemaError.js +9 -5
- package/dist/modules/astnTyped/esc/implementation/printDeserializeDiagnostic.d.ts +2 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/printDeserializeDiagnostic.js +11 -7
- package/dist/modules/astnTyped/esc/implementation/printSchemaDeserializationError.d.ts +2 -0
- package/dist/modules/astnTyped/esc/implementation/printSchemaDeserializationError.js +26 -0
- package/dist/modules/astnTyped/esc/implementation/printSchemaSchemaError.d.ts +2 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/printSchemaSchemaError.js +10 -6
- package/dist/modules/astnTyped/esc/implementation/printUnmarshallError.d.ts +2 -0
- package/dist/{pub/esc/implementations/_astnTyped → modules/astnTyped/esc/implementation}/printUnmarshallError.js +10 -6
- package/dist/modules/astnTyped/esc/index.d.ts +1 -0
- package/dist/modules/astnTyped/esc/index.js +6 -0
- package/dist/modules/astnTyped/index.d.ts +1 -0
- package/dist/modules/astnTyped/index.js +6 -0
- package/dist/{pub/esc/implementations/_etc → modules/etc/esc/implementation}/index.d.ts +0 -0
- package/dist/modules/etc/esc/implementation/index.js +6 -0
- package/dist/{pub/esc/implementations/_etc → modules/etc/esc/implementation}/runProgram.d.ts +1 -1
- package/dist/modules/etc/esc/implementation/runProgram.js +17 -0
- package/dist/modules/etc/esc/index.d.ts +1 -0
- package/dist/modules/etc/esc/index.js +6 -0
- package/dist/modules/etc/index.d.ts +2 -0
- package/dist/modules/etc/index.js +6 -0
- package/dist/modules/etc/interface/index.d.ts +4 -0
- package/dist/{pub/esc/interfaces/etc/IResourceProvider.js → modules/etc/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/etc → modules/etc/interface/interfaces}/CreateStreamConsumer.d.ts +0 -0
- package/dist/{pub/esc/interfaces/etc/IStreamConsumer.js → modules/etc/interface/interfaces/CreateStreamConsumer.js} +0 -0
- package/dist/{pub/esc/interfaces/etc → modules/etc/interface/interfaces}/IResourceProvider.d.ts +3 -3
- package/dist/{pub/esc/interfaces/etc/RetrievalError.js → modules/etc/interface/interfaces/IResourceProvider.js} +0 -0
- package/dist/{pub/esc/interfaces/etc → modules/etc/interface/interfaces}/IStreamConsumer.d.ts +2 -2
- package/dist/{pub/esc/interfaces/grammar/AnnotatedToken.js → modules/etc/interface/interfaces/IStreamConsumer.js} +0 -0
- package/dist/{pub/esc/interfaces/etc → modules/etc/interface/types}/DiagnosticSeverity.d.ts +0 -0
- package/dist/{pub/esc/interfaces/grammar/ContentToken.js → modules/etc/interface/types/DiagnosticSeverity.js} +0 -0
- package/dist/modules/etc/interface/types/RetrievalError.d.ts +3 -0
- package/dist/{pub/esc/interfaces/grammar/CreateAnnotater.js → modules/etc/interface/types/RetrievalError.js} +0 -0
- package/dist/modules/grammar/index.d.ts +1 -0
- package/dist/{pub/esc/interfaces/grammar/IAnnotatedHandler.js → modules/grammar/index.js} +0 -0
- package/dist/modules/grammar/interface/index.d.ts +11 -0
- package/dist/{pub/esc/interfaces/grammar/IContentParser.js → modules/grammar/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/interfaces}/CreateAnnotater.d.ts +0 -0
- package/dist/{pub/esc/interfaces/grammar/IStructureHandler.js → modules/grammar/interface/interfaces/CreateAnnotater.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/interfaces}/IAnnotatedHandler.d.ts +4 -4
- package/dist/{pub/esc/interfaces/grammar/IStructureParser.js → modules/grammar/interface/interfaces/IAnnotatedHandler.js} +0 -0
- package/dist/modules/grammar/interface/interfaces/IContentParser.d.ts +5 -0
- package/dist/{pub/esc/interfaces/grammar/ITreeHandler.js → modules/grammar/interface/interfaces/IContentParser.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/interfaces}/IStructureHandler.d.ts +1 -1
- package/dist/{pub/esc/interfaces/grammar/StackContext.js → modules/grammar/interface/interfaces/IStructureHandler.js} +0 -0
- package/dist/modules/grammar/interface/interfaces/IStructureParser.d.ts +5 -0
- package/dist/{pub/esc/interfaces/grammar/StructureToken.js → modules/grammar/interface/interfaces/IStructureParser.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/interfaces}/ITreeHandler.d.ts +13 -13
- package/dist/{pub/esc/interfaces/grammar/tokens.js → modules/grammar/interface/interfaces/ITreeHandler.js} +0 -0
- package/dist/modules/grammar/interface/types/AnnotatedToken.d.ts +4 -0
- package/dist/{pub/esc/interfaces/schema/generated_CreateASTNSchemaDeserializer.js → modules/grammar/interface/types/AnnotatedToken.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/types}/ContentToken.d.ts +4 -4
- package/dist/{pub/esc/interfaces/schema/generated_schema.js → modules/grammar/interface/types/ContentToken.js} +0 -0
- package/dist/modules/grammar/interface/types/StackContext.d.ts +7 -0
- package/dist/{pub/esc/interfaces/tokenLevel/FormatInstruction.js → modules/grammar/interface/types/StackContext.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/types}/StructureToken.d.ts +1 -2
- package/dist/{pub/esc/interfaces/tokenLevel/IFormatInstructionWriter.js → modules/grammar/interface/types/StructureToken.js} +0 -0
- package/dist/{pub/esc/interfaces/grammar → modules/grammar/interface/types}/tokens.d.ts +5 -5
- package/dist/{pub/esc/interfaces/tokenLevel/Location.js → modules/grammar/interface/types/tokens.js} +0 -0
- package/dist/{pub/esc/implementations/_schema → modules/schema/esc/implementation}/createASTNSchemaBuilder.generated.d.ts +2 -2
- package/dist/{pub/esc/implementations/_schema → modules/schema/esc/implementation}/createASTNSchemaBuilder.generated.js +1 -2
- package/dist/modules/schema/esc/implementation/createASTNSchemaDeserializer.generated.d.ts +4 -0
- package/dist/{pub/esc/implementations/_schema → modules/schema/esc/implementation}/createASTNSchemaDeserializer.generated.js +2 -15
- package/dist/{pub/esc/implementations/_schema → modules/schema/esc/implementation}/index.d.ts +0 -0
- package/dist/modules/schema/esc/implementation/index.js +8 -0
- package/dist/modules/schema/esc/implementation/serializeSchema.generated.d.ts +3 -0
- package/dist/{pub/esc/implementations/_schema → modules/schema/esc/implementation}/serializeSchema.generated.js +3 -19
- package/dist/modules/schema/index.d.ts +2 -0
- package/dist/modules/schema/index.js +6 -0
- package/dist/modules/schema/interface/index.d.ts +2 -0
- package/dist/{pub/esc/interfaces/tokenLevel/Range.js → modules/schema/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/schema → modules/schema/interface/interfaces}/generated_CreateASTNSchemaDeserializer.d.ts +3 -3
- package/dist/{pub/esc/interfaces/tokenLevel/TokenizerAnnotationData.js → modules/schema/interface/interfaces/generated_CreateASTNSchemaDeserializer.js} +0 -0
- package/dist/{pub/esc/interfaces/schema → modules/schema/interface/types}/generated_schema.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typed/CreateTreeUnmarshaller.js → modules/schema/interface/types/generated_schema.js} +0 -0
- package/dist/modules/tokenLevel/index.d.ts +1 -0
- package/dist/{pub/esc/interfaces/typed/Datastore.js → modules/tokenLevel/index.js} +0 -0
- package/dist/modules/tokenLevel/interface/index.d.ts +5 -0
- package/dist/{pub/esc/interfaces/typed/IMarshallableDataset.js → modules/tokenLevel/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/tokenLevel → modules/tokenLevel/interface/interfaces}/FormatInstruction.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typed/ITypedTreeHandler.js → modules/tokenLevel/interface/interfaces/FormatInstruction.js} +0 -0
- package/dist/{pub/esc/interfaces/tokenLevel → modules/tokenLevel/interface/interfaces}/IFormatInstructionWriter.d.ts +2 -2
- package/dist/{pub/esc/interfaces/typed/InternalSchemaSpecification.js → modules/tokenLevel/interface/interfaces/IFormatInstructionWriter.js} +0 -0
- package/dist/{pub/esc/interfaces/tokenLevel → modules/tokenLevel/interface/interfaces}/Location.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typed/SerializationStyle.js → modules/tokenLevel/interface/interfaces/Location.js} +0 -0
- package/dist/modules/tokenLevel/interface/interfaces/Range.d.ts +12 -0
- package/dist/{pub/esc/interfaces/typed/UnmarshallError.js → modules/tokenLevel/interface/interfaces/Range.js} +0 -0
- package/dist/{pub/esc/interfaces/tokenLevel → modules/tokenLevel/interface/interfaces}/TokenizerAnnotationData.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typed/definitions.js → modules/tokenLevel/interface/interfaces/TokenizerAnnotationData.js} +0 -0
- package/dist/modules/typed/index.d.ts +1 -0
- package/dist/{pub/esc/interfaces/typedTokenize/ASTNUnmarshallIssue.js → modules/typed/index.js} +0 -0
- package/dist/modules/typed/interface/index.d.ts +7 -0
- package/dist/{pub/esc/interfaces/typedTokenize/ContextSchemaIssue.js → modules/typed/interface/index.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/CreateTreeUnmarshaller.d.ts +4 -4
- package/dist/{pub/esc/interfaces/typedTokenize/ContextSchemaResult.js → modules/typed/interface/interfaces/CreateTreeUnmarshaller.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/Datastore.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typedTokenize/CreateASTNUnmarshaller.js → modules/typed/interface/interfaces/Datastore.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/IMarshallableDataset.d.ts +8 -8
- package/dist/{pub/esc/interfaces/typedTokenize/CreateExternalSchemaLoader.js → modules/typed/interface/interfaces/IMarshallableDataset.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/ITypedTreeHandler.d.ts +13 -13
- package/dist/{pub/esc/interfaces/typedTokenize/CreateSchemaHandler.js → modules/typed/interface/interfaces/ITypedTreeHandler.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/InternalSchemaSpecification.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typedTokenize/SchemaAndSideEffects.js → modules/typed/interface/interfaces/InternalSchemaSpecification.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/SerializationStyle.d.ts +0 -0
- package/dist/{pub/esc/interfaces/typedTokenize/SchemaDeserializationError.js → modules/typed/interface/interfaces/SerializationStyle.js} +0 -0
- package/dist/modules/typed/interface/interfaces/UnmarshallError.d.ts +7 -0
- package/dist/{pub/esc/interfaces/typedTokenize/SchemaError.js → modules/typed/interface/interfaces/UnmarshallError.js} +0 -0
- package/dist/{pub/esc/interfaces/typed → modules/typed/interface/interfaces}/definitions.d.ts +1 -1
- package/dist/{pub/esc/interfaces/typedTokenize/SchemaSchemaBuilder.js → modules/typed/interface/interfaces/definitions.js} +0 -0
- package/dist/modules/typedTokenize/index.d.ts +1 -0
- package/dist/{pub/esc/legacy/test/TestDefinition.js → modules/typedTokenize/index.js} +0 -0
- package/dist/modules/typedTokenize/interface/index.d.ts +10 -0
- package/dist/modules/typedTokenize/interface/index.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/ASTNUnmarshallIssue.d.ts +5 -8
- package/dist/modules/typedTokenize/interface/interfaces/ASTNUnmarshallIssue.js +2 -0
- package/dist/modules/typedTokenize/interface/interfaces/ContextSchemaIssue.d.ts +7 -0
- package/dist/modules/typedTokenize/interface/interfaces/ContextSchemaIssue.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/ContextSchemaResult.d.ts +0 -0
- package/dist/modules/typedTokenize/interface/interfaces/ContextSchemaResult.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/CreateASTNUnmarshaller.d.ts +4 -3
- package/dist/modules/typedTokenize/interface/interfaces/CreateASTNUnmarshaller.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/CreateExternalSchemaLoader.d.ts +1 -1
- package/dist/modules/typedTokenize/interface/interfaces/CreateExternalSchemaLoader.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/CreateSchemaHandler.d.ts +2 -2
- package/dist/modules/typedTokenize/interface/interfaces/CreateSchemaHandler.js +2 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaAndSideEffects.d.ts +7 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaAndSideEffects.js +2 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaDeserializationError.d.ts +4 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaDeserializationError.js +2 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaError.d.ts +4 -0
- package/dist/modules/typedTokenize/interface/interfaces/SchemaError.js +2 -0
- package/dist/{pub/esc/interfaces/typedTokenize → modules/typedTokenize/interface/interfaces}/SchemaSchemaBuilder.d.ts +1 -1
- package/dist/modules/typedTokenize/interface/interfaces/SchemaSchemaBuilder.js +2 -0
- package/package.json +11 -35
- package/README.md +0 -359
- package/bin/normalizeFile.mjs +0 -3
- package/bin/toJSON.mjs +0 -3
- package/dist/pub/esc/implementations/_astn/PreToken.d.ts +0 -89
- package/dist/pub/esc/implementations/_astn/expect2.d.ts +0 -23
- package/dist/pub/esc/implementations/_astn/index.js +0 -32
- package/dist/pub/esc/implementations/_astn/printExpectError.d.ts +0 -2
- package/dist/pub/esc/implementations/_astn/printTokenizerError.js +0 -26
- package/dist/pub/esc/implementations/_astnTyped/createBuilder.d.ts +0 -3
- package/dist/pub/esc/implementations/_astnTyped/createCodeCompletionFinder.d.ts +0 -5
- package/dist/pub/esc/implementations/_astnTyped/createHoverTextFinder.d.ts +0 -7
- package/dist/pub/esc/implementations/_astnTyped/createMarshallInterface.d.ts +0 -3
- package/dist/pub/esc/implementations/_astnTyped/createSchemaHandler.d.ts +0 -6
- package/dist/pub/esc/implementations/_astnTyped/createTreeUnmarshaller.d.ts +0 -12
- package/dist/pub/esc/implementations/_astnTyped/index.js +0 -27
- package/dist/pub/esc/implementations/_astnTyped/marshall.d.ts +0 -20
- package/dist/pub/esc/implementations/_astnTyped/printContextSchemaError.d.ts +0 -2
- package/dist/pub/esc/implementations/_astnTyped/printDeserializeDiagnostic.d.ts +0 -2
- package/dist/pub/esc/implementations/_astnTyped/printSchemaDeserializationError.d.ts +0 -2
- package/dist/pub/esc/implementations/_astnTyped/printSchemaDeserializationError.js +0 -22
- package/dist/pub/esc/implementations/_astnTyped/printSchemaSchemaError.d.ts +0 -2
- package/dist/pub/esc/implementations/_astnTyped/printUnmarshallError.d.ts +0 -2
- package/dist/pub/esc/implementations/_etc/index.js +0 -13
- package/dist/pub/esc/implementations/_etc/runProgram.js +0 -30
- package/dist/pub/esc/implementations/_schema/createASTNSchemaDeserializer.generated.d.ts +0 -4
- package/dist/pub/esc/implementations/_schema/index.js +0 -15
- package/dist/pub/esc/implementations/_schema/serializeSchema.generated.d.ts +0 -3
- package/dist/pub/esc/interfaces/_export.d.ts +0 -6
- package/dist/pub/esc/interfaces/_export.js +0 -18
- package/dist/pub/esc/interfaces/astn/CreateTokenizer.d.ts +0 -15
- package/dist/pub/esc/interfaces/astn/ExpectIssue.d.ts +0 -58
- package/dist/pub/esc/interfaces/astn/TokenError.d.ts +0 -13
- package/dist/pub/esc/interfaces/astn/index.d.ts +0 -17
- package/dist/pub/esc/interfaces/astn/index.js +0 -29
- package/dist/pub/esc/interfaces/etc/RetrievalError.d.ts +0 -6
- package/dist/pub/esc/interfaces/etc/index.d.ts +0 -4
- package/dist/pub/esc/interfaces/etc/index.js +0 -16
- package/dist/pub/esc/interfaces/grammar/AnnotatedToken.d.ts +0 -4
- package/dist/pub/esc/interfaces/grammar/IContentParser.d.ts +0 -5
- package/dist/pub/esc/interfaces/grammar/IStructureParser.d.ts +0 -5
- package/dist/pub/esc/interfaces/grammar/StackContext.d.ts +0 -7
- package/dist/pub/esc/interfaces/grammar/index.d.ts +0 -11
- package/dist/pub/esc/interfaces/grammar/index.js +0 -23
- package/dist/pub/esc/interfaces/tokenLevel/Range.d.ts +0 -18
- package/dist/pub/esc/interfaces/tokenLevel/index.d.ts +0 -5
- package/dist/pub/esc/interfaces/tokenLevel/index.js +0 -17
- package/dist/pub/esc/interfaces/typed/UnmarshallError.d.ts +0 -16
- package/dist/pub/esc/interfaces/typed/index.d.ts +0 -7
- package/dist/pub/esc/interfaces/typed/index.js +0 -20
- package/dist/pub/esc/interfaces/typedTokenize/ContextSchemaIssue.d.ts +0 -10
- package/dist/pub/esc/interfaces/typedTokenize/SchemaAndSideEffects.d.ts +0 -7
- package/dist/pub/esc/interfaces/typedTokenize/SchemaDeserializationError.d.ts +0 -7
- package/dist/pub/esc/interfaces/typedTokenize/SchemaError.d.ts +0 -7
- package/dist/pub/esc/interfaces/typedTokenize/index.d.ts +0 -10
- package/dist/pub/esc/interfaces/typedTokenize/index.js +0 -22
- package/dist/pub/esc/legacy/notSureYet/formatCLI.js +0 -31
- package/dist/pub/esc/legacy/notSureYet/normalizeText.js +0 -9
- package/dist/pub/esc/legacy/notSureYet/toJSON.js +0 -9
- package/dist/pub/esc/legacy/test/ASTNTestSet.d.ts +0 -2
- package/dist/pub/esc/legacy/test/ASTNTestSet.js +0 -506
- package/dist/pub/esc/legacy/test/JSONTestSuite.d.ts +0 -1
- package/dist/pub/esc/legacy/test/JSONTestSuite.js +0 -151
- package/dist/pub/esc/legacy/test/JSONTestSuiteImp.d.ts +0 -10
- package/dist/pub/esc/legacy/test/JSONTestSuiteImp.js +0 -145
- package/dist/pub/esc/legacy/test/TestDefinition.d.ts +0 -15
- package/dist/pub/esc/legacy/test/createExecutionContext.d.ts +0 -2
- package/dist/pub/esc/legacy/test/createExecutionContext.js +0 -94
- package/dist/pub/esc/legacy/test/fs.d.ts +0 -30
- package/dist/pub/esc/legacy/test/fs.js +0 -164
- package/dist/pub/esc/legacy/test/ownJSONTestset.d.ts +0 -2
- package/dist/pub/esc/legacy/test/ownJSONTestset.js +0 -1022
- package/dist/pub/esc/legacy/test/testFormatting.d.ts +0 -1
- package/dist/pub/esc/legacy/test/testFormatting.js +0 -21
- package/dist/pub/esc/legacy/test/testProgram.d.ts +0 -4
- package/dist/pub/esc/legacy/test/testProgram.js +0 -41
- package/dist/pub/esc/legacy/test/testSet.d.ts +0 -13
- package/dist/pub/esc/legacy/test/testSet.js +0 -83
- package/dist/pub/esc/legacy/test/testTestSets.d.ts +0 -1
- package/dist/pub/esc/legacy/test/testTestSets.js +0 -211
- package/dist/pub/esc/legacy/test/testTyped.d.ts +0 -3
- package/dist/pub/esc/legacy/test/testTyped.js +0 -266
- package/dist/pub/esc/legacy/test/typed.d.ts +0 -1
- package/dist/pub/esc/legacy/test/typed.js +0 -228
- package/dist/pub/esc/legacy/tsbin/normalizeFile.js +0 -5
- package/dist/pub/esc/legacy/tsbin/toJSON.js +0 -5
- package/dist/tmp/esc/globals.d.ts +0 -45
- package/dist/tmp/esc/globals.js +0 -7
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const normalizeText_1 = require("../legacy/notSureYet/normalizeText");
|
|
4
|
+
const implementation_1 = require("../../modules/etc/esc/implementation");
|
|
5
|
+
implementation_1.runProgram(normalizeText_1.normalize);
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as etc from "
|
|
2
|
-
import * as tokenLevel from "
|
|
3
|
-
import * as grammar from "
|
|
4
|
-
import * as astn from "
|
|
1
|
+
import * as etc from "../../../modules/etc";
|
|
2
|
+
import * as tokenLevel from "../../../modules/tokenLevel";
|
|
3
|
+
import * as grammar from "../../../modules/grammar";
|
|
4
|
+
import * as astn from "../../../modules/astn";
|
|
5
5
|
export declare function formatCLI(write: (str: string) => void, onError: (str: string) => void, createFormatter: ($: astn.CreateFormatterParameters<tokenLevel.TokenizerAnnotationData>) => grammar.IStructureHandler<tokenLevel.TokenizerAnnotationData>): etc.IStreamConsumer<string, null>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const astn_1 = require("../../../modules/astn");
|
|
4
|
+
const astn_2 = require("../../../modules/astn");
|
|
5
|
+
const astn_3 = require("../../../modules/astn");
|
|
6
|
+
const astn_4 = require("../../../modules/astn");
|
|
7
|
+
const astn_5 = require("../../../modules/astn");
|
|
8
|
+
function formatCLI(write, onError, createFormatter) {
|
|
9
|
+
return astn_4.createTokenizer({
|
|
10
|
+
parser: astn_5.createStructureParser({
|
|
11
|
+
handler: createFormatter({
|
|
12
|
+
indentationString: " ",
|
|
13
|
+
newline: "\r\n",
|
|
14
|
+
write: (str) => {
|
|
15
|
+
write(str);
|
|
16
|
+
},
|
|
17
|
+
onError: ($) => {
|
|
18
|
+
onError(`${astn_1.printParsingError($.error)} @ ${astn_3.printRange($.annotation.range)}`);
|
|
19
|
+
},
|
|
20
|
+
}),
|
|
21
|
+
onError: ($) => {
|
|
22
|
+
onError(`${astn_1.printParsingError($.error)} @ ${astn_3.printRange($.annotation.range)}`);
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
onError: ($) => {
|
|
26
|
+
onError(`${astn_2.printTokenizerError($.error)} @ ${astn_3.printRange($.range)}`);
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
exports.formatCLI = formatCLI;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as etc from "
|
|
1
|
+
import * as etc from "../../../modules/etc";
|
|
2
2
|
export declare const normalize: etc.CreateStreamConsumer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const astn_1 = require("../../../modules/astn");
|
|
4
|
+
const formatCLI_1 = require("./formatCLI");
|
|
5
|
+
exports.normalize = (write, onError) => {
|
|
6
|
+
return formatCLI_1.formatCLI(write, onError, astn_1.createASTNSerializer);
|
|
7
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as etc from "
|
|
1
|
+
import * as etc from "../../../modules/etc";
|
|
2
2
|
export declare const toJSON: etc.CreateStreamConsumer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const astn_1 = require("../../../modules/astn");
|
|
4
|
+
const formatCLI_1 = require("./formatCLI");
|
|
5
|
+
exports.toJSON = (write, onError) => {
|
|
6
|
+
return formatCLI_1.formatCLI(write, onError, astn_1.createJSONSerializer);
|
|
7
|
+
};
|
|
File without changes
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/ILocationState.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as tokenLevel from "
|
|
2
|
-
export
|
|
1
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
2
|
+
export declare type ILocationState = {
|
|
3
3
|
getCurrentLocation(): tokenLevel.Location;
|
|
4
4
|
getNextLocation(): tokenLevel.Location;
|
|
5
5
|
increase(character: number): void;
|
|
6
|
-
}
|
|
6
|
+
};
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/ILocationState.js
RENAMED
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as etc from "
|
|
2
|
-
import * as tokenLevel from "
|
|
1
|
+
import * as etc from "../../../etc/interface";
|
|
2
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
3
3
|
import { PreToken } from "./PreToken";
|
|
4
4
|
export declare type IPreTokenStreamConsumer = etc.IStreamConsumer<PreToken, tokenLevel.Location>;
|
|
File without changes
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenizer.d.ts
RENAMED
|
@@ -4,11 +4,11 @@ export declare type TokenReturnType = {
|
|
|
4
4
|
consumeCharacter: boolean;
|
|
5
5
|
preToken: null | PreToken;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export declare type ILoopState = {
|
|
8
8
|
ensureFlushed(callback: () => TokenReturnType): TokenReturnType;
|
|
9
9
|
whileLoop(callback: (nextChar: number) => TokenReturnType): PreToken | null;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
};
|
|
11
|
+
export declare type IPreTokenizer = {
|
|
12
12
|
handleDanglingToken(): PreToken | null;
|
|
13
13
|
createNextToken(loopState: ILoopState): null | PreToken;
|
|
14
|
-
}
|
|
14
|
+
};
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/IPreTokenizer.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
3
|
+
export declare type WrappedStringType = ["apostrophe", {}] | ["quote", {}] | ["multiline", {
|
|
4
|
+
previousLines: string[];
|
|
5
|
+
}];
|
|
6
|
+
/**
|
|
7
|
+
* A PreToken is a low level token
|
|
8
|
+
*/
|
|
9
|
+
export declare type PreToken = {
|
|
10
|
+
type: ["header start", {
|
|
11
|
+
range: tokenLevel.Range;
|
|
12
|
+
}] | ["block comment begin", {
|
|
13
|
+
range: tokenLevel.Range;
|
|
14
|
+
}] | ["block comment end", {
|
|
15
|
+
range: tokenLevel.Range;
|
|
16
|
+
}] | ["line comment begin", {
|
|
17
|
+
range: tokenLevel.Range;
|
|
18
|
+
}] | ["line comment end", {
|
|
19
|
+
location: tokenLevel.Location;
|
|
20
|
+
}] | ["newline", {
|
|
21
|
+
range: tokenLevel.Range;
|
|
22
|
+
}] | ["structural", {
|
|
23
|
+
type: grammar.StructuralTokenType;
|
|
24
|
+
range: tokenLevel.Range;
|
|
25
|
+
}] | ["wrapped string begin", {
|
|
26
|
+
range: tokenLevel.Range;
|
|
27
|
+
type: WrappedStringType;
|
|
28
|
+
}] | ["wrapped string end", {
|
|
29
|
+
range: tokenLevel.Range;
|
|
30
|
+
wrapper: string | null;
|
|
31
|
+
}] | ["snippet", {
|
|
32
|
+
chunk: string;
|
|
33
|
+
begin: number;
|
|
34
|
+
end: number;
|
|
35
|
+
}] | ["non wrapped string begin", {
|
|
36
|
+
location: tokenLevel.Location;
|
|
37
|
+
}] | ["non wrapped string end", {
|
|
38
|
+
location: tokenLevel.Location;
|
|
39
|
+
}] | ["whitespace begin", {
|
|
40
|
+
location: tokenLevel.Location;
|
|
41
|
+
}] | ["whitespace end", {
|
|
42
|
+
location: tokenLevel.Location;
|
|
43
|
+
}];
|
|
44
|
+
};
|
|
File without changes
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/TokenizerOptions.d.ts
RENAMED
|
File without changes
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/TokenizerOptions.js
RENAMED
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as grammar from "
|
|
2
|
-
import * as tokenLevel from "
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
3
3
|
export declare function createASTNNormalizer<EventAnnotation>($: {
|
|
4
4
|
indentationString: string;
|
|
5
5
|
newline: string;
|
|
@@ -1,29 +1,14 @@
|
|
|
1
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
2
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
3
|
if (mod && mod.__esModule) return mod;
|
|
16
4
|
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (
|
|
18
|
-
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
19
7
|
return result;
|
|
20
8
|
};
|
|
21
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
|
|
10
|
+
const pr = __importStar(require("pareto-runtime"));
|
|
23
11
|
const stringSerialization = __importStar(require("./stringSerialization"));
|
|
24
|
-
function assertUnreachable(_x) {
|
|
25
|
-
throw new Error("unreachable");
|
|
26
|
-
}
|
|
27
12
|
function createASTNNormalizer($, $p) {
|
|
28
13
|
function createIndentation(context) {
|
|
29
14
|
const depth = context.dictionaryDepth + context.verboseGroupDepth + context.listDepth;
|
|
@@ -53,7 +38,7 @@ function createASTNNormalizer($, $p) {
|
|
|
53
38
|
return stringSerialization.createSerializedQuotedString($.propertyToken.token.value);
|
|
54
39
|
}
|
|
55
40
|
default:
|
|
56
|
-
return
|
|
41
|
+
return pr.au($.objectToken.token.type[0]);
|
|
57
42
|
}
|
|
58
43
|
})(),
|
|
59
44
|
stringAfter: `: `,
|
|
@@ -104,7 +89,7 @@ function createASTNNormalizer($, $p) {
|
|
|
104
89
|
return stringSerialization.createSerializedApostrophedString($.value);
|
|
105
90
|
}
|
|
106
91
|
default:
|
|
107
|
-
return
|
|
92
|
+
return pr.au($.wrapping[0]);
|
|
108
93
|
}
|
|
109
94
|
}
|
|
110
95
|
$p.writer.token({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as astn from "../../
|
|
2
|
-
import * as grammar from "
|
|
1
|
+
import * as astn from "../../interface";
|
|
2
|
+
import * as grammar from "../../../grammar/interface";
|
|
3
3
|
export declare function createASTNSerializer<EventAnnotation>($: astn.CreateFormatterParameters<EventAnnotation>): grammar.IStructureHandler<EventAnnotation>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createASTNSerializer = void 0;
|
|
4
3
|
const createAnnotater_1 = require("./createAnnotater");
|
|
5
4
|
const createASTNNormalizer_1 = require("./createASTNNormalizer");
|
|
6
5
|
const createTreeParser_1 = require("./createTreeParser");
|
|
@@ -19,7 +18,7 @@ function createASTNSerializer($) {
|
|
|
19
18
|
onNoInternalSchema: () => { },
|
|
20
19
|
onEmbeddedSchema: (_range) => {
|
|
21
20
|
$.write(`! `);
|
|
22
|
-
return
|
|
21
|
+
return createAnnotater_1.createAnnotater(createASTNNormalizer_1.createASTNNormalizer({
|
|
23
22
|
indentationString: $.indentationString,
|
|
24
23
|
newline: $.newline,
|
|
25
24
|
}, {
|
|
@@ -30,8 +29,8 @@ function createASTNSerializer($) {
|
|
|
30
29
|
$.write(`! ${$$.token.token.value}${$.newline}`);
|
|
31
30
|
},
|
|
32
31
|
onBody: () => {
|
|
33
|
-
const x =
|
|
34
|
-
handler:
|
|
32
|
+
const x = createTreeParser_1.createTreeParser({
|
|
33
|
+
handler: createAnnotater_1.createAnnotater(createASTNNormalizer_1.createASTNNormalizer({
|
|
35
34
|
indentationString: $.indentationString,
|
|
36
35
|
newline: $.newline,
|
|
37
36
|
}, {
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createAnnotater.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as grammar from "
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
2
|
export declare function createAnnotater<InTokenAnnotation>(handler: grammar.IAnnotatedHandler<InTokenAnnotation>): grammar.ITreeHandler<InTokenAnnotation>;
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createAnnotater.js
RENAMED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
10
|
+
const pr = __importStar(require("pareto-runtime"));
|
|
4
11
|
// import * as tokenLevel from "../../interfaces/tokenLevel"
|
|
5
12
|
// import * as typed from "../../interfaces/typed"
|
|
6
13
|
// import * as typedTokenize from "../../interfaces/typedTokenize"
|
|
7
|
-
function assertUnreachable(_x) {
|
|
8
|
-
throw new Error("unreachable");
|
|
9
|
-
}
|
|
10
14
|
function createAnnotater(handler) {
|
|
11
15
|
let dictionaryDepth = 0;
|
|
12
16
|
let verboseGroupDepth = 0;
|
|
@@ -35,7 +39,7 @@ function createAnnotater(handler) {
|
|
|
35
39
|
break;
|
|
36
40
|
}
|
|
37
41
|
default:
|
|
38
|
-
|
|
42
|
+
pr.au($.token.token.type[0]);
|
|
39
43
|
}
|
|
40
44
|
handler.objectBegin({
|
|
41
45
|
token: $.token,
|
|
@@ -65,7 +69,7 @@ function createAnnotater(handler) {
|
|
|
65
69
|
break;
|
|
66
70
|
}
|
|
67
71
|
default:
|
|
68
|
-
|
|
72
|
+
pr.au($.token.token.type[0]);
|
|
69
73
|
}
|
|
70
74
|
handler.objectEnd({
|
|
71
75
|
openToken: $.token,
|
|
@@ -87,7 +91,7 @@ function createAnnotater(handler) {
|
|
|
87
91
|
break;
|
|
88
92
|
}
|
|
89
93
|
default:
|
|
90
|
-
|
|
94
|
+
pr.au($.token.token.type[0]);
|
|
91
95
|
}
|
|
92
96
|
handler.arrayBegin({
|
|
93
97
|
token: $.token,
|
|
@@ -116,7 +120,7 @@ function createAnnotater(handler) {
|
|
|
116
120
|
break;
|
|
117
121
|
}
|
|
118
122
|
default:
|
|
119
|
-
|
|
123
|
+
pr.au($.token.token.type[0]);
|
|
120
124
|
}
|
|
121
125
|
handler.arrayEnd({
|
|
122
126
|
openToken: $.token,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as grammar from "
|
|
2
|
-
import * as astn from "../../
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
|
+
import * as astn from "../../interface";
|
|
3
3
|
export declare function createExpectContext<EventAnnotation>($p: {
|
|
4
4
|
issueHandler: astn.OnExpectIssue<EventAnnotation>;
|
|
5
5
|
createDummyValueHandler: () => grammar.IValueHandler<EventAnnotation>;
|
|
@@ -1,31 +1,15 @@
|
|
|
1
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
2
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
3
|
if (mod && mod.__esModule) return mod;
|
|
16
4
|
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (
|
|
18
|
-
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
19
7
|
return result;
|
|
20
8
|
};
|
|
21
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.createExpectContext = void 0;
|
|
23
10
|
/* eslint
|
|
24
11
|
*/
|
|
25
12
|
const pr = __importStar(require("pareto-runtime"));
|
|
26
|
-
function assertUnreachable(_x) {
|
|
27
|
-
throw new Error("unreachable");
|
|
28
|
-
}
|
|
29
13
|
function createCreateContext(issueHandler, createDummyValueHandler, duplicateEntrySeverity, onDuplicateEntry) {
|
|
30
14
|
function raiseWarning(issue, annotation) {
|
|
31
15
|
issueHandler({
|
|
@@ -71,7 +55,7 @@ function createCreateContext(issueHandler, createDummyValueHandler, duplicateEnt
|
|
|
71
55
|
raiseWarning(["duplicate entry", { key: propertyData.token.token.value }], propertyData.token.annotation);
|
|
72
56
|
break;
|
|
73
57
|
default:
|
|
74
|
-
|
|
58
|
+
pr.au(duplicateEntrySeverity[0]);
|
|
75
59
|
}
|
|
76
60
|
switch (onDuplicateEntry[0]) {
|
|
77
61
|
case "ignore":
|
|
@@ -79,7 +63,7 @@ function createCreateContext(issueHandler, createDummyValueHandler, duplicateEnt
|
|
|
79
63
|
case "overwrite":
|
|
80
64
|
return onEntry(propertyData);
|
|
81
65
|
default:
|
|
82
|
-
return
|
|
66
|
+
return pr.au(onDuplicateEntry[0]);
|
|
83
67
|
}
|
|
84
68
|
}
|
|
85
69
|
else {
|
|
@@ -143,7 +127,7 @@ function createCreateContext(issueHandler, createDummyValueHandler, duplicateEnt
|
|
|
143
127
|
raiseWarning(["duplicate property", { name: $$.token.token.value }], $$.token.annotation);
|
|
144
128
|
break;
|
|
145
129
|
default:
|
|
146
|
-
return
|
|
130
|
+
return pr.au(duplicateEntrySeverity[0]);
|
|
147
131
|
}
|
|
148
132
|
switch (onDuplicateEntry[0]) {
|
|
149
133
|
case "ignore":
|
|
@@ -151,7 +135,7 @@ function createCreateContext(issueHandler, createDummyValueHandler, duplicateEnt
|
|
|
151
135
|
case "overwrite":
|
|
152
136
|
return onProperty();
|
|
153
137
|
default:
|
|
154
|
-
return
|
|
138
|
+
return pr.au(onDuplicateEntry[0]);
|
|
155
139
|
}
|
|
156
140
|
}
|
|
157
141
|
else {
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createFlattener.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as grammar from "
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
2
|
export declare function createFlattener<EventAnnotation>(parser: grammar.IContentParser<EventAnnotation>): grammar.ITreeHandler<EventAnnotation>;
|
package/dist/{pub/esc/implementations/_astn → modules/astn/esc/implementation}/createFlattener.js
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
function assertUnreachable(_x) {
|
|
5
|
-
throw new Error("unreachable");
|
|
6
|
-
}
|
|
7
|
-
// function cc<T, RT>(input: T, callback: (output: T) => RT): RT {
|
|
8
|
-
// return callback(input)
|
|
9
|
-
// }
|
|
10
|
+
const pr = __importStar(require("pareto-runtime"));
|
|
10
11
|
function createFlattener(parser) {
|
|
11
12
|
function createLoggingRequiredValueHandler() {
|
|
12
13
|
return {
|
|
@@ -32,7 +33,7 @@ function createFlattener(parser) {
|
|
|
32
33
|
case "quote":
|
|
33
34
|
return ["quote", {}];
|
|
34
35
|
default:
|
|
35
|
-
return
|
|
36
|
+
return pr.au($.token.wrapping[0]);
|
|
36
37
|
}
|
|
37
38
|
})(),
|
|
38
39
|
}], $.annotation);
|
|
@@ -49,7 +50,7 @@ function createFlattener(parser) {
|
|
|
49
50
|
case "shorthand group":
|
|
50
51
|
return ["open shorthand group", {}];
|
|
51
52
|
default:
|
|
52
|
-
return
|
|
53
|
+
return pr.au($.token.token.type[0]);
|
|
53
54
|
}
|
|
54
55
|
})(),
|
|
55
56
|
}], $.token.annotation);
|
|
@@ -66,7 +67,7 @@ function createFlattener(parser) {
|
|
|
66
67
|
case "shorthand group":
|
|
67
68
|
return ["close shorthand group", {}];
|
|
68
69
|
default:
|
|
69
|
-
return
|
|
70
|
+
return pr.au(open$.token.token.type[0]);
|
|
70
71
|
}
|
|
71
72
|
})(),
|
|
72
73
|
}], $.token.annotation);
|
|
@@ -83,7 +84,7 @@ function createFlattener(parser) {
|
|
|
83
84
|
case "verbose group":
|
|
84
85
|
return ["open verbose group", {}];
|
|
85
86
|
default:
|
|
86
|
-
return
|
|
87
|
+
return pr.au($.token.token.type[0]);
|
|
87
88
|
}
|
|
88
89
|
})(),
|
|
89
90
|
}], $.token.annotation);
|
|
@@ -101,7 +102,7 @@ function createFlattener(parser) {
|
|
|
101
102
|
case "verbose group":
|
|
102
103
|
return ["close verbose group", {}];
|
|
103
104
|
default:
|
|
104
|
-
return
|
|
105
|
+
return pr.au(open$.token.token.type[0]);
|
|
105
106
|
}
|
|
106
107
|
})(),
|
|
107
108
|
}], $.token.annotation);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as grammar from "
|
|
2
|
-
import * as tokenLevel from "
|
|
1
|
+
import * as grammar from "../../../grammar/interface";
|
|
2
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
3
3
|
export declare function createJSONFormatter<EventAnnotation>(indentationString: string, newline: string, writer: tokenLevel.IFormatInstructionWriter<EventAnnotation>): grammar.IAnnotatedHandler<EventAnnotation>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
10
|
+
const pr = __importStar(require("pareto-runtime"));
|
|
4
11
|
const stringSerialization_1 = require("./stringSerialization");
|
|
5
|
-
function assertUnreachable(_x) {
|
|
6
|
-
throw new Error("unreachable");
|
|
7
|
-
}
|
|
8
12
|
function createJSONFormatter(indentationString, newline, writer) {
|
|
9
13
|
function createIndentation(context) {
|
|
10
14
|
let indentation = ``;
|
|
@@ -24,7 +28,7 @@ function createJSONFormatter(indentationString, newline, writer) {
|
|
|
24
28
|
property: ($) => {
|
|
25
29
|
writer.token({
|
|
26
30
|
stringBefore: `${$.isFirst ? "" : ","}${newline}${createIndentation($.stackContext)}`,
|
|
27
|
-
token:
|
|
31
|
+
token: stringSerialization_1.createSerializedQuotedString($.propertyToken.token.value),
|
|
28
32
|
stringAfter: `: `,
|
|
29
33
|
}, $.propertyToken.annotation);
|
|
30
34
|
},
|
|
@@ -68,16 +72,16 @@ function createJSONFormatter(indentationString, newline, writer) {
|
|
|
68
72
|
// if (isNaN(nr)) {
|
|
69
73
|
// return createSerializedQuotedString($.token.data.value)
|
|
70
74
|
// }
|
|
71
|
-
return
|
|
75
|
+
return stringSerialization_1.createSerializedNonWrappedString($.token.token.value);
|
|
72
76
|
}
|
|
73
77
|
case "quote": {
|
|
74
|
-
return
|
|
78
|
+
return stringSerialization_1.createSerializedQuotedString($.token.token.value);
|
|
75
79
|
}
|
|
76
80
|
case "apostrophe": {
|
|
77
|
-
return
|
|
81
|
+
return stringSerialization_1.createSerializedQuotedString($.token.token.value);
|
|
78
82
|
}
|
|
79
83
|
default:
|
|
80
|
-
return
|
|
84
|
+
return pr.au($.token.token.wrapping[0]);
|
|
81
85
|
}
|
|
82
86
|
})(),
|
|
83
87
|
stringAfter: ``,
|
|
@@ -86,7 +90,7 @@ function createJSONFormatter(indentationString, newline, writer) {
|
|
|
86
90
|
multilineStringValue: ($) => {
|
|
87
91
|
writer.token({
|
|
88
92
|
stringBefore: ``,
|
|
89
|
-
token:
|
|
93
|
+
token: stringSerialization_1.createSerializedQuotedString($.token.token.lines.join(newline)),
|
|
90
94
|
stringAfter: ``,
|
|
91
95
|
}, $.token.annotation);
|
|
92
96
|
},
|
|
@@ -100,7 +104,7 @@ function createJSONFormatter(indentationString, newline, writer) {
|
|
|
100
104
|
option: ($) => {
|
|
101
105
|
writer.token({
|
|
102
106
|
stringBefore: ` `,
|
|
103
|
-
token:
|
|
107
|
+
token: stringSerialization_1.createSerializedQuotedString($.token.token.value),
|
|
104
108
|
stringAfter: `, `,
|
|
105
109
|
}, $.token.annotation);
|
|
106
110
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as astn from "../../
|
|
2
|
-
import * as grammar from "
|
|
1
|
+
import * as astn from "../../interface";
|
|
2
|
+
import * as grammar from "../../../grammar/interface";
|
|
3
3
|
export declare function createJSONSerializer<EventAnnotation>($: astn.CreateFormatterParameters<EventAnnotation>): grammar.IStructureHandler<EventAnnotation>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createJSONSerializer = void 0;
|
|
4
3
|
const createAnnotater_1 = require("./createAnnotater");
|
|
5
4
|
const dummyHandlers_1 = require("./dummyHandlers");
|
|
6
5
|
const createJSONFormatter_1 = require("./createJSONFormatter");
|
|
@@ -9,12 +8,12 @@ function createJSONSerializer($) {
|
|
|
9
8
|
return {
|
|
10
9
|
onNoInternalSchema: () => { },
|
|
11
10
|
onEmbeddedSchema: (_range) => {
|
|
12
|
-
return
|
|
11
|
+
return dummyHandlers_1.createDummyTreeHandler();
|
|
13
12
|
},
|
|
14
13
|
onSchemaReference: () => { },
|
|
15
14
|
onBody: () => {
|
|
16
|
-
const x =
|
|
17
|
-
handler:
|
|
15
|
+
const x = createTreeParser_1.createTreeParser({
|
|
16
|
+
handler: createAnnotater_1.createAnnotater(createJSONFormatter_1.createJSONFormatter($.indentationString, $.newline, {
|
|
18
17
|
token: (instruction) => {
|
|
19
18
|
$.write(instruction.stringBefore);
|
|
20
19
|
$.write(instruction.token);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as astn from "../../
|
|
2
|
-
import * as tokenLevel from "
|
|
1
|
+
import * as astn from "../../interface";
|
|
2
|
+
import * as tokenLevel from "../../../tokenLevel/interface";
|
|
3
3
|
import { IPreTokenizer } from "./IPreTokenizer";
|
|
4
4
|
import { ILocationState } from "./ILocationState";
|
|
5
5
|
declare type OnError = ($: {
|