@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.
Files changed (346) hide show
  1. package/cjs/index.min.mjs +1 -0
  2. package/esm/index.min.mjs +1 -0
  3. package/package.json +6 -19
  4. package/typings/client-error.d.ts +1 -1
  5. package/typings/http/http-client.d.ts +1 -1
  6. package/typings/http/http-collection-service.d.ts +1 -1
  7. package/typings/http/http-request.d.ts +1 -1
  8. package/typings/http/http-singleton-service.d.ts +1 -1
  9. package/typings/http/http-types.d.ts +1 -1
  10. package/typings/http/requests/batch-request.d.ts +1 -1
  11. package/typings/http/requests/collection-create-request.d.ts +1 -1
  12. package/typings/http/requests/collection-delete-many-request.d.ts +1 -1
  13. package/typings/http/requests/collection-delete-request.d.ts +1 -1
  14. package/typings/http/requests/collection-get-request.d.ts +1 -1
  15. package/typings/http/requests/collection-search-request.d.ts +1 -1
  16. package/typings/http/requests/collection-update-many-request.d.ts +1 -1
  17. package/typings/http/requests/collection-update-request.d.ts +1 -1
  18. package/typings/http/requests/http-singleton-get-request.d.ts +1 -1
  19. package/typings/interfaces/http-options.interface.d.ts +1 -1
  20. package/typings/interfaces/http-request-config.interface.d.ts +1 -1
  21. package/cjs/934.min.cjs +0 -1
  22. package/cjs/main.min.cjs +0 -2
  23. package/cjs/main.min.cjs.LICENSE.txt +0 -13
  24. package/esm/934.min.mjs +0 -1
  25. package/esm/main.min.mjs +0 -2
  26. package/esm/main.min.mjs.LICENSE.txt +0 -13
  27. package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
  28. package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
  29. package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
  30. package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
  31. package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
  32. package/typings/antlr4ts/CharStream.d.ts +0 -26
  33. package/typings/antlr4ts/CharStreams.d.ts +0 -54
  34. package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
  35. package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
  36. package/typings/antlr4ts/CommonToken.d.ts +0 -116
  37. package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
  38. package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
  39. package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
  40. package/typings/antlr4ts/Decorators.d.ts +0 -8
  41. package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
  42. package/typings/antlr4ts/Dependents.d.ts +0 -69
  43. package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
  44. package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
  45. package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
  46. package/typings/antlr4ts/IntStream.d.ts +0 -197
  47. package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
  48. package/typings/antlr4ts/Lexer.d.ts +0 -141
  49. package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
  50. package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
  51. package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
  52. package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
  53. package/typings/antlr4ts/Parser.d.ts +0 -372
  54. package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
  55. package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
  56. package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
  57. package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
  58. package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
  59. package/typings/antlr4ts/RecognitionException.d.ts +0 -87
  60. package/typings/antlr4ts/Recognizer.d.ts +0 -101
  61. package/typings/antlr4ts/RuleContext.d.ts +0 -124
  62. package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
  63. package/typings/antlr4ts/RuleDependency.d.ts +0 -32
  64. package/typings/antlr4ts/RuleVersion.d.ts +0 -11
  65. package/typings/antlr4ts/Token.d.ts +0 -83
  66. package/typings/antlr4ts/TokenFactory.d.ts +0 -23
  67. package/typings/antlr4ts/TokenSource.d.ts +0 -67
  68. package/typings/antlr4ts/TokenStream.d.ts +0 -145
  69. package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
  70. package/typings/antlr4ts/Vocabulary.d.ts +0 -117
  71. package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
  72. package/typings/antlr4ts/WritableToken.d.ts +0 -13
  73. package/typings/antlr4ts/atn/ATN.d.ts +0 -123
  74. package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
  75. package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
  76. package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
  77. package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
  78. package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
  79. package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
  80. package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
  81. package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
  82. package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
  83. package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
  84. package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
  85. package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
  86. package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
  87. package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
  88. package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
  89. package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
  90. package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
  91. package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
  92. package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
  93. package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
  94. package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
  95. package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
  96. package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
  97. package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
  98. package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
  99. package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
  100. package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
  101. package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
  102. package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
  103. package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
  104. package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
  105. package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
  106. package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
  107. package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
  108. package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
  109. package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
  110. package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
  111. package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
  112. package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
  113. package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
  114. package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
  115. package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
  116. package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
  117. package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
  118. package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
  119. package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
  120. package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
  121. package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
  122. package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
  123. package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
  124. package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
  125. package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
  126. package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
  127. package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
  128. package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
  129. package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
  130. package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
  131. package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
  132. package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
  133. package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
  134. package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
  135. package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
  136. package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
  137. package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
  138. package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
  139. package/typings/antlr4ts/atn/Transition.d.ts +0 -38
  140. package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
  141. package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
  142. package/typings/antlr4ts/atn/index.d.ts +0 -73
  143. package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
  144. package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
  145. package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
  146. package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
  147. package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
  148. package/typings/antlr4ts/dfa/index.d.ts +0 -9
  149. package/typings/antlr4ts/index.d.ts +0 -49
  150. package/typings/antlr4ts/misc/Args.d.ts +0 -13
  151. package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
  152. package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
  153. package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
  154. package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
  155. package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
  156. package/typings/antlr4ts/misc/Character.d.ts +0 -7
  157. package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
  158. package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
  159. package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
  160. package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
  161. package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
  162. package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
  163. package/typings/antlr4ts/misc/Interval.d.ts +0 -57
  164. package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
  165. package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
  166. package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
  167. package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
  168. package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
  169. package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
  170. package/typings/antlr4ts/misc/UUID.d.ts +0 -13
  171. package/typings/antlr4ts/misc/Utils.d.ts +0 -15
  172. package/typings/antlr4ts/misc/index.d.ts +0 -25
  173. package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
  174. package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
  175. package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
  176. package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
  177. package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
  178. package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
  179. package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
  180. package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
  181. package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
  182. package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
  183. package/typings/antlr4ts/tree/Tree.d.ts +0 -36
  184. package/typings/antlr4ts/tree/Trees.d.ts +0 -75
  185. package/typings/antlr4ts/tree/index.d.ts +0 -16
  186. package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
  187. package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
  188. package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
  189. package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
  190. package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
  191. package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
  192. package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
  193. package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
  194. package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
  195. package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
  196. package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
  197. package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
  198. package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
  199. package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
  200. package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
  201. package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
  202. package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
  203. package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
  204. package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
  205. package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
  206. package/typings/common/constants.d.ts +0 -0
  207. package/typings/common/exception/enums/issue-severity.enum.d.ts +0 -13
  208. package/typings/common/exception/error-issue.d.ts +0 -9
  209. package/typings/common/exception/http-errors/bad-request.error.d.ts +0 -10
  210. package/typings/common/exception/http-errors/failed-dependency.error.d.ts +0 -9
  211. package/typings/common/exception/http-errors/forbidden.error.d.ts +0 -11
  212. package/typings/common/exception/http-errors/internal-server.error.d.ts +0 -9
  213. package/typings/common/exception/http-errors/method-not-allowed.error.d.ts +0 -10
  214. package/typings/common/exception/http-errors/not-acceptable.error.d.ts +0 -10
  215. package/typings/common/exception/http-errors/not-found.error.d.ts +0 -13
  216. package/typings/common/exception/http-errors/unauthorized.error.d.ts +0 -10
  217. package/typings/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -9
  218. package/typings/common/exception/index.d.ts +0 -15
  219. package/typings/common/exception/opra-exception.d.ts +0 -15
  220. package/typings/common/exception/resource-errors/resource-conflict.error.d.ts +0 -5
  221. package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +0 -4
  222. package/typings/common/exception/wrap-exception.d.ts +0 -2
  223. package/typings/common/filter/antlr/OpraFilterLexer.d.ts +0 -78
  224. package/typings/common/filter/antlr/OpraFilterParser.d.ts +0 -365
  225. package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +0 -290
  226. package/typings/common/filter/ast/abstract/ast.d.ts +0 -5
  227. package/typings/common/filter/ast/abstract/expression.d.ts +0 -3
  228. package/typings/common/filter/ast/abstract/literal.d.ts +0 -6
  229. package/typings/common/filter/ast/abstract/term.d.ts +0 -3
  230. package/typings/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -13
  231. package/typings/common/filter/ast/expressions/array-expression.d.ts +0 -7
  232. package/typings/common/filter/ast/expressions/comparison-expression.d.ts +0 -10
  233. package/typings/common/filter/ast/expressions/logical-expression.d.ts +0 -8
  234. package/typings/common/filter/ast/expressions/parentheses-expression.d.ts +0 -6
  235. package/typings/common/filter/ast/index.d.ts +0 -16
  236. package/typings/common/filter/ast/terms/boolean-literal.d.ts +0 -5
  237. package/typings/common/filter/ast/terms/date-literal.d.ts +0 -6
  238. package/typings/common/filter/ast/terms/external-constant.d.ts +0 -5
  239. package/typings/common/filter/ast/terms/null-literal.d.ts +0 -5
  240. package/typings/common/filter/ast/terms/number-literal.d.ts +0 -6
  241. package/typings/common/filter/ast/terms/qualified-identifier.d.ts +0 -4
  242. package/typings/common/filter/ast/terms/string-literal.d.ts +0 -5
  243. package/typings/common/filter/ast/terms/time-literal.d.ts +0 -6
  244. package/typings/common/filter/build.d.ts +0 -31
  245. package/typings/common/filter/error-listener.d.ts +0 -8
  246. package/typings/common/filter/errors.d.ts +0 -20
  247. package/typings/common/filter/filter-tree-visitor.d.ts +0 -30
  248. package/typings/common/filter/index.d.ts +0 -5
  249. package/typings/common/filter/parse.d.ts +0 -2
  250. package/typings/common/filter/utils.d.ts +0 -2
  251. package/typings/common/helpers/index.d.ts +0 -1
  252. package/typings/common/helpers/responsive-map.d.ts +0 -18
  253. package/typings/common/http/enums/http-headers.enum.d.ts +0 -379
  254. package/typings/common/http/enums/http-status.enum.d.ts +0 -290
  255. package/typings/common/http/http-request.d.ts +0 -34
  256. package/typings/common/http/index.d.ts +0 -6
  257. package/typings/common/http/interfaces/client-http-headers.interface.d.ts +0 -65
  258. package/typings/common/http/interfaces/server-http-headers.interface.d.ts +0 -1
  259. package/typings/common/http/multipart/batch-multipart.d.ts +0 -31
  260. package/typings/common/http/multipart/http-request-content.d.ts +0 -8
  261. package/typings/common/http/multipart/http-response-content.d.ts +0 -7
  262. package/typings/common/http/multipart/index.d.ts +0 -1
  263. package/typings/common/http/utils/normalize-headers.d.ts +0 -1
  264. package/typings/common/i18n/i18n.d.ts +0 -28
  265. package/typings/common/i18n/index.d.ts +0 -5
  266. package/typings/common/i18n/string-utils.d.ts +0 -2
  267. package/typings/common/i18n/translate.d.ts +0 -4
  268. package/typings/common/index.d.ts +0 -10
  269. package/typings/common/schema/constants.d.ts +0 -8
  270. package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
  271. package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
  272. package/typings/common/schema/decorators/opr-field.decorator.d.ts +0 -3
  273. package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +0 -8
  274. package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
  275. package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
  276. package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
  277. package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
  278. package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
  279. package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
  280. package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
  281. package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
  282. package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
  283. package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
  284. package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
  285. package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
  286. package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
  287. package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
  288. package/typings/common/schema/implementation/data-type/complex-type.d.ts +0 -29
  289. package/typings/common/schema/implementation/data-type/data-type.d.ts +0 -16
  290. package/typings/common/schema/implementation/data-type/simple-type.d.ts +0 -12
  291. package/typings/common/schema/implementation/data-type/union-type.d.ts +0 -16
  292. package/typings/common/schema/implementation/document-builder.d.ts +0 -16
  293. package/typings/common/schema/implementation/opra-document.d.ts +0 -44
  294. package/typings/common/schema/implementation/query/collection-count-query.d.ts +0 -14
  295. package/typings/common/schema/implementation/query/collection-create-query.d.ts +0 -18
  296. package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
  297. package/typings/common/schema/implementation/query/collection-delete-query.d.ts +0 -10
  298. package/typings/common/schema/implementation/query/collection-get-query.d.ts +0 -21
  299. package/typings/common/schema/implementation/query/collection-search-query.d.ts +0 -30
  300. package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +0 -15
  301. package/typings/common/schema/implementation/query/collection-update-query.d.ts +0 -19
  302. package/typings/common/schema/implementation/query/field-get-query.d.ts +0 -30
  303. package/typings/common/schema/implementation/query/index.d.ts +0 -27
  304. package/typings/common/schema/implementation/query/singleton-get-query.d.ts +0 -20
  305. package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +0 -19
  306. package/typings/common/schema/implementation/resource/container-resource-info.d.ts +0 -13
  307. package/typings/common/schema/implementation/resource/resource-info.d.ts +0 -17
  308. package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +0 -14
  309. package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
  310. package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
  311. package/typings/common/schema/index.d.ts +0 -25
  312. package/typings/common/schema/interfaces/child-field-query.interface.d.ts +0 -4
  313. package/typings/common/schema/interfaces/data-type.metadata.d.ts +0 -18
  314. package/typings/common/schema/interfaces/resource-container.interface.d.ts +0 -8
  315. package/typings/common/schema/interfaces/resource.metadata.d.ts +0 -18
  316. package/typings/common/schema/opra-schema.definition.d.ts +0 -178
  317. package/typings/common/schema/type-helpers/extend-type.helper.d.ts +0 -3
  318. package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +0 -2
  319. package/typings/common/schema/type-helpers/mixin.utils.d.ts +0 -3
  320. package/typings/common/schema/types.d.ts +0 -14
  321. package/typings/common/schema/utils/class.utils.d.ts +0 -2
  322. package/typings/common/schema/utils/clone-object.util.d.ts +0 -1
  323. package/typings/common/schema/utils/inspect.util.d.ts +0 -4
  324. package/typings/common/schema/utils/normalize-field-array.util.d.ts +0 -3
  325. package/typings/common/schema/utils/path-to-tree.util.d.ts +0 -4
  326. package/typings/common/schema/utils/string-compare.util.d.ts +0 -1
  327. package/typings/common/url/formats/boolean-format.d.ts +0 -5
  328. package/typings/common/url/formats/date-format.d.ts +0 -16
  329. package/typings/common/url/formats/filter-format.d.ts +0 -6
  330. package/typings/common/url/formats/format.d.ts +0 -4
  331. package/typings/common/url/formats/integer-format.d.ts +0 -9
  332. package/typings/common/url/formats/number-format.d.ts +0 -12
  333. package/typings/common/url/formats/string-format.d.ts +0 -14
  334. package/typings/common/url/index.d.ts +0 -5
  335. package/typings/common/url/opra-url-path-component.d.ts +0 -15
  336. package/typings/common/url/opra-url-path.d.ts +0 -30
  337. package/typings/common/url/opra-url-search-params.d.ts +0 -44
  338. package/typings/common/url/opra-url.d.ts +0 -79
  339. package/typings/common/url/utils/path-utils.d.ts +0 -8
  340. package/typings/common/utils/index.d.ts +0 -3
  341. package/typings/common/utils/is-url.d.ts +0 -1
  342. package/typings/common/utils/path-to-tree.d.ts +0 -4
  343. package/typings/common/utils/type-guards.d.ts +0 -9
  344. package/umd/934.min.cjs +0 -1
  345. package/umd/main.min.cjs +0 -2
  346. package/umd/main.min.cjs.LICENSE.txt +0 -13
@@ -1,96 +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 { IntegerList } from "./IntegerList";
6
- import { Interval } from "./Interval";
7
- import { IntSet } from "./IntSet";
8
- import { Vocabulary } from "../Vocabulary";
9
- /**
10
- * This class implements the {@link IntSet} backed by a sorted array of
11
- * non-overlapping intervals. It is particularly efficient for representing
12
- * large collections of numbers, where the majority of elements appear as part
13
- * of a sequential range of numbers that are all part of the set. For example,
14
- * the set { 1, 2, 3, 4, 7, 8 } may be represented as { [1, 4], [7, 8] }.
15
- *
16
- * This class is able to represent sets containing any combination of values in
17
- * the range {@link Integer#MIN_VALUE} to {@link Integer#MAX_VALUE}
18
- * (inclusive).
19
- */
20
- export declare class IntervalSet implements IntSet {
21
- private static _COMPLETE_CHAR_SET;
22
- static get COMPLETE_CHAR_SET(): IntervalSet;
23
- private static _EMPTY_SET;
24
- static get EMPTY_SET(): IntervalSet;
25
- /** The list of sorted, disjoint intervals. */
26
- private _intervals;
27
- private readonly;
28
- constructor(intervals?: Interval[]);
29
- /**
30
- * Create a set with all ints within range [a..b] (inclusive). If b is omitted, the set contains the single element
31
- * a.
32
- */
33
- static of(a: number, b?: number): IntervalSet;
34
- clear(): void;
35
- /** Add interval; i.e., add all integers from a to b to set.
36
- * If b<a, do nothing.
37
- * Keep list in sorted order (by left range value).
38
- * If overlap, combine ranges. For example,
39
- * If this is {1..5, 10..20}, adding 6..7 yields
40
- * {1..5, 6..7, 10..20}. Adding 4..8 yields {1..8, 10..20}.
41
- */
42
- add(a: number, b?: number): void;
43
- protected addRange(addition: Interval): void;
44
- /** combine all sets in the array returned the or'd value */
45
- static or(sets: IntervalSet[]): IntervalSet;
46
- addAll(set: IntSet): IntervalSet;
47
- complementRange(minElement: number, maxElement: number): IntervalSet;
48
- /** {@inheritDoc} */
49
- complement(vocabulary: IntSet): IntervalSet;
50
- subtract(a: IntSet): IntervalSet;
51
- /**
52
- * Compute the set difference between two interval sets. The specific
53
- * operation is `left - right`.
54
- */
55
- static subtract(left: IntervalSet, right: IntervalSet): IntervalSet;
56
- or(a: IntSet): IntervalSet;
57
- /** {@inheritDoc} */
58
- and(other: IntSet): IntervalSet;
59
- /** {@inheritDoc} */
60
- contains(el: number): boolean;
61
- /** {@inheritDoc} */
62
- get isNil(): boolean;
63
- /**
64
- * Returns the maximum value contained in the set if not isNil.
65
- *
66
- * @return the maximum value contained in the set.
67
- * @throws RangeError if set is empty
68
- */
69
- get maxElement(): number;
70
- /**
71
- * Returns the minimum value contained in the set if not isNil.
72
- *
73
- * @return the minimum value contained in the set.
74
- * @throws RangeError if set is empty
75
- */
76
- get minElement(): number;
77
- /** Return a list of Interval objects. */
78
- get intervals(): Interval[];
79
- hashCode(): number;
80
- /** Are two IntervalSets equal? Because all intervals are sorted
81
- * and disjoint, equals is a simple linear walk over both lists
82
- * to make sure they are the same. Interval.equals() is used
83
- * by the List.equals() method to check the ranges.
84
- */
85
- equals(o: any): boolean;
86
- toString(elemAreChar?: boolean): string;
87
- toStringVocabulary(vocabulary: Vocabulary): string;
88
- protected elementName(vocabulary: Vocabulary, a: number): string;
89
- get size(): number;
90
- toIntegerList(): IntegerList;
91
- toSet(): Set<number>;
92
- toArray(): number[];
93
- remove(el: number): void;
94
- get isReadonly(): boolean;
95
- setReadonly(readonly: boolean): void;
96
- }
@@ -1,9 +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 class MultiMap<K, V> extends Map<K, V[]> {
6
- constructor();
7
- map(key: K, value: V): void;
8
- getPairs(): Array<[K, V]>;
9
- }
@@ -1,45 +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 "./Stubs";
6
- /**
7
- *
8
- * @author Sam Harwell
9
- */
10
- export declare namespace MurmurHash {
11
- /**
12
- * Initialize the hash using the specified `seed`.
13
- *
14
- * @param seed the seed (optional)
15
- * @returns the intermediate hash value
16
- */
17
- function initialize(seed?: number): number;
18
- /**
19
- * Update the intermediate hash value for the next input `value`.
20
- *
21
- * @param hash the intermediate hash value
22
- * @param value the value to add to the current hash
23
- * @returns the updated intermediate hash value
24
- */
25
- function update(hash: number, value: number | string | Equatable | null | undefined): number;
26
- /**
27
- * Apply the final computation steps to the intermediate value `hash`
28
- * to form the final result of the MurmurHash 3 hash function.
29
- *
30
- * @param hash the intermediate hash value
31
- * @param numberOfWords the number of integer values added to the hash
32
- * @returns the final hash result
33
- */
34
- function finish(hash: number, numberOfWords: number): number;
35
- /**
36
- * Utility function to compute the hash code of an array using the
37
- * MurmurHash algorithm.
38
- *
39
- * @param <T> the array element type
40
- * @param data the array data
41
- * @param seed the seed for the MurmurHash algorithm
42
- * @returns the hash code of the data
43
- */
44
- function hashCode<T extends number | string | Equatable>(data: Iterable<T>, seed?: number): number;
45
- }
@@ -1,32 +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 { EqualityComparator } from "./EqualityComparator";
6
- import { Equatable } from "./Stubs";
7
- /**
8
- * This default implementation of {@link EqualityComparator} uses object equality
9
- * for comparisons by calling {@link Object#hashCode} and {@link Object#equals}.
10
- *
11
- * @author Sam Harwell
12
- */
13
- export declare class ObjectEqualityComparator implements EqualityComparator<Equatable | null | undefined> {
14
- static readonly INSTANCE: ObjectEqualityComparator;
15
- /**
16
- * {@inheritDoc}
17
- *
18
- * This implementation returns
19
- * `obj.`{@link Object#hashCode hashCode()}.
20
- */
21
- hashCode(obj: Equatable | null | undefined): number;
22
- /**
23
- * {@inheritDoc}
24
- *
25
- * This implementation relies on object equality. If both objects are
26
- * `undefined` or `null`, this method returns `true`. Otherwise if only
27
- * `a` is `undefined` or `null`, this method returns `false`. Otherwise,
28
- * this method returns the result of
29
- * `a.`{@link Object#equals equals}`(b)`.
30
- */
31
- equals(a: Equatable | null | undefined, b: Equatable | null | undefined): boolean;
32
- }
@@ -1,18 +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
- * This exception is thrown to cancel a parsing operation. This exception does
7
- * not extend {@link RecognitionException}, allowing it to bypass the standard
8
- * error recovery mechanisms. {@link BailErrorStrategy} throws this exception in
9
- * response to a parse error.
10
- *
11
- * @author Sam Harwell
12
- */
13
- export declare class ParseCancellationException extends Error {
14
- cause: Error;
15
- readonly stack?: string;
16
- constructor(cause: Error);
17
- getCause(): Error;
18
- }
@@ -1,31 +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 interface Equatable {
6
- equals(other: any): boolean;
7
- hashCode(): number;
8
- }
9
- export interface Comparable<T> {
10
- compareTo(o: T): number;
11
- }
12
- export interface JavaCollection<E> extends Iterable<E>, Equatable {
13
- add(e: E): boolean;
14
- addAll(collection: Iterable<E>): boolean;
15
- clear(): void;
16
- contains(o: any): boolean;
17
- containsAll(collection: Iterable<any>): boolean;
18
- readonly isEmpty: boolean;
19
- readonly size: number;
20
- toArray(): E[];
21
- }
22
- export interface JavaSet<E> extends JavaCollection<E> {
23
- }
24
- export interface JavaMap<K, V> extends Equatable {
25
- clear(): void;
26
- containsKey(key: K): boolean;
27
- get(key: K): V | undefined;
28
- readonly isEmpty: boolean;
29
- put(key: K, value: V): V | undefined;
30
- readonly size: number;
31
- }
@@ -1,13 +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 "./Stubs";
6
- export declare class UUID implements Equatable {
7
- private readonly data;
8
- constructor(mostSigBits: number, moreSigBits: number, lessSigBits: number, leastSigBits: number);
9
- static fromString(data: string): UUID;
10
- hashCode(): number;
11
- equals(obj: any): boolean;
12
- toString(): string;
13
- }
@@ -1,15 +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 "./Stubs";
6
- import { IntegerList } from "./IntegerList";
7
- export declare function escapeWhitespace(s: string, escapeSpaces: boolean): string;
8
- export declare function join(collection: Iterable<any>, separator: string): string;
9
- export declare function equals(x: Equatable | undefined, y: Equatable | undefined): boolean;
10
- /** Convert array of strings to string&rarr;index map. Useful for
11
- * converting rulenames to name&rarr;ruleindex map.
12
- */
13
- export declare function toMap(keys: string[]): Map<string, number>;
14
- export declare function toCharArray(str: string): Uint16Array;
15
- export declare function toCharArray(data: IntegerList): Uint16Array;
@@ -1,25 +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 * from "./Array2DHashMap";
6
- export * from "./ArrayEqualityComparator";
7
- export * from "./Args";
8
- export * from "./Array2DHashSet";
9
- export * from "./Arrays";
10
- export * from "./BitSet";
11
- export * from "./Character";
12
- export * from "./DefaultEqualityComparator";
13
- export * from "./EqualityComparator";
14
- export * from "./IntegerList";
15
- export * from "./IntegerStack";
16
- export * from "./InterpreterDataReader";
17
- export * from "./Interval";
18
- export * from "./IntervalSet";
19
- export * from "./IntSet";
20
- export * from "./MultiMap";
21
- export * from "./MurmurHash";
22
- export * from "./ObjectEqualityComparator";
23
- export * from "./ParseCancellationException";
24
- export * from "./Utils";
25
- export * from "./UUID";
@@ -1,103 +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 { ErrorNode } from "./ErrorNode";
6
- import { ParseTree } from "./ParseTree";
7
- import { ParseTreeVisitor } from "./ParseTreeVisitor";
8
- import { RuleNode } from "./RuleNode";
9
- import { TerminalNode } from "./TerminalNode";
10
- export declare abstract class AbstractParseTreeVisitor<Result> implements ParseTreeVisitor<Result> {
11
- /**
12
- * {@inheritDoc}
13
- *
14
- * The default implementation calls {@link ParseTree#accept} on the
15
- * specified tree.
16
- */
17
- visit(tree: ParseTree): Result;
18
- /**
19
- * {@inheritDoc}
20
- *
21
- * The default implementation initializes the aggregate result to
22
- * {@link #defaultResult defaultResult()}. Before visiting each child, it
23
- * calls {@link #shouldVisitNextChild shouldVisitNextChild}; if the result
24
- * is `false` no more children are visited and the current aggregate
25
- * result is returned. After visiting a child, the aggregate result is
26
- * updated by calling {@link #aggregateResult aggregateResult} with the
27
- * previous aggregate result and the result of visiting the child.
28
- *
29
- * The default implementation is not safe for use in visitors that modify
30
- * the tree structure. Visitors that modify the tree should override this
31
- * method to behave properly in respect to the specific algorithm in use.
32
- */
33
- visitChildren(node: RuleNode): Result;
34
- /**
35
- * {@inheritDoc}
36
- *
37
- * The default implementation returns the result of
38
- * {@link #defaultResult defaultResult}.
39
- */
40
- visitTerminal(node: TerminalNode): Result;
41
- /**
42
- * {@inheritDoc}
43
- *
44
- * The default implementation returns the result of
45
- * {@link #defaultResult defaultResult}.
46
- */
47
- visitErrorNode(node: ErrorNode): Result;
48
- /**
49
- * Gets the default value returned by visitor methods. This value is
50
- * returned by the default implementations of
51
- * {@link #visitTerminal visitTerminal}, {@link #visitErrorNode visitErrorNode}.
52
- * The default implementation of {@link #visitChildren visitChildren}
53
- * initializes its aggregate result to this value.
54
- *
55
- * @returns The default value returned by visitor methods.
56
- */
57
- protected abstract defaultResult(): Result;
58
- /**
59
- * Aggregates the results of visiting multiple children of a node. After
60
- * either all children are visited or {@link #shouldVisitNextChild} returns
61
- * `false`, the aggregate value is returned as the result of
62
- * {@link #visitChildren}.
63
- *
64
- * The default implementation returns `nextResult`, meaning
65
- * {@link #visitChildren} will return the result of the last child visited
66
- * (or return the initial value if the node has no children).
67
- *
68
- * @param aggregate The previous aggregate value. In the default
69
- * implementation, the aggregate value is initialized to
70
- * {@link #defaultResult}, which is passed as the `aggregate` argument
71
- * to this method after the first child node is visited.
72
- * @param nextResult The result of the immediately preceeding call to visit
73
- * a child node.
74
- *
75
- * @returns The updated aggregate result.
76
- */
77
- protected aggregateResult(aggregate: Result, nextResult: Result): Result;
78
- /**
79
- * This method is called after visiting each child in
80
- * {@link #visitChildren}. This method is first called before the first
81
- * child is visited; at that point `currentResult` will be the initial
82
- * value (in the default implementation, the initial value is returned by a
83
- * call to {@link #defaultResult}. This method is not called after the last
84
- * child is visited.
85
- *
86
- * The default implementation always returns `true`, indicating that
87
- * `visitChildren` should only return after all children are visited.
88
- * One reason to override this method is to provide a "short circuit"
89
- * evaluation option for situations where the result of visiting a single
90
- * child has the potential to determine the result of the visit operation as
91
- * a whole.
92
- *
93
- * @param node The {@link RuleNode} whose children are currently being
94
- * visited.
95
- * @param currentResult The current aggregate result of the children visited
96
- * to the current point.
97
- *
98
- * @returns `true` to continue visiting children. Otherwise return
99
- * `false` to stop visiting children and immediately return the
100
- * current aggregate result from {@link #visitChildren}.
101
- */
102
- protected shouldVisitNextChild(node: RuleNode, currentResult: Result): boolean;
103
- }
@@ -1,17 +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 { ParseTreeVisitor } from "./ParseTreeVisitor";
6
- import { TerminalNode } from "./TerminalNode";
7
- import { Token } from "../Token";
8
- /** Represents a token that was consumed during resynchronization
9
- * rather than during a valid match operation. For example,
10
- * we will create this kind of a node during single token insertion
11
- * and deletion as well as during "consume until error recovery set"
12
- * upon no viable alternative exceptions.
13
- */
14
- export declare class ErrorNode extends TerminalNode {
15
- constructor(token: Token);
16
- accept<T>(visitor: ParseTreeVisitor<T>): T;
17
- }
@@ -1,36 +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 { ParseTreeVisitor } from "./ParseTreeVisitor";
7
- import { RuleContext } from "../RuleContext";
8
- import { SyntaxTree } from "./SyntaxTree";
9
- /** An interface to access the tree of {@link RuleContext} objects created
10
- * during a parse that makes the data structure look like a simple parse tree.
11
- * This node represents both internal nodes, rule invocations,
12
- * and leaf nodes, token matches.
13
- *
14
- * The payload is either a {@link Token} or a {@link RuleContext} object.
15
- */
16
- export interface ParseTree extends SyntaxTree {
17
- readonly parent: ParseTree | undefined;
18
- /**
19
- * Set the parent for this node.
20
- *
21
- * @since 4.7
22
- */
23
- setParent(parent: RuleContext): void;
24
- getChild(i: number): ParseTree;
25
- /** The {@link ParseTreeVisitor} needs a double dispatch method. */
26
- accept<T>(visitor: ParseTreeVisitor<T>): T;
27
- /** Return the combined text of all leaf nodes. Does not get any
28
- * off-channel tokens (if any) so won't return whitespace and
29
- * comments if they are sent to parser on hidden channel.
30
- */
31
- readonly text: string;
32
- /** Specialize toStringTree so that it can print out more information
33
- * based upon the parser.
34
- */
35
- toStringTree(parser?: Parser): string;
36
- }
@@ -1,26 +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 { ErrorNode } from "./ErrorNode";
6
- import { ParserRuleContext } from "../ParserRuleContext";
7
- import { TerminalNode } from "./TerminalNode";
8
- /** This interface describes the minimal core of methods triggered
9
- * by {@link ParseTreeWalker}. E.g.,
10
- *
11
- * ```
12
- * ParseTreeWalker walker = new ParseTreeWalker();
13
- * walker.walk(myParseTreeListener, myParseTree); <-- triggers events in your listener
14
- * ```
15
- *
16
- * If you want to trigger events in multiple listeners during a single
17
- * tree walk, you can use the ParseTreeDispatcher object available at
18
- *
19
- * https://github.com/antlr/antlr4/issues/841
20
- */
21
- export interface ParseTreeListener {
22
- visitTerminal?: (/*@NotNull*/ node: TerminalNode) => void;
23
- visitErrorNode?: (/*@NotNull*/ node: ErrorNode) => void;
24
- enterEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void;
25
- exitEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void;
26
- }
@@ -1,28 +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 { ParseTree } from "./ParseTree";
6
- /**
7
- * Associate a property with a parse tree node. Useful with parse tree listeners
8
- * that need to associate values with particular tree nodes, kind of like
9
- * specifying a return value for the listener event method that visited a
10
- * particular node. Example:
11
- *
12
- * ```
13
- * ParseTreeProperty<Integer> values = new ParseTreeProperty<Integer>();
14
- * values.put(tree, 36);
15
- * int x = values.get(tree);
16
- * values.removeFrom(tree);
17
- * ```
18
- *
19
- * You would make one decl (values here) in the listener and use lots of times
20
- * in your event methods.
21
- */
22
- export declare class ParseTreeProperty<V> {
23
- private _symbol;
24
- constructor(name?: string);
25
- get(node: ParseTree): V;
26
- set(node: ParseTree, value: V): void;
27
- removeFrom(node: ParseTree): V;
28
- }
@@ -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 { ErrorNode } from "./ErrorNode";
6
- import { ParseTree } from "./ParseTree";
7
- import { RuleNode } from "./RuleNode";
8
- import { TerminalNode } from "./TerminalNode";
9
- /**
10
- * This interface defines the basic notion of a parse tree visitor. Generated
11
- * visitors implement this interface and the `XVisitor` interface for
12
- * grammar `X`.
13
- *
14
- * @author Sam Harwell
15
- * @param <Result> The return type of the visit operation. Use {@link Void} for
16
- * operations with no return type.
17
- */
18
- export interface ParseTreeVisitor<Result> {
19
- /**
20
- * Visit a parse tree, and return a user-defined result of the operation.
21
- *
22
- * @param tree The {@link ParseTree} to visit.
23
- * @returns The result of visiting the parse tree.
24
- */
25
- visit(/*@NotNull*/ tree: ParseTree): Result;
26
- /**
27
- * Visit the children of a node, and return a user-defined result
28
- * of the operation.
29
- *
30
- * @param node The {@link RuleNode} whose children should be visited.
31
- * @returns The result of visiting the children of the node.
32
- */
33
- visitChildren(/*@NotNull*/ node: RuleNode): Result;
34
- /**
35
- * Visit a terminal node, and return a user-defined result of the operation.
36
- *
37
- * @param node The {@link TerminalNode} to visit.
38
- * @returns The result of visiting the node.
39
- */
40
- visitTerminal(/*@NotNull*/ node: TerminalNode): Result;
41
- /**
42
- * Visit an error node, and return a user-defined result of the operation.
43
- *
44
- * @param node The {@link ErrorNode} to visit.
45
- * @returns The result of visiting the node.
46
- */
47
- visitErrorNode(/*@NotNull*/ node: ErrorNode): Result;
48
- }
@@ -1,35 +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 { ParseTree } from "./ParseTree";
6
- import { ParseTreeListener } from "./ParseTreeListener";
7
- import { RuleNode } from "./RuleNode";
8
- export declare class ParseTreeWalker {
9
- /**
10
- * Performs a walk on the given parse tree starting at the root and going down recursively
11
- * with depth-first search. On each node, {@link ParseTreeWalker#enterRule} is called before
12
- * recursively walking down into child nodes, then
13
- * {@link ParseTreeWalker#exitRule} is called after the recursive call to wind up.
14
- * @param listener The listener used by the walker to process grammar rules
15
- * @param t The parse tree to be walked on
16
- */
17
- walk<T extends ParseTreeListener>(listener: T, t: ParseTree): void;
18
- /**
19
- * Enters a grammar rule by first triggering the generic event {@link ParseTreeListener#enterEveryRule}
20
- * then by triggering the event specific to the given parse tree node
21
- * @param listener The listener responding to the trigger events
22
- * @param r The grammar rule containing the rule context
23
- */
24
- protected enterRule(listener: ParseTreeListener, r: RuleNode): void;
25
- /**
26
- * Exits a grammar rule by first triggering the event specific to the given parse tree node
27
- * then by triggering the generic event {@link ParseTreeListener#exitEveryRule}
28
- * @param listener The listener responding to the trigger events
29
- * @param r The grammar rule containing the rule context
30
- */
31
- protected exitRule(listener: ParseTreeListener, r: RuleNode): void;
32
- }
33
- export declare namespace ParseTreeWalker {
34
- const DEFAULT: ParseTreeWalker;
35
- }
@@ -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 { RuleContext } from "../RuleContext";
6
- import { ParseTree } from "./ParseTree";
7
- import { ParseTreeVisitor } from "./ParseTreeVisitor";
8
- import { Parser } from "../Parser";
9
- import { Interval } from "../misc/Interval";
10
- export declare abstract class RuleNode implements ParseTree {
11
- abstract readonly ruleContext: RuleContext;
12
- abstract readonly parent: RuleNode | undefined;
13
- abstract setParent(parent: RuleContext): void;
14
- abstract getChild(i: number): ParseTree;
15
- abstract accept<T>(visitor: ParseTreeVisitor<T>): T;
16
- abstract readonly text: string;
17
- abstract toStringTree(parser?: Parser | undefined): string;
18
- abstract readonly sourceInterval: Interval;
19
- abstract readonly payload: any;
20
- abstract readonly childCount: number;
21
- }
@@ -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 { Tree } from "./Tree";
6
- import { Interval } from "../misc/Interval";
7
- /** A tree that knows about an interval in a token stream
8
- * is some kind of syntax tree. Subinterfaces distinguish
9
- * between parse trees and other kinds of syntax trees we might want to create.
10
- */
11
- export interface SyntaxTree extends Tree {
12
- /**
13
- * Return an {@link Interval} indicating the index in the
14
- * {@link TokenStream} of the first and last token associated with this
15
- * subtree. If this node is a leaf, then the interval represents a single
16
- * token and has interval i..i for token index i.
17
- *
18
- * An interval of i..i-1 indicates an empty interval at position
19
- * i in the input stream, where 0 &lt;= i &lt;= the size of the input
20
- * token stream. Currently, the code base can only have i=0..n-1 but
21
- * in concept one could have an empty interval after EOF.
22
- *
23
- * If source interval is unknown, this returns {@link Interval#INVALID}.
24
- *
25
- * As a weird special case, the source interval for rules matched after
26
- * EOF is unspecified.
27
- */
28
- readonly sourceInterval: Interval;
29
- }