@opra/client 0.11.0 → 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 -18
- 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/714.min.cjs +0 -1
- package/cjs/antlr4ts.min.cjs +0 -2
- package/cjs/antlr4ts.min.cjs.LICENSE.txt +0 -4
- package/cjs/main.min.cjs +0 -1
- package/cjs/opra-common.min.cjs +0 -1
- package/cjs/vendors.min.cjs +0 -2
- package/cjs/vendors.min.cjs.LICENSE.txt +0 -52
- package/esm/714.min.mjs +0 -1
- package/esm/antlr4ts.min.mjs +0 -2
- package/esm/antlr4ts.min.mjs.LICENSE.txt +0 -4
- package/esm/main.min.mjs +0 -1
- package/esm/opra-common.min.mjs +0 -1
- package/esm/vendors.min.mjs +0 -2
- package/esm/vendors.min.mjs.LICENSE.txt +0 -52
- 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/714.min.cjs +0 -1
- package/umd/antlr4ts.min.cjs +0 -2
- package/umd/antlr4ts.min.cjs.LICENSE.txt +0 -4
- package/umd/main.min.cjs +0 -1
- package/umd/opra-common.min.cjs +0 -1
- package/umd/vendors.min.cjs +0 -2
- package/umd/vendors.min.cjs.LICENSE.txt +0 -52
|
@@ -1,53 +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 { CommonToken } from "./CommonToken";
|
|
7
|
-
import { TokenFactory } from "./TokenFactory";
|
|
8
|
-
import { TokenSource } from "./TokenSource";
|
|
9
|
-
/**
|
|
10
|
-
* This default implementation of {@link TokenFactory} creates
|
|
11
|
-
* {@link CommonToken} objects.
|
|
12
|
-
*/
|
|
13
|
-
export declare class CommonTokenFactory implements TokenFactory {
|
|
14
|
-
/**
|
|
15
|
-
* Indicates whether {@link CommonToken#setText} should be called after
|
|
16
|
-
* constructing tokens to explicitly set the text. This is useful for cases
|
|
17
|
-
* where the input stream might not be able to provide arbitrary substrings
|
|
18
|
-
* of text from the input after the lexer creates a token (e.g. the
|
|
19
|
-
* implementation of {@link CharStream#getText} in
|
|
20
|
-
* {@link UnbufferedCharStream}
|
|
21
|
-
* {@link UnsupportedOperationException}). Explicitly setting the token text
|
|
22
|
-
* allows {@link Token#getText} to be called at any time regardless of the
|
|
23
|
-
* input stream implementation.
|
|
24
|
-
*
|
|
25
|
-
* The default value is `false` to avoid the performance and memory
|
|
26
|
-
* overhead of copying text for every token unless explicitly requested.
|
|
27
|
-
*/
|
|
28
|
-
protected copyText: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Constructs a {@link CommonTokenFactory} with the specified value for
|
|
31
|
-
* {@link #copyText}.
|
|
32
|
-
*
|
|
33
|
-
* When `copyText` is `false`, the {@link #DEFAULT} instance
|
|
34
|
-
* should be used instead of constructing a new instance.
|
|
35
|
-
*
|
|
36
|
-
* @param copyText The value for {@link #copyText}.
|
|
37
|
-
*/
|
|
38
|
-
constructor(copyText?: boolean);
|
|
39
|
-
create(source: {
|
|
40
|
-
source?: TokenSource;
|
|
41
|
-
stream?: CharStream;
|
|
42
|
-
}, type: number, text: string | undefined, channel: number, start: number, stop: number, line: number, charPositionInLine: number): CommonToken;
|
|
43
|
-
createSimple(type: number, text: string): CommonToken;
|
|
44
|
-
}
|
|
45
|
-
export declare namespace CommonTokenFactory {
|
|
46
|
-
/**
|
|
47
|
-
* The default {@link CommonTokenFactory} instance.
|
|
48
|
-
*
|
|
49
|
-
* This token factory does not explicitly copy token text when constructing
|
|
50
|
-
* tokens.
|
|
51
|
-
*/
|
|
52
|
-
const DEFAULT: TokenFactory;
|
|
53
|
-
}
|
|
@@ -1,52 +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 { BufferedTokenStream } from "./BufferedTokenStream";
|
|
6
|
-
import { Token } from "./Token";
|
|
7
|
-
import { TokenSource } from "./TokenSource";
|
|
8
|
-
/**
|
|
9
|
-
* This class extends {@link BufferedTokenStream} with functionality to filter
|
|
10
|
-
* token streams to tokens on a particular channel (tokens where
|
|
11
|
-
* {@link Token#getChannel} returns a particular value).
|
|
12
|
-
*
|
|
13
|
-
* This token stream provides access to all tokens by index or when calling
|
|
14
|
-
* methods like {@link #getText}. The channel filtering is only used for code
|
|
15
|
-
* accessing tokens via the lookahead methods {@link #LA}, {@link #LT}, and
|
|
16
|
-
* {@link #LB}.
|
|
17
|
-
*
|
|
18
|
-
* By default, tokens are placed on the default channel
|
|
19
|
-
* ({@link Token#DEFAULT_CHANNEL}), but may be reassigned by using the
|
|
20
|
-
* `->channel(HIDDEN)` lexer command, or by using an embedded action to
|
|
21
|
-
* call {@link Lexer#setChannel}.
|
|
22
|
-
*
|
|
23
|
-
* Note: lexer rules which use the `->skip` lexer command or call
|
|
24
|
-
* {@link Lexer#skip} do not produce tokens at all, so input text matched by
|
|
25
|
-
* such a rule will not be available as part of the token stream, regardless of
|
|
26
|
-
* channel.
|
|
27
|
-
*/
|
|
28
|
-
export declare class CommonTokenStream extends BufferedTokenStream {
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the channel to use for filtering tokens.
|
|
31
|
-
*
|
|
32
|
-
* The default value is {@link Token#DEFAULT_CHANNEL}, which matches the
|
|
33
|
-
* default channel assigned to tokens created by the lexer.
|
|
34
|
-
*/
|
|
35
|
-
protected channel: number;
|
|
36
|
-
/**
|
|
37
|
-
* Constructs a new {@link CommonTokenStream} using the specified token
|
|
38
|
-
* source and filtering tokens to the specified channel. Only tokens whose
|
|
39
|
-
* {@link Token#getChannel} matches `channel` or have the
|
|
40
|
-
* `Token.type` equal to {@link Token#EOF} will be returned by the
|
|
41
|
-
* token stream lookahead methods.
|
|
42
|
-
*
|
|
43
|
-
* @param tokenSource The token source.
|
|
44
|
-
* @param channel The channel to use for filtering tokens.
|
|
45
|
-
*/
|
|
46
|
-
constructor(tokenSource: TokenSource, channel?: number);
|
|
47
|
-
protected adjustSeekIndex(i: number): number;
|
|
48
|
-
protected tryLB(k: number): Token | undefined;
|
|
49
|
-
tryLT(k: number): Token | undefined;
|
|
50
|
-
/** Count EOF just once. */
|
|
51
|
-
getNumberOfOnChannelTokens(): number;
|
|
52
|
-
}
|
|
@@ -1,29 +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 { ANTLRErrorListener } from "./ANTLRErrorListener";
|
|
6
|
-
import { RecognitionException } from "./RecognitionException";
|
|
7
|
-
import { Recognizer } from "./Recognizer";
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @author Sam Harwell
|
|
11
|
-
*/
|
|
12
|
-
export declare class ConsoleErrorListener implements ANTLRErrorListener<any> {
|
|
13
|
-
/**
|
|
14
|
-
* Provides a default instance of {@link ConsoleErrorListener}.
|
|
15
|
-
*/
|
|
16
|
-
static readonly INSTANCE: ConsoleErrorListener;
|
|
17
|
-
/**
|
|
18
|
-
* {@inheritDoc}
|
|
19
|
-
*
|
|
20
|
-
* This implementation prints messages to {@link System#err} containing the
|
|
21
|
-
* values of `line`, `charPositionInLine`, and `msg` using
|
|
22
|
-
* the following format.
|
|
23
|
-
*
|
|
24
|
-
* <pre>
|
|
25
|
-
* line *line*:*charPositionInLine* *msg*
|
|
26
|
-
* </pre>
|
|
27
|
-
*/
|
|
28
|
-
syntaxError<T>(recognizer: Recognizer<T, any>, offendingSymbol: T, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
|
|
29
|
-
}
|
|
@@ -1,8 +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
|
-
export declare function NotNull(target: any, propertyKey: PropertyKey, propertyDescriptor?: PropertyDescriptor | number): void;
|
|
6
|
-
export declare function Nullable(target: any, propertyKey: PropertyKey, propertyDescriptor?: PropertyDescriptor | number): void;
|
|
7
|
-
export declare function Override(target: any, propertyKey: PropertyKey, propertyDescriptor?: PropertyDescriptor): void;
|
|
8
|
-
export declare function SuppressWarnings(options: string): (target: any, propertyKey: PropertyKey, descriptor?: PropertyDescriptor | undefined) => void;
|
|
@@ -1,347 +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 { ANTLRErrorStrategy } from "./ANTLRErrorStrategy";
|
|
6
|
-
import { FailedPredicateException } from "./FailedPredicateException";
|
|
7
|
-
import { InputMismatchException } from "./InputMismatchException";
|
|
8
|
-
import { IntervalSet } from "./misc/IntervalSet";
|
|
9
|
-
import { NoViableAltException } from "./NoViableAltException";
|
|
10
|
-
import { Parser } from "./Parser";
|
|
11
|
-
import { ParserRuleContext } from "./ParserRuleContext";
|
|
12
|
-
import { RecognitionException } from "./RecognitionException";
|
|
13
|
-
import { Token } from "./Token";
|
|
14
|
-
import { TokenSource } from "./TokenSource";
|
|
15
|
-
/**
|
|
16
|
-
* This is the default implementation of {@link ANTLRErrorStrategy} used for
|
|
17
|
-
* error reporting and recovery in ANTLR parsers.
|
|
18
|
-
*/
|
|
19
|
-
export declare class DefaultErrorStrategy implements ANTLRErrorStrategy {
|
|
20
|
-
/**
|
|
21
|
-
* Indicates whether the error strategy is currently "recovering from an
|
|
22
|
-
* error". This is used to suppress reporting multiple error messages while
|
|
23
|
-
* attempting to recover from a detected syntax error.
|
|
24
|
-
*
|
|
25
|
-
* @see #inErrorRecoveryMode
|
|
26
|
-
*/
|
|
27
|
-
protected errorRecoveryMode: boolean;
|
|
28
|
-
/** The index into the input stream where the last error occurred.
|
|
29
|
-
* This is used to prevent infinite loops where an error is found
|
|
30
|
-
* but no token is consumed during recovery...another error is found,
|
|
31
|
-
* ad nauseum. This is a failsafe mechanism to guarantee that at least
|
|
32
|
-
* one token/tree node is consumed for two errors.
|
|
33
|
-
*/
|
|
34
|
-
protected lastErrorIndex: number;
|
|
35
|
-
protected lastErrorStates?: IntervalSet;
|
|
36
|
-
/**
|
|
37
|
-
* This field is used to propagate information about the lookahead following
|
|
38
|
-
* the previous match. Since prediction prefers completing the current rule
|
|
39
|
-
* to error recovery efforts, error reporting may occur later than the
|
|
40
|
-
* original point where it was discoverable. The original context is used to
|
|
41
|
-
* compute the true expected sets as though the reporting occurred as early
|
|
42
|
-
* as possible.
|
|
43
|
-
*/
|
|
44
|
-
protected nextTokensContext?: ParserRuleContext;
|
|
45
|
-
/**
|
|
46
|
-
* @see #nextTokensContext
|
|
47
|
-
*/
|
|
48
|
-
protected nextTokensState: number;
|
|
49
|
-
/**
|
|
50
|
-
* {@inheritDoc}
|
|
51
|
-
*
|
|
52
|
-
* The default implementation simply calls {@link #endErrorCondition} to
|
|
53
|
-
* ensure that the handler is not in error recovery mode.
|
|
54
|
-
*/
|
|
55
|
-
reset(recognizer: Parser): void;
|
|
56
|
-
/**
|
|
57
|
-
* This method is called to enter error recovery mode when a recognition
|
|
58
|
-
* exception is reported.
|
|
59
|
-
*
|
|
60
|
-
* @param recognizer the parser instance
|
|
61
|
-
*/
|
|
62
|
-
protected beginErrorCondition(recognizer: Parser): void;
|
|
63
|
-
/**
|
|
64
|
-
* {@inheritDoc}
|
|
65
|
-
*/
|
|
66
|
-
inErrorRecoveryMode(recognizer: Parser): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* This method is called to leave error recovery mode after recovering from
|
|
69
|
-
* a recognition exception.
|
|
70
|
-
*
|
|
71
|
-
* @param recognizer
|
|
72
|
-
*/
|
|
73
|
-
protected endErrorCondition(recognizer: Parser): void;
|
|
74
|
-
/**
|
|
75
|
-
* {@inheritDoc}
|
|
76
|
-
*
|
|
77
|
-
* The default implementation simply calls {@link #endErrorCondition}.
|
|
78
|
-
*/
|
|
79
|
-
reportMatch(recognizer: Parser): void;
|
|
80
|
-
/**
|
|
81
|
-
* {@inheritDoc}
|
|
82
|
-
*
|
|
83
|
-
* The default implementation returns immediately if the handler is already
|
|
84
|
-
* in error recovery mode. Otherwise, it calls {@link #beginErrorCondition}
|
|
85
|
-
* and dispatches the reporting task based on the runtime type of `e`
|
|
86
|
-
* according to the following table.
|
|
87
|
-
*
|
|
88
|
-
* * {@link NoViableAltException}: Dispatches the call to
|
|
89
|
-
* {@link #reportNoViableAlternative}
|
|
90
|
-
* * {@link InputMismatchException}: Dispatches the call to
|
|
91
|
-
* {@link #reportInputMismatch}
|
|
92
|
-
* * {@link FailedPredicateException}: Dispatches the call to
|
|
93
|
-
* {@link #reportFailedPredicate}
|
|
94
|
-
* * All other types: calls {@link Parser#notifyErrorListeners} to report
|
|
95
|
-
* the exception
|
|
96
|
-
*/
|
|
97
|
-
reportError(recognizer: Parser, e: RecognitionException): void;
|
|
98
|
-
protected notifyErrorListeners(recognizer: Parser, message: string, e: RecognitionException): void;
|
|
99
|
-
/**
|
|
100
|
-
* {@inheritDoc}
|
|
101
|
-
*
|
|
102
|
-
* The default implementation resynchronizes the parser by consuming tokens
|
|
103
|
-
* until we find one in the resynchronization set--loosely the set of tokens
|
|
104
|
-
* that can follow the current rule.
|
|
105
|
-
*/
|
|
106
|
-
recover(recognizer: Parser, e: RecognitionException): void;
|
|
107
|
-
/**
|
|
108
|
-
* The default implementation of {@link ANTLRErrorStrategy#sync} makes sure
|
|
109
|
-
* that the current lookahead symbol is consistent with what were expecting
|
|
110
|
-
* at this point in the ATN. You can call this anytime but ANTLR only
|
|
111
|
-
* generates code to check before subrules/loops and each iteration.
|
|
112
|
-
*
|
|
113
|
-
* Implements Jim Idle's magic sync mechanism in closures and optional
|
|
114
|
-
* subrules. E.g.,
|
|
115
|
-
*
|
|
116
|
-
* ```antlr
|
|
117
|
-
* a : sync ( stuff sync )* ;
|
|
118
|
-
* sync : {consume to what can follow sync} ;
|
|
119
|
-
* ```
|
|
120
|
-
*
|
|
121
|
-
* At the start of a sub rule upon error, {@link #sync} performs single
|
|
122
|
-
* token deletion, if possible. If it can't do that, it bails on the current
|
|
123
|
-
* rule and uses the default error recovery, which consumes until the
|
|
124
|
-
* resynchronization set of the current rule.
|
|
125
|
-
*
|
|
126
|
-
* If the sub rule is optional (`(...)?`, `(...)*`, or block
|
|
127
|
-
* with an empty alternative), then the expected set includes what follows
|
|
128
|
-
* the subrule.
|
|
129
|
-
*
|
|
130
|
-
* During loop iteration, it consumes until it sees a token that can start a
|
|
131
|
-
* sub rule or what follows loop. Yes, that is pretty aggressive. We opt to
|
|
132
|
-
* stay in the loop as long as possible.
|
|
133
|
-
*
|
|
134
|
-
* **ORIGINS**
|
|
135
|
-
*
|
|
136
|
-
* Previous versions of ANTLR did a poor job of their recovery within loops.
|
|
137
|
-
* A single mismatch token or missing token would force the parser to bail
|
|
138
|
-
* out of the entire rules surrounding the loop. So, for rule
|
|
139
|
-
*
|
|
140
|
-
* ```antlr
|
|
141
|
-
* classDef : 'class' ID '{' member* '}'
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* input with an extra token between members would force the parser to
|
|
145
|
-
* consume until it found the next class definition rather than the next
|
|
146
|
-
* member definition of the current class.
|
|
147
|
-
*
|
|
148
|
-
* This functionality cost a little bit of effort because the parser has to
|
|
149
|
-
* compare token set at the start of the loop and at each iteration. If for
|
|
150
|
-
* some reason speed is suffering for you, you can turn off this
|
|
151
|
-
* functionality by simply overriding this method as a blank { }.
|
|
152
|
-
*/
|
|
153
|
-
sync(recognizer: Parser): void;
|
|
154
|
-
/**
|
|
155
|
-
* This is called by {@link #reportError} when the exception is a
|
|
156
|
-
* {@link NoViableAltException}.
|
|
157
|
-
*
|
|
158
|
-
* @see #reportError
|
|
159
|
-
*
|
|
160
|
-
* @param recognizer the parser instance
|
|
161
|
-
* @param e the recognition exception
|
|
162
|
-
*/
|
|
163
|
-
protected reportNoViableAlternative(recognizer: Parser, e: NoViableAltException): void;
|
|
164
|
-
/**
|
|
165
|
-
* This is called by {@link #reportError} when the exception is an
|
|
166
|
-
* {@link InputMismatchException}.
|
|
167
|
-
*
|
|
168
|
-
* @see #reportError
|
|
169
|
-
*
|
|
170
|
-
* @param recognizer the parser instance
|
|
171
|
-
* @param e the recognition exception
|
|
172
|
-
*/
|
|
173
|
-
protected reportInputMismatch(recognizer: Parser, e: InputMismatchException): void;
|
|
174
|
-
/**
|
|
175
|
-
* This is called by {@link #reportError} when the exception is a
|
|
176
|
-
* {@link FailedPredicateException}.
|
|
177
|
-
*
|
|
178
|
-
* @see #reportError
|
|
179
|
-
*
|
|
180
|
-
* @param recognizer the parser instance
|
|
181
|
-
* @param e the recognition exception
|
|
182
|
-
*/
|
|
183
|
-
protected reportFailedPredicate(recognizer: Parser, e: FailedPredicateException): void;
|
|
184
|
-
/**
|
|
185
|
-
* This method is called to report a syntax error which requires the removal
|
|
186
|
-
* of a token from the input stream. At the time this method is called, the
|
|
187
|
-
* erroneous symbol is current `LT(1)` symbol and has not yet been
|
|
188
|
-
* removed from the input stream. When this method returns,
|
|
189
|
-
* `recognizer` is in error recovery mode.
|
|
190
|
-
*
|
|
191
|
-
* This method is called when {@link #singleTokenDeletion} identifies
|
|
192
|
-
* single-token deletion as a viable recovery strategy for a mismatched
|
|
193
|
-
* input error.
|
|
194
|
-
*
|
|
195
|
-
* The default implementation simply returns if the handler is already in
|
|
196
|
-
* error recovery mode. Otherwise, it calls {@link #beginErrorCondition} to
|
|
197
|
-
* enter error recovery mode, followed by calling
|
|
198
|
-
* {@link Parser#notifyErrorListeners}.
|
|
199
|
-
*
|
|
200
|
-
* @param recognizer the parser instance
|
|
201
|
-
*/
|
|
202
|
-
protected reportUnwantedToken(recognizer: Parser): void;
|
|
203
|
-
/**
|
|
204
|
-
* This method is called to report a syntax error which requires the
|
|
205
|
-
* insertion of a missing token into the input stream. At the time this
|
|
206
|
-
* method is called, the missing token has not yet been inserted. When this
|
|
207
|
-
* method returns, `recognizer` is in error recovery mode.
|
|
208
|
-
*
|
|
209
|
-
* This method is called when {@link #singleTokenInsertion} identifies
|
|
210
|
-
* single-token insertion as a viable recovery strategy for a mismatched
|
|
211
|
-
* input error.
|
|
212
|
-
*
|
|
213
|
-
* The default implementation simply returns if the handler is already in
|
|
214
|
-
* error recovery mode. Otherwise, it calls {@link #beginErrorCondition} to
|
|
215
|
-
* enter error recovery mode, followed by calling
|
|
216
|
-
* {@link Parser#notifyErrorListeners}.
|
|
217
|
-
*
|
|
218
|
-
* @param recognizer the parser instance
|
|
219
|
-
*/
|
|
220
|
-
protected reportMissingToken(recognizer: Parser): void;
|
|
221
|
-
/**
|
|
222
|
-
* {@inheritDoc}
|
|
223
|
-
*
|
|
224
|
-
* The default implementation attempts to recover from the mismatched input
|
|
225
|
-
* by using single token insertion and deletion as described below. If the
|
|
226
|
-
* recovery attempt fails, this method
|
|
227
|
-
* {@link InputMismatchException}.
|
|
228
|
-
*
|
|
229
|
-
* **EXTRA TOKEN** (single token deletion)
|
|
230
|
-
*
|
|
231
|
-
* `LA(1)` is not what we are looking for. If `LA(2)` has the
|
|
232
|
-
* right token, however, then assume `LA(1)` is some extra spurious
|
|
233
|
-
* token and delete it. Then consume and return the next token (which was
|
|
234
|
-
* the `LA(2)` token) as the successful result of the match operation.
|
|
235
|
-
*
|
|
236
|
-
* This recovery strategy is implemented by {@link #singleTokenDeletion}.
|
|
237
|
-
*
|
|
238
|
-
* **MISSING TOKEN** (single token insertion)
|
|
239
|
-
*
|
|
240
|
-
* If current token (at `LA(1)`) is consistent with what could come
|
|
241
|
-
* after the expected `LA(1)` token, then assume the token is missing
|
|
242
|
-
* and use the parser's {@link TokenFactory} to create it on the fly. The
|
|
243
|
-
* "insertion" is performed by returning the created token as the successful
|
|
244
|
-
* result of the match operation.
|
|
245
|
-
*
|
|
246
|
-
* This recovery strategy is implemented by {@link #singleTokenInsertion}.
|
|
247
|
-
*
|
|
248
|
-
* **EXAMPLE**
|
|
249
|
-
*
|
|
250
|
-
* For example, Input `i=(3;` is clearly missing the `')'`. When
|
|
251
|
-
* the parser returns from the nested call to `expr`, it will have
|
|
252
|
-
* call chain:
|
|
253
|
-
*
|
|
254
|
-
* ```
|
|
255
|
-
* stat → expr → atom
|
|
256
|
-
* ```
|
|
257
|
-
*
|
|
258
|
-
* and it will be trying to match the `')'` at this point in the
|
|
259
|
-
* derivation:
|
|
260
|
-
*
|
|
261
|
-
* ```
|
|
262
|
-
* => ID '=' '(' INT ')' ('+' atom)* ';'
|
|
263
|
-
* ^
|
|
264
|
-
* ```
|
|
265
|
-
*
|
|
266
|
-
* The attempt to match `')'` will fail when it sees `';'` and
|
|
267
|
-
* call {@link #recoverInline}. To recover, it sees that `LA(1)==';'`
|
|
268
|
-
* is in the set of tokens that can follow the `')'` token reference
|
|
269
|
-
* in rule `atom`. It can assume that you forgot the `')'`.
|
|
270
|
-
*/
|
|
271
|
-
recoverInline(recognizer: Parser): Token;
|
|
272
|
-
/**
|
|
273
|
-
* This method implements the single-token insertion inline error recovery
|
|
274
|
-
* strategy. It is called by {@link #recoverInline} if the single-token
|
|
275
|
-
* deletion strategy fails to recover from the mismatched input. If this
|
|
276
|
-
* method returns `true`, `recognizer` will be in error recovery
|
|
277
|
-
* mode.
|
|
278
|
-
*
|
|
279
|
-
* This method determines whether or not single-token insertion is viable by
|
|
280
|
-
* checking if the `LA(1)` input symbol could be successfully matched
|
|
281
|
-
* if it were instead the `LA(2)` symbol. If this method returns
|
|
282
|
-
* `true`, the caller is responsible for creating and inserting a
|
|
283
|
-
* token with the correct type to produce this behavior.
|
|
284
|
-
*
|
|
285
|
-
* @param recognizer the parser instance
|
|
286
|
-
* @returns `true` if single-token insertion is a viable recovery
|
|
287
|
-
* strategy for the current mismatched input, otherwise `false`
|
|
288
|
-
*/
|
|
289
|
-
protected singleTokenInsertion(recognizer: Parser): boolean;
|
|
290
|
-
/**
|
|
291
|
-
* This method implements the single-token deletion inline error recovery
|
|
292
|
-
* strategy. It is called by {@link #recoverInline} to attempt to recover
|
|
293
|
-
* from mismatched input. If this method returns `undefined`, the parser and error
|
|
294
|
-
* handler state will not have changed. If this method returns non-`undefined`,
|
|
295
|
-
* `recognizer` will *not* be in error recovery mode since the
|
|
296
|
-
* returned token was a successful match.
|
|
297
|
-
*
|
|
298
|
-
* If the single-token deletion is successful, this method calls
|
|
299
|
-
* {@link #reportUnwantedToken} to report the error, followed by
|
|
300
|
-
* {@link Parser#consume} to actually "delete" the extraneous token. Then,
|
|
301
|
-
* before returning {@link #reportMatch} is called to signal a successful
|
|
302
|
-
* match.
|
|
303
|
-
*
|
|
304
|
-
* @param recognizer the parser instance
|
|
305
|
-
* @returns the successfully matched {@link Token} instance if single-token
|
|
306
|
-
* deletion successfully recovers from the mismatched input, otherwise
|
|
307
|
-
* `undefined`
|
|
308
|
-
*/
|
|
309
|
-
protected singleTokenDeletion(recognizer: Parser): Token | undefined;
|
|
310
|
-
/** Conjure up a missing token during error recovery.
|
|
311
|
-
*
|
|
312
|
-
* The recognizer attempts to recover from single missing
|
|
313
|
-
* symbols. But, actions might refer to that missing symbol.
|
|
314
|
-
* For example, x=ID {f($x);}. The action clearly assumes
|
|
315
|
-
* that there has been an identifier matched previously and that
|
|
316
|
-
* $x points at that token. If that token is missing, but
|
|
317
|
-
* the next token in the stream is what we want we assume that
|
|
318
|
-
* this token is missing and we keep going. Because we
|
|
319
|
-
* have to return some token to replace the missing token,
|
|
320
|
-
* we have to conjure one up. This method gives the user control
|
|
321
|
-
* over the tokens returned for missing tokens. Mostly,
|
|
322
|
-
* you will want to create something special for identifier
|
|
323
|
-
* tokens. For literals such as '{' and ',', the default
|
|
324
|
-
* action in the parser or tree parser works. It simply creates
|
|
325
|
-
* a CommonToken of the appropriate type. The text will be the token.
|
|
326
|
-
* If you change what tokens must be created by the lexer,
|
|
327
|
-
* override this method to create the appropriate tokens.
|
|
328
|
-
*/
|
|
329
|
-
protected getMissingSymbol(recognizer: Parser): Token;
|
|
330
|
-
protected constructToken(tokenSource: TokenSource, expectedTokenType: number, tokenText: string, current: Token): Token;
|
|
331
|
-
protected getExpectedTokens(recognizer: Parser): IntervalSet;
|
|
332
|
-
/** How should a token be displayed in an error message? The default
|
|
333
|
-
* is to display just the text, but during development you might
|
|
334
|
-
* want to have a lot of information spit out. Override in that case
|
|
335
|
-
* to use t.toString() (which, for CommonToken, dumps everything about
|
|
336
|
-
* the token). This is better than forcing you to override a method in
|
|
337
|
-
* your token objects because you don't have to go modify your lexer
|
|
338
|
-
* so that it creates a new Java type.
|
|
339
|
-
*/
|
|
340
|
-
protected getTokenErrorDisplay(t: Token | undefined): string;
|
|
341
|
-
protected getSymbolText(symbol: Token): string | undefined;
|
|
342
|
-
protected getSymbolType(symbol: Token): number;
|
|
343
|
-
protected escapeWSAndQuote(s: string): string;
|
|
344
|
-
protected getErrorRecoverySet(recognizer: Parser): IntervalSet;
|
|
345
|
-
/** Consume tokens until one matches the given token set. */
|
|
346
|
-
protected consumeUntil(recognizer: Parser, set: IntervalSet): void;
|
|
347
|
-
}
|
|
@@ -1,69 +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
|
-
*
|
|
7
|
-
* @author Sam Harwell
|
|
8
|
-
*/
|
|
9
|
-
export declare enum Dependents {
|
|
10
|
-
/**
|
|
11
|
-
* The element is dependent upon the specified rule.
|
|
12
|
-
*/
|
|
13
|
-
SELF = 0,
|
|
14
|
-
/**
|
|
15
|
-
* The element is dependent upon the set of the specified rule's parents
|
|
16
|
-
* (rules which directly reference it).
|
|
17
|
-
*/
|
|
18
|
-
PARENTS = 1,
|
|
19
|
-
/**
|
|
20
|
-
* The element is dependent upon the set of the specified rule's children
|
|
21
|
-
* (rules which it directly references).
|
|
22
|
-
*/
|
|
23
|
-
CHILDREN = 2,
|
|
24
|
-
/**
|
|
25
|
-
* The element is dependent upon the set of the specified rule's ancestors
|
|
26
|
-
* (the transitive closure of `PARENTS` rules).
|
|
27
|
-
*/
|
|
28
|
-
ANCESTORS = 3,
|
|
29
|
-
/**
|
|
30
|
-
* The element is dependent upon the set of the specified rule's descendants
|
|
31
|
-
* (the transitive closure of `CHILDREN` rules).
|
|
32
|
-
*/
|
|
33
|
-
DESCENDANTS = 4,
|
|
34
|
-
/**
|
|
35
|
-
* The element is dependent upon the set of the specified rule's siblings
|
|
36
|
-
* (the union of `CHILDREN` of its `PARENTS`).
|
|
37
|
-
*/
|
|
38
|
-
SIBLINGS = 5,
|
|
39
|
-
/**
|
|
40
|
-
* The element is dependent upon the set of the specified rule's preceeding
|
|
41
|
-
* siblings (the union of `CHILDREN` of its `PARENTS` which
|
|
42
|
-
* appear before a reference to the rule).
|
|
43
|
-
*/
|
|
44
|
-
PRECEEDING_SIBLINGS = 6,
|
|
45
|
-
/**
|
|
46
|
-
* The element is dependent upon the set of the specified rule's following
|
|
47
|
-
* siblings (the union of `CHILDREN` of its `PARENTS` which
|
|
48
|
-
* appear after a reference to the rule).
|
|
49
|
-
*/
|
|
50
|
-
FOLLOWING_SIBLINGS = 7,
|
|
51
|
-
/**
|
|
52
|
-
* The element is dependent upon the set of the specified rule's preceeding
|
|
53
|
-
* elements (rules which might end before the start of the specified rule
|
|
54
|
-
* while parsing). This is calculated by taking the
|
|
55
|
-
* `PRECEEDING_SIBLINGS` of the rule and each of its
|
|
56
|
-
* `ANCESTORS`, along with the `DESCENDANTS` of those
|
|
57
|
-
* elements.
|
|
58
|
-
*/
|
|
59
|
-
PRECEEDING = 8,
|
|
60
|
-
/**
|
|
61
|
-
* The element is dependent upon the set of the specified rule's following
|
|
62
|
-
* elements (rules which might start after the end of the specified rule
|
|
63
|
-
* while parsing). This is calculated by taking the
|
|
64
|
-
* `FOLLOWING_SIBLINGS` of the rule and each of its
|
|
65
|
-
* `ANCESTORS`, along with the `DESCENDANTS` of those
|
|
66
|
-
* elements.
|
|
67
|
-
*/
|
|
68
|
-
FOLLOWING = 9
|
|
69
|
-
}
|
|
@@ -1,60 +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 { ATNConfigSet } from "./atn/ATNConfigSet";
|
|
6
|
-
import { BitSet } from "./misc/BitSet";
|
|
7
|
-
import { DFA } from "./dfa/DFA";
|
|
8
|
-
import { Parser } from "./Parser";
|
|
9
|
-
import { ParserErrorListener } from "./ParserErrorListener";
|
|
10
|
-
import { RecognitionException } from "./RecognitionException";
|
|
11
|
-
import { Recognizer } from "./Recognizer";
|
|
12
|
-
import { SimulatorState } from "./atn/SimulatorState";
|
|
13
|
-
import { Token } from "./Token";
|
|
14
|
-
/**
|
|
15
|
-
* This implementation of {@link ANTLRErrorListener} can be used to identify
|
|
16
|
-
* certain potential correctness and performance problems in grammars. "Reports"
|
|
17
|
-
* are made by calling {@link Parser#notifyErrorListeners} with the appropriate
|
|
18
|
-
* message.
|
|
19
|
-
*
|
|
20
|
-
* * **Ambiguities**: These are cases where more than one path through the
|
|
21
|
-
* grammar can match the input.
|
|
22
|
-
* * **Weak context sensitivity**: These are cases where full-context
|
|
23
|
-
* prediction resolved an SLL conflict to a unique alternative which equaled the
|
|
24
|
-
* minimum alternative of the SLL conflict.
|
|
25
|
-
* * **Strong (forced) context sensitivity**: These are cases where the
|
|
26
|
-
* full-context prediction resolved an SLL conflict to a unique alternative,
|
|
27
|
-
* *and* the minimum alternative of the SLL conflict was found to not be
|
|
28
|
-
* a truly viable alternative. Two-stage parsing cannot be used for inputs where
|
|
29
|
-
* this situation occurs.
|
|
30
|
-
*
|
|
31
|
-
* @author Sam Harwell
|
|
32
|
-
*/
|
|
33
|
-
export declare class DiagnosticErrorListener implements ParserErrorListener {
|
|
34
|
-
protected exactOnly: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Initializes a new instance of {@link DiagnosticErrorListener}, specifying
|
|
37
|
-
* whether all ambiguities or only exact ambiguities are reported.
|
|
38
|
-
*
|
|
39
|
-
* @param exactOnly `true` to report only exact ambiguities, otherwise
|
|
40
|
-
* `false` to report all ambiguities. Defaults to true.
|
|
41
|
-
*/
|
|
42
|
-
constructor(exactOnly?: boolean);
|
|
43
|
-
syntaxError<T extends Token>(recognizer: Recognizer<T, any>, offendingSymbol: T | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
|
|
44
|
-
reportAmbiguity(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet | undefined, configs: ATNConfigSet): void;
|
|
45
|
-
reportAttemptingFullContext(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, conflictingAlts: BitSet | undefined, conflictState: SimulatorState): void;
|
|
46
|
-
reportContextSensitivity(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, prediction: number, acceptState: SimulatorState): void;
|
|
47
|
-
protected getDecisionDescription(recognizer: Parser, dfa: DFA): string;
|
|
48
|
-
/**
|
|
49
|
-
* Computes the set of conflicting or ambiguous alternatives from a
|
|
50
|
-
* configuration set, if that information was not already provided by the
|
|
51
|
-
* parser.
|
|
52
|
-
*
|
|
53
|
-
* @param reportedAlts The set of conflicting or ambiguous alternatives, as
|
|
54
|
-
* reported by the parser.
|
|
55
|
-
* @param configs The conflicting or ambiguous configuration set.
|
|
56
|
-
* @returns Returns `reportedAlts` if it is not `undefined`, otherwise
|
|
57
|
-
* returns the set of alternatives represented in `configs`.
|
|
58
|
-
*/
|
|
59
|
-
protected getConflictingAlts(reportedAlts: BitSet | undefined, configs: ATNConfigSet): BitSet;
|
|
60
|
-
}
|
|
@@ -1,21 +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 { Parser } from "./Parser";
|
|
6
|
-
import { RecognitionException } from "./RecognitionException";
|
|
7
|
-
/** A semantic predicate failed during validation. Validation of predicates
|
|
8
|
-
* occurs when normally parsing the alternative just like matching a token.
|
|
9
|
-
* Disambiguating predicate evaluation occurs when we test a predicate during
|
|
10
|
-
* prediction.
|
|
11
|
-
*/
|
|
12
|
-
export declare class FailedPredicateException extends RecognitionException {
|
|
13
|
-
private _ruleIndex;
|
|
14
|
-
private _predicateIndex;
|
|
15
|
-
private _predicate?;
|
|
16
|
-
constructor(recognizer: Parser, predicate?: string, message?: string);
|
|
17
|
-
get ruleIndex(): number;
|
|
18
|
-
get predicateIndex(): number;
|
|
19
|
-
get predicate(): string | undefined;
|
|
20
|
-
private static formatMessage;
|
|
21
|
-
}
|
|
@@ -1,14 +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 { RecognitionException } from "./RecognitionException";
|
|
6
|
-
import { Parser } from "./Parser";
|
|
7
|
-
import { ParserRuleContext } from "./ParserRuleContext";
|
|
8
|
-
/** This signifies any kind of mismatched input exceptions such as
|
|
9
|
-
* when the current input does not match the expected token.
|
|
10
|
-
*/
|
|
11
|
-
export declare class InputMismatchException extends RecognitionException {
|
|
12
|
-
constructor(/*@NotNull*/ recognizer: Parser);
|
|
13
|
-
constructor(/*@NotNull*/ recognizer: Parser, state: number, context: ParserRuleContext);
|
|
14
|
-
}
|