@opra/client 0.11.1 → 0.11.2
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/cjs/index.min.mjs +1 -0
- package/esm/index.min.mjs +1 -0
- package/package.json +6 -19
- package/typings/client-error.d.ts +1 -1
- package/typings/http/http-client.d.ts +1 -1
- package/typings/http/http-collection-service.d.ts +1 -1
- package/typings/http/http-request.d.ts +1 -1
- package/typings/http/http-singleton-service.d.ts +1 -1
- package/typings/http/http-types.d.ts +1 -1
- package/typings/http/requests/batch-request.d.ts +1 -1
- package/typings/http/requests/collection-create-request.d.ts +1 -1
- package/typings/http/requests/collection-delete-many-request.d.ts +1 -1
- package/typings/http/requests/collection-delete-request.d.ts +1 -1
- package/typings/http/requests/collection-get-request.d.ts +1 -1
- package/typings/http/requests/collection-search-request.d.ts +1 -1
- package/typings/http/requests/collection-update-many-request.d.ts +1 -1
- package/typings/http/requests/collection-update-request.d.ts +1 -1
- package/typings/http/requests/http-singleton-get-request.d.ts +1 -1
- package/typings/interfaces/http-options.interface.d.ts +1 -1
- package/typings/interfaces/http-request-config.interface.d.ts +1 -1
- package/cjs/934.min.cjs +0 -1
- package/cjs/main.min.cjs +0 -2
- package/cjs/main.min.cjs.LICENSE.txt +0 -13
- package/esm/934.min.mjs +0 -1
- package/esm/main.min.mjs +0 -2
- package/esm/main.min.mjs.LICENSE.txt +0 -13
- package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
- package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
- package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
- package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
- package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
- package/typings/antlr4ts/CharStream.d.ts +0 -26
- package/typings/antlr4ts/CharStreams.d.ts +0 -54
- package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
- package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
- package/typings/antlr4ts/CommonToken.d.ts +0 -116
- package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
- package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
- package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
- package/typings/antlr4ts/Decorators.d.ts +0 -8
- package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
- package/typings/antlr4ts/Dependents.d.ts +0 -69
- package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
- package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
- package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
- package/typings/antlr4ts/IntStream.d.ts +0 -197
- package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
- package/typings/antlr4ts/Lexer.d.ts +0 -141
- package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
- package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
- package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
- package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
- package/typings/antlr4ts/Parser.d.ts +0 -372
- package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
- package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
- package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
- package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
- package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
- package/typings/antlr4ts/RecognitionException.d.ts +0 -87
- package/typings/antlr4ts/Recognizer.d.ts +0 -101
- package/typings/antlr4ts/RuleContext.d.ts +0 -124
- package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
- package/typings/antlr4ts/RuleDependency.d.ts +0 -32
- package/typings/antlr4ts/RuleVersion.d.ts +0 -11
- package/typings/antlr4ts/Token.d.ts +0 -83
- package/typings/antlr4ts/TokenFactory.d.ts +0 -23
- package/typings/antlr4ts/TokenSource.d.ts +0 -67
- package/typings/antlr4ts/TokenStream.d.ts +0 -145
- package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
- package/typings/antlr4ts/Vocabulary.d.ts +0 -117
- package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
- package/typings/antlr4ts/WritableToken.d.ts +0 -13
- package/typings/antlr4ts/atn/ATN.d.ts +0 -123
- package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
- package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
- package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
- package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
- package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
- package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
- package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
- package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
- package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
- package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
- package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
- package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
- package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
- package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
- package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
- package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
- package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
- package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
- package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
- package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
- package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
- package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
- package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
- package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
- package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
- package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
- package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
- package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
- package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
- package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
- package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
- package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
- package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
- package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
- package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
- package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
- package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
- package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
- package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
- package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
- package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
- package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
- package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
- package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
- package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
- package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
- package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/Transition.d.ts +0 -38
- package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
- package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/index.d.ts +0 -73
- package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
- package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
- package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
- package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
- package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
- package/typings/antlr4ts/dfa/index.d.ts +0 -9
- package/typings/antlr4ts/index.d.ts +0 -49
- package/typings/antlr4ts/misc/Args.d.ts +0 -13
- package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
- package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
- package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
- package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
- package/typings/antlr4ts/misc/Character.d.ts +0 -7
- package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
- package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
- package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
- package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
- package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
- package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
- package/typings/antlr4ts/misc/Interval.d.ts +0 -57
- package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
- package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
- package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
- package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
- package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
- package/typings/antlr4ts/misc/UUID.d.ts +0 -13
- package/typings/antlr4ts/misc/Utils.d.ts +0 -15
- package/typings/antlr4ts/misc/index.d.ts +0 -25
- package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
- package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
- package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
- package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
- package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
- package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
- package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
- package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
- package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
- package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
- package/typings/antlr4ts/tree/Tree.d.ts +0 -36
- package/typings/antlr4ts/tree/Trees.d.ts +0 -75
- package/typings/antlr4ts/tree/index.d.ts +0 -16
- package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
- package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
- package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
- package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
- package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
- package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
- package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
- package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
- package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
- package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
- package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
- package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
- package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
- package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
- package/typings/common/constants.d.ts +0 -0
- package/typings/common/exception/enums/issue-severity.enum.d.ts +0 -13
- package/typings/common/exception/error-issue.d.ts +0 -9
- package/typings/common/exception/http-errors/bad-request.error.d.ts +0 -10
- package/typings/common/exception/http-errors/failed-dependency.error.d.ts +0 -9
- package/typings/common/exception/http-errors/forbidden.error.d.ts +0 -11
- package/typings/common/exception/http-errors/internal-server.error.d.ts +0 -9
- package/typings/common/exception/http-errors/method-not-allowed.error.d.ts +0 -10
- package/typings/common/exception/http-errors/not-acceptable.error.d.ts +0 -10
- package/typings/common/exception/http-errors/not-found.error.d.ts +0 -13
- package/typings/common/exception/http-errors/unauthorized.error.d.ts +0 -10
- package/typings/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -9
- package/typings/common/exception/index.d.ts +0 -15
- package/typings/common/exception/opra-exception.d.ts +0 -15
- package/typings/common/exception/resource-errors/resource-conflict.error.d.ts +0 -5
- package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +0 -4
- package/typings/common/exception/wrap-exception.d.ts +0 -2
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +0 -78
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +0 -365
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +0 -290
- package/typings/common/filter/ast/abstract/ast.d.ts +0 -5
- package/typings/common/filter/ast/abstract/expression.d.ts +0 -3
- package/typings/common/filter/ast/abstract/literal.d.ts +0 -6
- package/typings/common/filter/ast/abstract/term.d.ts +0 -3
- package/typings/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -13
- package/typings/common/filter/ast/expressions/array-expression.d.ts +0 -7
- package/typings/common/filter/ast/expressions/comparison-expression.d.ts +0 -10
- package/typings/common/filter/ast/expressions/logical-expression.d.ts +0 -8
- package/typings/common/filter/ast/expressions/parentheses-expression.d.ts +0 -6
- package/typings/common/filter/ast/index.d.ts +0 -16
- package/typings/common/filter/ast/terms/boolean-literal.d.ts +0 -5
- package/typings/common/filter/ast/terms/date-literal.d.ts +0 -6
- package/typings/common/filter/ast/terms/external-constant.d.ts +0 -5
- package/typings/common/filter/ast/terms/null-literal.d.ts +0 -5
- package/typings/common/filter/ast/terms/number-literal.d.ts +0 -6
- package/typings/common/filter/ast/terms/qualified-identifier.d.ts +0 -4
- package/typings/common/filter/ast/terms/string-literal.d.ts +0 -5
- package/typings/common/filter/ast/terms/time-literal.d.ts +0 -6
- package/typings/common/filter/build.d.ts +0 -31
- package/typings/common/filter/error-listener.d.ts +0 -8
- package/typings/common/filter/errors.d.ts +0 -20
- package/typings/common/filter/filter-tree-visitor.d.ts +0 -30
- package/typings/common/filter/index.d.ts +0 -5
- package/typings/common/filter/parse.d.ts +0 -2
- package/typings/common/filter/utils.d.ts +0 -2
- package/typings/common/helpers/index.d.ts +0 -1
- package/typings/common/helpers/responsive-map.d.ts +0 -18
- package/typings/common/http/enums/http-headers.enum.d.ts +0 -379
- package/typings/common/http/enums/http-status.enum.d.ts +0 -290
- package/typings/common/http/http-request.d.ts +0 -34
- package/typings/common/http/index.d.ts +0 -6
- package/typings/common/http/interfaces/client-http-headers.interface.d.ts +0 -65
- package/typings/common/http/interfaces/server-http-headers.interface.d.ts +0 -1
- package/typings/common/http/multipart/batch-multipart.d.ts +0 -31
- package/typings/common/http/multipart/http-request-content.d.ts +0 -8
- package/typings/common/http/multipart/http-response-content.d.ts +0 -7
- package/typings/common/http/multipart/index.d.ts +0 -1
- package/typings/common/http/utils/normalize-headers.d.ts +0 -1
- package/typings/common/i18n/i18n.d.ts +0 -28
- package/typings/common/i18n/index.d.ts +0 -5
- package/typings/common/i18n/string-utils.d.ts +0 -2
- package/typings/common/i18n/translate.d.ts +0 -4
- package/typings/common/index.d.ts +0 -10
- package/typings/common/schema/constants.d.ts +0 -8
- package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
- package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
- package/typings/common/schema/decorators/opr-field.decorator.d.ts +0 -3
- package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +0 -8
- package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
- package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
- package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
- package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
- package/typings/common/schema/implementation/data-type/complex-type.d.ts +0 -29
- package/typings/common/schema/implementation/data-type/data-type.d.ts +0 -16
- package/typings/common/schema/implementation/data-type/simple-type.d.ts +0 -12
- package/typings/common/schema/implementation/data-type/union-type.d.ts +0 -16
- package/typings/common/schema/implementation/document-builder.d.ts +0 -16
- package/typings/common/schema/implementation/opra-document.d.ts +0 -44
- package/typings/common/schema/implementation/query/collection-count-query.d.ts +0 -14
- package/typings/common/schema/implementation/query/collection-create-query.d.ts +0 -18
- package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
- package/typings/common/schema/implementation/query/collection-delete-query.d.ts +0 -10
- package/typings/common/schema/implementation/query/collection-get-query.d.ts +0 -21
- package/typings/common/schema/implementation/query/collection-search-query.d.ts +0 -30
- package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +0 -15
- package/typings/common/schema/implementation/query/collection-update-query.d.ts +0 -19
- package/typings/common/schema/implementation/query/field-get-query.d.ts +0 -30
- package/typings/common/schema/implementation/query/index.d.ts +0 -27
- package/typings/common/schema/implementation/query/singleton-get-query.d.ts +0 -20
- package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +0 -19
- package/typings/common/schema/implementation/resource/container-resource-info.d.ts +0 -13
- package/typings/common/schema/implementation/resource/resource-info.d.ts +0 -17
- package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +0 -14
- package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
- package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
- package/typings/common/schema/index.d.ts +0 -25
- package/typings/common/schema/interfaces/child-field-query.interface.d.ts +0 -4
- package/typings/common/schema/interfaces/data-type.metadata.d.ts +0 -18
- package/typings/common/schema/interfaces/resource-container.interface.d.ts +0 -8
- package/typings/common/schema/interfaces/resource.metadata.d.ts +0 -18
- package/typings/common/schema/opra-schema.definition.d.ts +0 -178
- package/typings/common/schema/type-helpers/extend-type.helper.d.ts +0 -3
- package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +0 -2
- package/typings/common/schema/type-helpers/mixin.utils.d.ts +0 -3
- package/typings/common/schema/types.d.ts +0 -14
- package/typings/common/schema/utils/class.utils.d.ts +0 -2
- package/typings/common/schema/utils/clone-object.util.d.ts +0 -1
- package/typings/common/schema/utils/inspect.util.d.ts +0 -4
- package/typings/common/schema/utils/normalize-field-array.util.d.ts +0 -3
- package/typings/common/schema/utils/path-to-tree.util.d.ts +0 -4
- package/typings/common/schema/utils/string-compare.util.d.ts +0 -1
- package/typings/common/url/formats/boolean-format.d.ts +0 -5
- package/typings/common/url/formats/date-format.d.ts +0 -16
- package/typings/common/url/formats/filter-format.d.ts +0 -6
- package/typings/common/url/formats/format.d.ts +0 -4
- package/typings/common/url/formats/integer-format.d.ts +0 -9
- package/typings/common/url/formats/number-format.d.ts +0 -12
- package/typings/common/url/formats/string-format.d.ts +0 -14
- package/typings/common/url/index.d.ts +0 -5
- package/typings/common/url/opra-url-path-component.d.ts +0 -15
- package/typings/common/url/opra-url-path.d.ts +0 -30
- package/typings/common/url/opra-url-search-params.d.ts +0 -44
- package/typings/common/url/opra-url.d.ts +0 -79
- package/typings/common/url/utils/path-utils.d.ts +0 -8
- package/typings/common/utils/index.d.ts +0 -3
- package/typings/common/utils/is-url.d.ts +0 -1
- package/typings/common/utils/path-to-tree.d.ts +0 -4
- package/typings/common/utils/type-guards.d.ts +0 -9
- package/umd/934.min.cjs +0 -1
- package/umd/main.min.cjs +0 -2
- package/umd/main.min.cjs.LICENSE.txt +0 -13
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { Array2DHashSet } from "../misc/Array2DHashSet";
|
|
6
|
-
import { ATN } from "./ATN";
|
|
7
|
-
import { ATNConfig } from "./ATNConfig";
|
|
8
|
-
import { ATNState } from "./ATNState";
|
|
9
|
-
import { BitSet } from "../misc/BitSet";
|
|
10
|
-
import { IntervalSet } from "../misc/IntervalSet";
|
|
11
|
-
import { PredictionContext } from "./PredictionContext";
|
|
12
|
-
export declare class LL1Analyzer {
|
|
13
|
-
/** Special value added to the lookahead sets to indicate that we hit
|
|
14
|
-
* a predicate during analysis if `seeThruPreds==false`.
|
|
15
|
-
*/
|
|
16
|
-
static readonly HIT_PRED: number;
|
|
17
|
-
atn: ATN;
|
|
18
|
-
constructor(atn: ATN);
|
|
19
|
-
/**
|
|
20
|
-
* Calculates the SLL(1) expected lookahead set for each outgoing transition
|
|
21
|
-
* of an {@link ATNState}. The returned array has one element for each
|
|
22
|
-
* outgoing transition in `s`. If the closure from transition
|
|
23
|
-
* *i* leads to a semantic predicate before matching a symbol, the
|
|
24
|
-
* element at index *i* of the result will be `undefined`.
|
|
25
|
-
*
|
|
26
|
-
* @param s the ATN state
|
|
27
|
-
* @returns the expected symbols for each outgoing transition of `s`.
|
|
28
|
-
*/
|
|
29
|
-
getDecisionLookahead(s: ATNState | undefined): Array<IntervalSet | undefined> | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Compute set of tokens that can follow `s` in the ATN in the
|
|
32
|
-
* specified `ctx`.
|
|
33
|
-
*
|
|
34
|
-
* If `ctx` is `undefined` and the end of the rule containing
|
|
35
|
-
* `s` is reached, {@link Token#EPSILON} is added to the result set.
|
|
36
|
-
* If `ctx` is not `undefined` and the end of the outermost rule is
|
|
37
|
-
* reached, {@link Token#EOF} is added to the result set.
|
|
38
|
-
*
|
|
39
|
-
* @param s the ATN state
|
|
40
|
-
* @param ctx the complete parser context, or `undefined` if the context
|
|
41
|
-
* should be ignored
|
|
42
|
-
*
|
|
43
|
-
* @returns The set of tokens that can follow `s` in the ATN in the
|
|
44
|
-
* specified `ctx`.
|
|
45
|
-
*/
|
|
46
|
-
LOOK(/*@NotNull*/ s: ATNState, /*@NotNull*/ ctx: PredictionContext): IntervalSet;
|
|
47
|
-
/**
|
|
48
|
-
* Compute set of tokens that can follow `s` in the ATN in the
|
|
49
|
-
* specified `ctx`.
|
|
50
|
-
*
|
|
51
|
-
* If `ctx` is `undefined` and the end of the rule containing
|
|
52
|
-
* `s` is reached, {@link Token#EPSILON} is added to the result set.
|
|
53
|
-
* If `ctx` is not `PredictionContext#EMPTY_LOCAL` and the end of the outermost rule is
|
|
54
|
-
* reached, {@link Token#EOF} is added to the result set.
|
|
55
|
-
*
|
|
56
|
-
* @param s the ATN state
|
|
57
|
-
* @param stopState the ATN state to stop at. This can be a
|
|
58
|
-
* {@link BlockEndState} to detect epsilon paths through a closure.
|
|
59
|
-
* @param ctx the complete parser context, or `undefined` if the context
|
|
60
|
-
* should be ignored
|
|
61
|
-
*
|
|
62
|
-
* @returns The set of tokens that can follow `s` in the ATN in the
|
|
63
|
-
* specified `ctx`.
|
|
64
|
-
*/
|
|
65
|
-
LOOK(/*@NotNull*/ s: ATNState, /*@NotNull*/ ctx: PredictionContext, stopState: ATNState | null): IntervalSet;
|
|
66
|
-
/**
|
|
67
|
-
* Compute set of tokens that can follow `s` in the ATN in the
|
|
68
|
-
* specified `ctx`.
|
|
69
|
-
* <p/>
|
|
70
|
-
* If `ctx` is {@link PredictionContext#EMPTY_LOCAL} and
|
|
71
|
-
* `stopState` or the end of the rule containing `s` is reached,
|
|
72
|
-
* {@link Token#EPSILON} is added to the result set. If `ctx` is not
|
|
73
|
-
* {@link PredictionContext#EMPTY_LOCAL} and `addEOF` is `true`
|
|
74
|
-
* and `stopState` or the end of the outermost rule is reached,
|
|
75
|
-
* {@link Token#EOF} is added to the result set.
|
|
76
|
-
*
|
|
77
|
-
* @param s the ATN state.
|
|
78
|
-
* @param stopState the ATN state to stop at. This can be a
|
|
79
|
-
* {@link BlockEndState} to detect epsilon paths through a closure.
|
|
80
|
-
* @param ctx The outer context, or {@link PredictionContext#EMPTY_LOCAL} if
|
|
81
|
-
* the outer context should not be used.
|
|
82
|
-
* @param look The result lookahead set.
|
|
83
|
-
* @param lookBusy A set used for preventing epsilon closures in the ATN
|
|
84
|
-
* from causing a stack overflow. Outside code should pass
|
|
85
|
-
* `new HashSet<ATNConfig>` for this argument.
|
|
86
|
-
* @param calledRuleStack A set used for preventing left recursion in the
|
|
87
|
-
* ATN from causing a stack overflow. Outside code should pass
|
|
88
|
-
* `new BitSet()` for this argument.
|
|
89
|
-
* @param seeThruPreds `true` to true semantic predicates as
|
|
90
|
-
* implicitly `true` and "see through them", otherwise `false`
|
|
91
|
-
* to treat semantic predicates as opaque and add {@link #HIT_PRED} to the
|
|
92
|
-
* result if one is encountered.
|
|
93
|
-
* @param addEOF Add {@link Token#EOF} to the result if the end of the
|
|
94
|
-
* outermost context is reached. This parameter has no effect if `ctx`
|
|
95
|
-
* is {@link PredictionContext#EMPTY_LOCAL}.
|
|
96
|
-
*/
|
|
97
|
-
protected _LOOK(s: ATNState, stopState: ATNState | undefined, ctx: PredictionContext, look: IntervalSet, lookBusy: Array2DHashSet<ATNConfig>, calledRuleStack: BitSet, seeThruPreds: boolean, addEOF: boolean): void;
|
|
98
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { ATN } from "./ATN";
|
|
6
|
-
import { ATNConfig } from "./ATNConfig";
|
|
7
|
-
import { ATNConfigSet } from "./ATNConfigSet";
|
|
8
|
-
import { ATNSimulator } from "./ATNSimulator";
|
|
9
|
-
import { ATNState } from "./ATNState";
|
|
10
|
-
import { CharStream } from "../CharStream";
|
|
11
|
-
import { DFA } from "../dfa/DFA";
|
|
12
|
-
import { DFAState } from "../dfa/DFAState";
|
|
13
|
-
import { Lexer } from "../Lexer";
|
|
14
|
-
import { LexerActionExecutor } from "./LexerActionExecutor";
|
|
15
|
-
import { Transition } from "./Transition";
|
|
16
|
-
/** "dup" of ParserInterpreter */
|
|
17
|
-
export declare class LexerATNSimulator extends ATNSimulator {
|
|
18
|
-
optimize_tail_calls: boolean;
|
|
19
|
-
protected recog: Lexer | undefined;
|
|
20
|
-
/** The current token's starting index into the character stream.
|
|
21
|
-
* Shared across DFA to ATN simulation in case the ATN fails and the
|
|
22
|
-
* DFA did not have a previous accept state. In this case, we use the
|
|
23
|
-
* ATN-generated exception object.
|
|
24
|
-
*/
|
|
25
|
-
protected startIndex: number;
|
|
26
|
-
/** line number 1..n within the input */
|
|
27
|
-
private _line;
|
|
28
|
-
/** The index of the character relative to the beginning of the line 0..n-1 */
|
|
29
|
-
private _charPositionInLine;
|
|
30
|
-
protected mode: number;
|
|
31
|
-
/** Used during DFA/ATN exec to record the most recent accept configuration info */
|
|
32
|
-
protected prevAccept: LexerATNSimulator.SimState;
|
|
33
|
-
constructor(/*@NotNull*/ atn: ATN);
|
|
34
|
-
constructor(/*@NotNull*/ atn: ATN, recog: Lexer | undefined);
|
|
35
|
-
copyState(simulator: LexerATNSimulator): void;
|
|
36
|
-
match(input: CharStream, mode: number): number;
|
|
37
|
-
reset(): void;
|
|
38
|
-
protected matchATN(input: CharStream): number;
|
|
39
|
-
protected execATN(input: CharStream, ds0: DFAState): number;
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing target state for an edge in the DFA. If the target state
|
|
42
|
-
* for the edge has not yet been computed or is otherwise not available,
|
|
43
|
-
* this method returns `undefined`.
|
|
44
|
-
*
|
|
45
|
-
* @param s The current DFA state
|
|
46
|
-
* @param t The next input symbol
|
|
47
|
-
* @returns The existing target DFA state for the given input symbol
|
|
48
|
-
* `t`, or `undefined` if the target state for this edge is not
|
|
49
|
-
* already cached
|
|
50
|
-
*/
|
|
51
|
-
protected getExistingTargetState(s: DFAState, t: number): DFAState | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Compute a target state for an edge in the DFA, and attempt to add the
|
|
54
|
-
* computed state and corresponding edge to the DFA.
|
|
55
|
-
*
|
|
56
|
-
* @param input The input stream
|
|
57
|
-
* @param s The current DFA state
|
|
58
|
-
* @param t The next input symbol
|
|
59
|
-
*
|
|
60
|
-
* @returns The computed target DFA state for the given input symbol
|
|
61
|
-
* `t`. If `t` does not lead to a valid DFA state, this method
|
|
62
|
-
* returns {@link #ERROR}.
|
|
63
|
-
*/
|
|
64
|
-
protected computeTargetState(input: CharStream, s: DFAState, t: number): DFAState;
|
|
65
|
-
protected failOrAccept(prevAccept: LexerATNSimulator.SimState, input: CharStream, reach: ATNConfigSet, t: number): number;
|
|
66
|
-
/** Given a starting configuration set, figure out all ATN configurations
|
|
67
|
-
* we can reach upon input `t`. Parameter `reach` is a return
|
|
68
|
-
* parameter.
|
|
69
|
-
*/
|
|
70
|
-
protected getReachableConfigSet(input: CharStream, closure: ATNConfigSet, reach: ATNConfigSet, t: number): void;
|
|
71
|
-
protected accept(input: CharStream, lexerActionExecutor: LexerActionExecutor | undefined, startIndex: number, index: number, line: number, charPos: number): void;
|
|
72
|
-
protected getReachableTarget(trans: Transition, t: number): ATNState | undefined;
|
|
73
|
-
protected computeStartState(input: CharStream, p: ATNState): ATNConfigSet;
|
|
74
|
-
/**
|
|
75
|
-
* Since the alternatives within any lexer decision are ordered by
|
|
76
|
-
* preference, this method stops pursuing the closure as soon as an accept
|
|
77
|
-
* state is reached. After the first accept state is reached by depth-first
|
|
78
|
-
* search from `config`, all other (potentially reachable) states for
|
|
79
|
-
* this rule would have a lower priority.
|
|
80
|
-
*
|
|
81
|
-
* @returns `true` if an accept state is reached, otherwise
|
|
82
|
-
* `false`.
|
|
83
|
-
*/
|
|
84
|
-
protected closure(input: CharStream, config: ATNConfig, configs: ATNConfigSet, currentAltReachedAcceptState: boolean, speculative: boolean, treatEofAsEpsilon: boolean): boolean;
|
|
85
|
-
protected getEpsilonTarget(input: CharStream, config: ATNConfig, t: Transition, configs: ATNConfigSet, speculative: boolean, treatEofAsEpsilon: boolean): ATNConfig | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Evaluate a predicate specified in the lexer.
|
|
88
|
-
*
|
|
89
|
-
* If `speculative` is `true`, this method was called before
|
|
90
|
-
* {@link #consume} for the matched character. This method should call
|
|
91
|
-
* {@link #consume} before evaluating the predicate to ensure position
|
|
92
|
-
* sensitive values, including {@link Lexer#getText}, {@link Lexer#getLine},
|
|
93
|
-
* and {@link Lexer#getCharPositionInLine}, properly reflect the current
|
|
94
|
-
* lexer state. This method should restore `input` and the simulator
|
|
95
|
-
* to the original state before returning (i.e. undo the actions made by the
|
|
96
|
-
* call to {@link #consume}.
|
|
97
|
-
*
|
|
98
|
-
* @param input The input stream.
|
|
99
|
-
* @param ruleIndex The rule containing the predicate.
|
|
100
|
-
* @param predIndex The index of the predicate within the rule.
|
|
101
|
-
* @param speculative `true` if the current index in `input` is
|
|
102
|
-
* one character before the predicate's location.
|
|
103
|
-
*
|
|
104
|
-
* @returns `true` if the specified predicate evaluates to
|
|
105
|
-
* `true`.
|
|
106
|
-
*/
|
|
107
|
-
protected evaluatePredicate(input: CharStream, ruleIndex: number, predIndex: number, speculative: boolean): boolean;
|
|
108
|
-
protected captureSimState(settings: LexerATNSimulator.SimState, input: CharStream, dfaState: DFAState): void;
|
|
109
|
-
protected addDFAEdge(/*@NotNull*/ p: DFAState, t: number, /*@NotNull*/ q: ATNConfigSet): DFAState;
|
|
110
|
-
protected addDFAEdge(/*@NotNull*/ p: DFAState, t: number, /*@NotNull*/ q: DFAState): void;
|
|
111
|
-
/** Add a new DFA state if there isn't one with this set of
|
|
112
|
-
* configurations already. This method also detects the first
|
|
113
|
-
* configuration containing an ATN rule stop state. Later, when
|
|
114
|
-
* traversing the DFA, we will know which rule to accept.
|
|
115
|
-
*/
|
|
116
|
-
protected addDFAState(configs: ATNConfigSet): DFAState;
|
|
117
|
-
getDFA(mode: number): DFA;
|
|
118
|
-
/** Get the text matched so far for the current token.
|
|
119
|
-
*/
|
|
120
|
-
getText(input: CharStream): string;
|
|
121
|
-
get line(): number;
|
|
122
|
-
set line(line: number);
|
|
123
|
-
get charPositionInLine(): number;
|
|
124
|
-
set charPositionInLine(charPositionInLine: number);
|
|
125
|
-
consume(input: CharStream): void;
|
|
126
|
-
getTokenName(t: number): string;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace LexerATNSimulator {
|
|
129
|
-
const debug: boolean;
|
|
130
|
-
const dfa_debug: boolean;
|
|
131
|
-
/** When we hit an accept state in either the DFA or the ATN, we
|
|
132
|
-
* have to notify the character stream to start buffering characters
|
|
133
|
-
* via {@link IntStream#mark} and record the current state. The current sim state
|
|
134
|
-
* includes the current index into the input, the current line,
|
|
135
|
-
* and current character position in that line. Note that the Lexer is
|
|
136
|
-
* tracking the starting line and characterization of the token. These
|
|
137
|
-
* variables track the "state" of the simulator when it hits an accept state.
|
|
138
|
-
*
|
|
139
|
-
* We track these variables separately for the DFA and ATN simulation
|
|
140
|
-
* because the DFA simulation often has to fail over to the ATN
|
|
141
|
-
* simulation. If the ATN simulation fails, we need the DFA to fall
|
|
142
|
-
* back to its previously accepted state, if any. If the ATN succeeds,
|
|
143
|
-
* then the ATN does the accept and the DFA simulator that invoked it
|
|
144
|
-
* can simply return the predicted token type.
|
|
145
|
-
*/
|
|
146
|
-
class SimState {
|
|
147
|
-
index: number;
|
|
148
|
-
line: number;
|
|
149
|
-
charPos: number;
|
|
150
|
-
dfaState?: DFAState;
|
|
151
|
-
reset(): void;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { Equatable } from "../misc/Stubs";
|
|
6
|
-
import { Lexer } from "../Lexer";
|
|
7
|
-
import { LexerActionType } from "./LexerActionType";
|
|
8
|
-
/**
|
|
9
|
-
* Represents a single action which can be executed following the successful
|
|
10
|
-
* match of a lexer rule. Lexer actions are used for both embedded action syntax
|
|
11
|
-
* and ANTLR 4's new lexer command syntax.
|
|
12
|
-
*
|
|
13
|
-
* @author Sam Harwell
|
|
14
|
-
* @since 4.2
|
|
15
|
-
*/
|
|
16
|
-
export interface LexerAction extends Equatable {
|
|
17
|
-
/**
|
|
18
|
-
* Gets the serialization type of the lexer action.
|
|
19
|
-
*
|
|
20
|
-
* @returns The serialization type of the lexer action.
|
|
21
|
-
*/
|
|
22
|
-
readonly actionType: LexerActionType;
|
|
23
|
-
/**
|
|
24
|
-
* Gets whether the lexer action is position-dependent. Position-dependent
|
|
25
|
-
* actions may have different semantics depending on the {@link CharStream}
|
|
26
|
-
* index at the time the action is executed.
|
|
27
|
-
*
|
|
28
|
-
* Many lexer commands, including `type`, `skip`, and
|
|
29
|
-
* `more`, do not check the input index during their execution.
|
|
30
|
-
* Actions like this are position-independent, and may be stored more
|
|
31
|
-
* efficiently as part of the `ATNConfig.lexerActionExecutor`.
|
|
32
|
-
*
|
|
33
|
-
* @returns `true` if the lexer action semantics can be affected by the
|
|
34
|
-
* position of the input {@link CharStream} at the time it is executed;
|
|
35
|
-
* otherwise, `false`.
|
|
36
|
-
*/
|
|
37
|
-
readonly isPositionDependent: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Execute the lexer action in the context of the specified {@link Lexer}.
|
|
40
|
-
*
|
|
41
|
-
* For position-dependent actions, the input stream must already be
|
|
42
|
-
* positioned correctly prior to calling this method.
|
|
43
|
-
*
|
|
44
|
-
* @param lexer The lexer instance.
|
|
45
|
-
*/
|
|
46
|
-
execute(/*@NotNull*/ lexer: Lexer): void;
|
|
47
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { CharStream } from "../CharStream";
|
|
6
|
-
import { Lexer } from "../Lexer";
|
|
7
|
-
import { LexerAction } from "./LexerAction";
|
|
8
|
-
/**
|
|
9
|
-
* Represents an executor for a sequence of lexer actions which traversed during
|
|
10
|
-
* the matching operation of a lexer rule (token).
|
|
11
|
-
*
|
|
12
|
-
* The executor tracks position information for position-dependent lexer actions
|
|
13
|
-
* efficiently, ensuring that actions appearing only at the end of the rule do
|
|
14
|
-
* not cause bloating of the {@link DFA} created for the lexer.
|
|
15
|
-
*
|
|
16
|
-
* @author Sam Harwell
|
|
17
|
-
* @since 4.2
|
|
18
|
-
*/
|
|
19
|
-
export declare class LexerActionExecutor {
|
|
20
|
-
private _lexerActions;
|
|
21
|
-
/**
|
|
22
|
-
* Caches the result of {@link #hashCode} since the hash code is an element
|
|
23
|
-
* of the performance-critical {@link LexerATNConfig#hashCode} operation.
|
|
24
|
-
*/
|
|
25
|
-
private cachedHashCode;
|
|
26
|
-
/**
|
|
27
|
-
* Constructs an executor for a sequence of {@link LexerAction} actions.
|
|
28
|
-
* @param lexerActions The lexer actions to execute.
|
|
29
|
-
*/
|
|
30
|
-
constructor(lexerActions: LexerAction[]);
|
|
31
|
-
/**
|
|
32
|
-
* Creates a {@link LexerActionExecutor} which executes the actions for
|
|
33
|
-
* the input `lexerActionExecutor` followed by a specified
|
|
34
|
-
* `lexerAction`.
|
|
35
|
-
*
|
|
36
|
-
* @param lexerActionExecutor The executor for actions already traversed by
|
|
37
|
-
* the lexer while matching a token within a particular
|
|
38
|
-
* {@link ATNConfig}. If this is `undefined`, the method behaves as though
|
|
39
|
-
* it were an empty executor.
|
|
40
|
-
* @param lexerAction The lexer action to execute after the actions
|
|
41
|
-
* specified in `lexerActionExecutor`.
|
|
42
|
-
*
|
|
43
|
-
* @returns A {@link LexerActionExecutor} for executing the combine actions
|
|
44
|
-
* of `lexerActionExecutor` and `lexerAction`.
|
|
45
|
-
*/
|
|
46
|
-
static append(lexerActionExecutor: LexerActionExecutor | undefined, lexerAction: LexerAction): LexerActionExecutor;
|
|
47
|
-
/**
|
|
48
|
-
* Creates a {@link LexerActionExecutor} which encodes the current offset
|
|
49
|
-
* for position-dependent lexer actions.
|
|
50
|
-
*
|
|
51
|
-
* Normally, when the executor encounters lexer actions where
|
|
52
|
-
* {@link LexerAction#isPositionDependent} returns `true`, it calls
|
|
53
|
-
* {@link IntStream#seek} on the input {@link CharStream} to set the input
|
|
54
|
-
* position to the *end* of the current token. This behavior provides
|
|
55
|
-
* for efficient DFA representation of lexer actions which appear at the end
|
|
56
|
-
* of a lexer rule, even when the lexer rule matches a variable number of
|
|
57
|
-
* characters.
|
|
58
|
-
*
|
|
59
|
-
* Prior to traversing a match transition in the ATN, the current offset
|
|
60
|
-
* from the token start index is assigned to all position-dependent lexer
|
|
61
|
-
* actions which have not already been assigned a fixed offset. By storing
|
|
62
|
-
* the offsets relative to the token start index, the DFA representation of
|
|
63
|
-
* lexer actions which appear in the middle of tokens remains efficient due
|
|
64
|
-
* to sharing among tokens of the same length, regardless of their absolute
|
|
65
|
-
* position in the input stream.
|
|
66
|
-
*
|
|
67
|
-
* If the current executor already has offsets assigned to all
|
|
68
|
-
* position-dependent lexer actions, the method returns `this`.
|
|
69
|
-
*
|
|
70
|
-
* @param offset The current offset to assign to all position-dependent
|
|
71
|
-
* lexer actions which do not already have offsets assigned.
|
|
72
|
-
*
|
|
73
|
-
* @returns A {@link LexerActionExecutor} which stores input stream offsets
|
|
74
|
-
* for all position-dependent lexer actions.
|
|
75
|
-
*/
|
|
76
|
-
fixOffsetBeforeMatch(offset: number): LexerActionExecutor;
|
|
77
|
-
/**
|
|
78
|
-
* Gets the lexer actions to be executed by this executor.
|
|
79
|
-
* @returns The lexer actions to be executed by this executor.
|
|
80
|
-
*/
|
|
81
|
-
get lexerActions(): LexerAction[];
|
|
82
|
-
/**
|
|
83
|
-
* Execute the actions encapsulated by this executor within the context of a
|
|
84
|
-
* particular {@link Lexer}.
|
|
85
|
-
*
|
|
86
|
-
* This method calls {@link IntStream#seek} to set the position of the
|
|
87
|
-
* `input` {@link CharStream} prior to calling
|
|
88
|
-
* {@link LexerAction#execute} on a position-dependent action. Before the
|
|
89
|
-
* method returns, the input position will be restored to the same position
|
|
90
|
-
* it was in when the method was invoked.
|
|
91
|
-
*
|
|
92
|
-
* @param lexer The lexer instance.
|
|
93
|
-
* @param input The input stream which is the source for the current token.
|
|
94
|
-
* When this method is called, the current {@link IntStream#index} for
|
|
95
|
-
* `input` should be the start of the following token, i.e. 1
|
|
96
|
-
* character past the end of the current token.
|
|
97
|
-
* @param startIndex The token start index. This value may be passed to
|
|
98
|
-
* {@link IntStream#seek} to set the `input` position to the beginning
|
|
99
|
-
* of the token.
|
|
100
|
-
*/
|
|
101
|
-
execute(lexer: Lexer, input: CharStream, startIndex: number): void;
|
|
102
|
-
hashCode(): number;
|
|
103
|
-
equals(obj: any): boolean;
|
|
104
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the serialization type of a {@link LexerAction}.
|
|
7
|
-
*
|
|
8
|
-
* @author Sam Harwell
|
|
9
|
-
* @since 4.2
|
|
10
|
-
*/
|
|
11
|
-
export declare const enum LexerActionType {
|
|
12
|
-
/**
|
|
13
|
-
* The type of a {@link LexerChannelAction} action.
|
|
14
|
-
*/
|
|
15
|
-
CHANNEL = 0,
|
|
16
|
-
/**
|
|
17
|
-
* The type of a {@link LexerCustomAction} action.
|
|
18
|
-
*/
|
|
19
|
-
CUSTOM = 1,
|
|
20
|
-
/**
|
|
21
|
-
* The type of a {@link LexerModeAction} action.
|
|
22
|
-
*/
|
|
23
|
-
MODE = 2,
|
|
24
|
-
/**
|
|
25
|
-
* The type of a {@link LexerMoreAction} action.
|
|
26
|
-
*/
|
|
27
|
-
MORE = 3,
|
|
28
|
-
/**
|
|
29
|
-
* The type of a {@link LexerPopModeAction} action.
|
|
30
|
-
*/
|
|
31
|
-
POP_MODE = 4,
|
|
32
|
-
/**
|
|
33
|
-
* The type of a {@link LexerPushModeAction} action.
|
|
34
|
-
*/
|
|
35
|
-
PUSH_MODE = 5,
|
|
36
|
-
/**
|
|
37
|
-
* The type of a {@link LexerSkipAction} action.
|
|
38
|
-
*/
|
|
39
|
-
SKIP = 6,
|
|
40
|
-
/**
|
|
41
|
-
* The type of a {@link LexerTypeAction} action.
|
|
42
|
-
*/
|
|
43
|
-
TYPE = 7
|
|
44
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { Lexer } from "../Lexer";
|
|
6
|
-
import { LexerAction } from "./LexerAction";
|
|
7
|
-
import { LexerActionType } from "./LexerActionType";
|
|
8
|
-
/**
|
|
9
|
-
* Implements the `channel` lexer action by calling
|
|
10
|
-
* {@link Lexer#setChannel} with the assigned channel.
|
|
11
|
-
*
|
|
12
|
-
* @author Sam Harwell
|
|
13
|
-
* @since 4.2
|
|
14
|
-
*/
|
|
15
|
-
export declare class LexerChannelAction implements LexerAction {
|
|
16
|
-
private readonly _channel;
|
|
17
|
-
/**
|
|
18
|
-
* Constructs a new `channel` action with the specified channel value.
|
|
19
|
-
* @param channel The channel value to pass to {@link Lexer#setChannel}.
|
|
20
|
-
*/
|
|
21
|
-
constructor(channel: number);
|
|
22
|
-
/**
|
|
23
|
-
* Gets the channel to use for the {@link Token} created by the lexer.
|
|
24
|
-
*
|
|
25
|
-
* @returns The channel to use for the {@link Token} created by the lexer.
|
|
26
|
-
*/
|
|
27
|
-
get channel(): number;
|
|
28
|
-
/**
|
|
29
|
-
* {@inheritDoc}
|
|
30
|
-
* @returns This method returns {@link LexerActionType#CHANNEL}.
|
|
31
|
-
*/
|
|
32
|
-
get actionType(): LexerActionType;
|
|
33
|
-
/**
|
|
34
|
-
* {@inheritDoc}
|
|
35
|
-
* @returns This method returns `false`.
|
|
36
|
-
*/
|
|
37
|
-
get isPositionDependent(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* {@inheritDoc}
|
|
40
|
-
*
|
|
41
|
-
* This action is implemented by calling {@link Lexer#setChannel} with the
|
|
42
|
-
* value provided by {@link #getChannel}.
|
|
43
|
-
*/
|
|
44
|
-
execute(lexer: Lexer): void;
|
|
45
|
-
hashCode(): number;
|
|
46
|
-
equals(obj: any): boolean;
|
|
47
|
-
toString(): string;
|
|
48
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { Lexer } from "../Lexer";
|
|
6
|
-
import { LexerAction } from "./LexerAction";
|
|
7
|
-
import { LexerActionType } from "./LexerActionType";
|
|
8
|
-
/**
|
|
9
|
-
* Executes a custom lexer action by calling {@link Recognizer#action} with the
|
|
10
|
-
* rule and action indexes assigned to the custom action. The implementation of
|
|
11
|
-
* a custom action is added to the generated code for the lexer in an override
|
|
12
|
-
* of {@link Recognizer#action} when the grammar is compiled.
|
|
13
|
-
*
|
|
14
|
-
* This class may represent embedded actions created with the `{...}`
|
|
15
|
-
* syntax in ANTLR 4, as well as actions created for lexer commands where the
|
|
16
|
-
* command argument could not be evaluated when the grammar was compiled.
|
|
17
|
-
*
|
|
18
|
-
* @author Sam Harwell
|
|
19
|
-
* @since 4.2
|
|
20
|
-
*/
|
|
21
|
-
export declare class LexerCustomAction implements LexerAction {
|
|
22
|
-
private readonly _ruleIndex;
|
|
23
|
-
private readonly _actionIndex;
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a custom lexer action with the specified rule and action
|
|
26
|
-
* indexes.
|
|
27
|
-
*
|
|
28
|
-
* @param ruleIndex The rule index to use for calls to
|
|
29
|
-
* {@link Recognizer#action}.
|
|
30
|
-
* @param actionIndex The action index to use for calls to
|
|
31
|
-
* {@link Recognizer#action}.
|
|
32
|
-
*/
|
|
33
|
-
constructor(ruleIndex: number, actionIndex: number);
|
|
34
|
-
/**
|
|
35
|
-
* Gets the rule index to use for calls to {@link Recognizer#action}.
|
|
36
|
-
*
|
|
37
|
-
* @returns The rule index for the custom action.
|
|
38
|
-
*/
|
|
39
|
-
get ruleIndex(): number;
|
|
40
|
-
/**
|
|
41
|
-
* Gets the action index to use for calls to {@link Recognizer#action}.
|
|
42
|
-
*
|
|
43
|
-
* @returns The action index for the custom action.
|
|
44
|
-
*/
|
|
45
|
-
get actionIndex(): number;
|
|
46
|
-
/**
|
|
47
|
-
* {@inheritDoc}
|
|
48
|
-
*
|
|
49
|
-
* @returns This method returns {@link LexerActionType#CUSTOM}.
|
|
50
|
-
*/
|
|
51
|
-
get actionType(): LexerActionType;
|
|
52
|
-
/**
|
|
53
|
-
* Gets whether the lexer action is position-dependent. Position-dependent
|
|
54
|
-
* actions may have different semantics depending on the {@link CharStream}
|
|
55
|
-
* index at the time the action is executed.
|
|
56
|
-
*
|
|
57
|
-
* Custom actions are position-dependent since they may represent a
|
|
58
|
-
* user-defined embedded action which makes calls to methods like
|
|
59
|
-
* {@link Lexer#getText}.
|
|
60
|
-
*
|
|
61
|
-
* @returns This method returns `true`.
|
|
62
|
-
*/
|
|
63
|
-
get isPositionDependent(): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* {@inheritDoc}
|
|
66
|
-
*
|
|
67
|
-
* Custom actions are implemented by calling {@link Lexer#action} with the
|
|
68
|
-
* appropriate rule and action indexes.
|
|
69
|
-
*/
|
|
70
|
-
execute(lexer: Lexer): void;
|
|
71
|
-
hashCode(): number;
|
|
72
|
-
equals(obj: any): boolean;
|
|
73
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
|
-
*/
|
|
5
|
-
import { Lexer } from "../Lexer";
|
|
6
|
-
import { LexerAction } from "./LexerAction";
|
|
7
|
-
import { LexerActionType } from "./LexerActionType";
|
|
8
|
-
/**
|
|
9
|
-
* This implementation of {@link LexerAction} is used for tracking input offsets
|
|
10
|
-
* for position-dependent actions within a {@link LexerActionExecutor}.
|
|
11
|
-
*
|
|
12
|
-
* This action is not serialized as part of the ATN, and is only required for
|
|
13
|
-
* position-dependent lexer actions which appear at a location other than the
|
|
14
|
-
* end of a rule. For more information about DFA optimizations employed for
|
|
15
|
-
* lexer actions, see {@link LexerActionExecutor#append} and
|
|
16
|
-
* {@link LexerActionExecutor#fixOffsetBeforeMatch}.
|
|
17
|
-
*
|
|
18
|
-
* @author Sam Harwell
|
|
19
|
-
* @since 4.2
|
|
20
|
-
*/
|
|
21
|
-
export declare class LexerIndexedCustomAction implements LexerAction {
|
|
22
|
-
private readonly _offset;
|
|
23
|
-
private readonly _action;
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new indexed custom action by associating a character offset
|
|
26
|
-
* with a {@link LexerAction}.
|
|
27
|
-
*
|
|
28
|
-
* Note: This class is only required for lexer actions for which
|
|
29
|
-
* {@link LexerAction#isPositionDependent} returns `true`.
|
|
30
|
-
*
|
|
31
|
-
* @param offset The offset into the input {@link CharStream}, relative to
|
|
32
|
-
* the token start index, at which the specified lexer action should be
|
|
33
|
-
* executed.
|
|
34
|
-
* @param action The lexer action to execute at a particular offset in the
|
|
35
|
-
* input {@link CharStream}.
|
|
36
|
-
*/
|
|
37
|
-
constructor(offset: number, action: LexerAction);
|
|
38
|
-
/**
|
|
39
|
-
* Gets the location in the input {@link CharStream} at which the lexer
|
|
40
|
-
* action should be executed. The value is interpreted as an offset relative
|
|
41
|
-
* to the token start index.
|
|
42
|
-
*
|
|
43
|
-
* @returns The location in the input {@link CharStream} at which the lexer
|
|
44
|
-
* action should be executed.
|
|
45
|
-
*/
|
|
46
|
-
get offset(): number;
|
|
47
|
-
/**
|
|
48
|
-
* Gets the lexer action to execute.
|
|
49
|
-
*
|
|
50
|
-
* @returns A {@link LexerAction} object which executes the lexer action.
|
|
51
|
-
*/
|
|
52
|
-
get action(): LexerAction;
|
|
53
|
-
/**
|
|
54
|
-
* {@inheritDoc}
|
|
55
|
-
*
|
|
56
|
-
* @returns This method returns the result of calling {@link #getActionType}
|
|
57
|
-
* on the {@link LexerAction} returned by {@link #getAction}.
|
|
58
|
-
*/
|
|
59
|
-
get actionType(): LexerActionType;
|
|
60
|
-
/**
|
|
61
|
-
* {@inheritDoc}
|
|
62
|
-
* @returns This method returns `true`.
|
|
63
|
-
*/
|
|
64
|
-
get isPositionDependent(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* {@inheritDoc}
|
|
67
|
-
*
|
|
68
|
-
* This method calls {@link #execute} on the result of {@link #getAction}
|
|
69
|
-
* using the provided `lexer`.
|
|
70
|
-
*/
|
|
71
|
-
execute(lexer: Lexer): void;
|
|
72
|
-
hashCode(): number;
|
|
73
|
-
equals(obj: any): boolean;
|
|
74
|
-
}
|