@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.
Files changed (358) hide show
  1. package/cjs/index.min.mjs +1 -0
  2. package/esm/index.min.mjs +1 -0
  3. package/package.json +6 -18
  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/714.min.cjs +0 -1
  22. package/cjs/antlr4ts.min.cjs +0 -2
  23. package/cjs/antlr4ts.min.cjs.LICENSE.txt +0 -4
  24. package/cjs/main.min.cjs +0 -1
  25. package/cjs/opra-common.min.cjs +0 -1
  26. package/cjs/vendors.min.cjs +0 -2
  27. package/cjs/vendors.min.cjs.LICENSE.txt +0 -52
  28. package/esm/714.min.mjs +0 -1
  29. package/esm/antlr4ts.min.mjs +0 -2
  30. package/esm/antlr4ts.min.mjs.LICENSE.txt +0 -4
  31. package/esm/main.min.mjs +0 -1
  32. package/esm/opra-common.min.mjs +0 -1
  33. package/esm/vendors.min.mjs +0 -2
  34. package/esm/vendors.min.mjs.LICENSE.txt +0 -52
  35. package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
  36. package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
  37. package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
  38. package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
  39. package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
  40. package/typings/antlr4ts/CharStream.d.ts +0 -26
  41. package/typings/antlr4ts/CharStreams.d.ts +0 -54
  42. package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
  43. package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
  44. package/typings/antlr4ts/CommonToken.d.ts +0 -116
  45. package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
  46. package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
  47. package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
  48. package/typings/antlr4ts/Decorators.d.ts +0 -8
  49. package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
  50. package/typings/antlr4ts/Dependents.d.ts +0 -69
  51. package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
  52. package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
  53. package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
  54. package/typings/antlr4ts/IntStream.d.ts +0 -197
  55. package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
  56. package/typings/antlr4ts/Lexer.d.ts +0 -141
  57. package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
  58. package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
  59. package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
  60. package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
  61. package/typings/antlr4ts/Parser.d.ts +0 -372
  62. package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
  63. package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
  64. package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
  65. package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
  66. package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
  67. package/typings/antlr4ts/RecognitionException.d.ts +0 -87
  68. package/typings/antlr4ts/Recognizer.d.ts +0 -101
  69. package/typings/antlr4ts/RuleContext.d.ts +0 -124
  70. package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
  71. package/typings/antlr4ts/RuleDependency.d.ts +0 -32
  72. package/typings/antlr4ts/RuleVersion.d.ts +0 -11
  73. package/typings/antlr4ts/Token.d.ts +0 -83
  74. package/typings/antlr4ts/TokenFactory.d.ts +0 -23
  75. package/typings/antlr4ts/TokenSource.d.ts +0 -67
  76. package/typings/antlr4ts/TokenStream.d.ts +0 -145
  77. package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
  78. package/typings/antlr4ts/Vocabulary.d.ts +0 -117
  79. package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
  80. package/typings/antlr4ts/WritableToken.d.ts +0 -13
  81. package/typings/antlr4ts/atn/ATN.d.ts +0 -123
  82. package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
  83. package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
  84. package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
  85. package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
  86. package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
  87. package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
  88. package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
  89. package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
  90. package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
  91. package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
  92. package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
  93. package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
  94. package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
  95. package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
  96. package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
  97. package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
  98. package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
  99. package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
  100. package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
  101. package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
  102. package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
  103. package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
  104. package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
  105. package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
  106. package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
  107. package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
  108. package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
  109. package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
  110. package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
  111. package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
  112. package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
  113. package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
  114. package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
  115. package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
  116. package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
  117. package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
  118. package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
  119. package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
  120. package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
  121. package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
  122. package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
  123. package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
  124. package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
  125. package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
  126. package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
  127. package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
  128. package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
  129. package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
  130. package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
  131. package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
  132. package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
  133. package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
  134. package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
  135. package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
  136. package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
  137. package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
  138. package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
  139. package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
  140. package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
  141. package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
  142. package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
  143. package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
  144. package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
  145. package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
  146. package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
  147. package/typings/antlr4ts/atn/Transition.d.ts +0 -38
  148. package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
  149. package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
  150. package/typings/antlr4ts/atn/index.d.ts +0 -73
  151. package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
  152. package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
  153. package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
  154. package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
  155. package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
  156. package/typings/antlr4ts/dfa/index.d.ts +0 -9
  157. package/typings/antlr4ts/index.d.ts +0 -49
  158. package/typings/antlr4ts/misc/Args.d.ts +0 -13
  159. package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
  160. package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
  161. package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
  162. package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
  163. package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
  164. package/typings/antlr4ts/misc/Character.d.ts +0 -7
  165. package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
  166. package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
  167. package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
  168. package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
  169. package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
  170. package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
  171. package/typings/antlr4ts/misc/Interval.d.ts +0 -57
  172. package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
  173. package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
  174. package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
  175. package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
  176. package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
  177. package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
  178. package/typings/antlr4ts/misc/UUID.d.ts +0 -13
  179. package/typings/antlr4ts/misc/Utils.d.ts +0 -15
  180. package/typings/antlr4ts/misc/index.d.ts +0 -25
  181. package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
  182. package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
  183. package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
  184. package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
  185. package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
  186. package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
  187. package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
  188. package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
  189. package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
  190. package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
  191. package/typings/antlr4ts/tree/Tree.d.ts +0 -36
  192. package/typings/antlr4ts/tree/Trees.d.ts +0 -75
  193. package/typings/antlr4ts/tree/index.d.ts +0 -16
  194. package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
  195. package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
  196. package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
  197. package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
  198. package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
  199. package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
  200. package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
  201. package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
  202. package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
  203. package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
  204. package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
  205. package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
  206. package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
  207. package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
  208. package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
  209. package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
  210. package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
  211. package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
  212. package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
  213. package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
  214. package/typings/common/constants.d.ts +0 -0
  215. package/typings/common/exception/enums/issue-severity.enum.d.ts +0 -13
  216. package/typings/common/exception/error-issue.d.ts +0 -9
  217. package/typings/common/exception/http-errors/bad-request.error.d.ts +0 -10
  218. package/typings/common/exception/http-errors/failed-dependency.error.d.ts +0 -9
  219. package/typings/common/exception/http-errors/forbidden.error.d.ts +0 -11
  220. package/typings/common/exception/http-errors/internal-server.error.d.ts +0 -9
  221. package/typings/common/exception/http-errors/method-not-allowed.error.d.ts +0 -10
  222. package/typings/common/exception/http-errors/not-acceptable.error.d.ts +0 -10
  223. package/typings/common/exception/http-errors/not-found.error.d.ts +0 -13
  224. package/typings/common/exception/http-errors/unauthorized.error.d.ts +0 -10
  225. package/typings/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -9
  226. package/typings/common/exception/index.d.ts +0 -15
  227. package/typings/common/exception/opra-exception.d.ts +0 -15
  228. package/typings/common/exception/resource-errors/resource-conflict.error.d.ts +0 -5
  229. package/typings/common/exception/resource-errors/resource-not-found.error.d.ts +0 -4
  230. package/typings/common/exception/wrap-exception.d.ts +0 -2
  231. package/typings/common/filter/antlr/OpraFilterLexer.d.ts +0 -78
  232. package/typings/common/filter/antlr/OpraFilterParser.d.ts +0 -365
  233. package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +0 -290
  234. package/typings/common/filter/ast/abstract/ast.d.ts +0 -5
  235. package/typings/common/filter/ast/abstract/expression.d.ts +0 -3
  236. package/typings/common/filter/ast/abstract/literal.d.ts +0 -6
  237. package/typings/common/filter/ast/abstract/term.d.ts +0 -3
  238. package/typings/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -13
  239. package/typings/common/filter/ast/expressions/array-expression.d.ts +0 -7
  240. package/typings/common/filter/ast/expressions/comparison-expression.d.ts +0 -10
  241. package/typings/common/filter/ast/expressions/logical-expression.d.ts +0 -8
  242. package/typings/common/filter/ast/expressions/parentheses-expression.d.ts +0 -6
  243. package/typings/common/filter/ast/index.d.ts +0 -16
  244. package/typings/common/filter/ast/terms/boolean-literal.d.ts +0 -5
  245. package/typings/common/filter/ast/terms/date-literal.d.ts +0 -6
  246. package/typings/common/filter/ast/terms/external-constant.d.ts +0 -5
  247. package/typings/common/filter/ast/terms/null-literal.d.ts +0 -5
  248. package/typings/common/filter/ast/terms/number-literal.d.ts +0 -6
  249. package/typings/common/filter/ast/terms/qualified-identifier.d.ts +0 -4
  250. package/typings/common/filter/ast/terms/string-literal.d.ts +0 -5
  251. package/typings/common/filter/ast/terms/time-literal.d.ts +0 -6
  252. package/typings/common/filter/build.d.ts +0 -31
  253. package/typings/common/filter/error-listener.d.ts +0 -8
  254. package/typings/common/filter/errors.d.ts +0 -20
  255. package/typings/common/filter/filter-tree-visitor.d.ts +0 -30
  256. package/typings/common/filter/index.d.ts +0 -5
  257. package/typings/common/filter/parse.d.ts +0 -2
  258. package/typings/common/filter/utils.d.ts +0 -2
  259. package/typings/common/helpers/index.d.ts +0 -1
  260. package/typings/common/helpers/responsive-map.d.ts +0 -18
  261. package/typings/common/http/enums/http-headers.enum.d.ts +0 -379
  262. package/typings/common/http/enums/http-status.enum.d.ts +0 -290
  263. package/typings/common/http/http-request.d.ts +0 -34
  264. package/typings/common/http/index.d.ts +0 -6
  265. package/typings/common/http/interfaces/client-http-headers.interface.d.ts +0 -65
  266. package/typings/common/http/interfaces/server-http-headers.interface.d.ts +0 -1
  267. package/typings/common/http/multipart/batch-multipart.d.ts +0 -31
  268. package/typings/common/http/multipart/http-request-content.d.ts +0 -8
  269. package/typings/common/http/multipart/http-response-content.d.ts +0 -7
  270. package/typings/common/http/multipart/index.d.ts +0 -1
  271. package/typings/common/http/utils/normalize-headers.d.ts +0 -1
  272. package/typings/common/i18n/i18n.d.ts +0 -28
  273. package/typings/common/i18n/index.d.ts +0 -5
  274. package/typings/common/i18n/string-utils.d.ts +0 -2
  275. package/typings/common/i18n/translate.d.ts +0 -4
  276. package/typings/common/index.d.ts +0 -10
  277. package/typings/common/schema/constants.d.ts +0 -8
  278. package/typings/common/schema/decorators/opr-collection-resource.decorator.d.ts +0 -8
  279. package/typings/common/schema/decorators/opr-complex-type.decorator.d.ts +0 -6
  280. package/typings/common/schema/decorators/opr-field.decorator.d.ts +0 -3
  281. package/typings/common/schema/decorators/opr-resolver.decorator.d.ts +0 -8
  282. package/typings/common/schema/decorators/opr-simple-type.decorator.d.ts +0 -6
  283. package/typings/common/schema/decorators/opr-singleton-resource.decorator.d.ts +0 -8
  284. package/typings/common/schema/implementation/data-type/builtin/any.type.d.ts +0 -2
  285. package/typings/common/schema/implementation/data-type/builtin/base64-binary.type.d.ts +0 -2
  286. package/typings/common/schema/implementation/data-type/builtin/bigint.type.d.ts +0 -2
  287. package/typings/common/schema/implementation/data-type/builtin/boolean.type.d.ts +0 -2
  288. package/typings/common/schema/implementation/data-type/builtin/date-string.type.d.ts +0 -2
  289. package/typings/common/schema/implementation/data-type/builtin/date.type.d.ts +0 -2
  290. package/typings/common/schema/implementation/data-type/builtin/guid.type.d.ts +0 -2
  291. package/typings/common/schema/implementation/data-type/builtin/integer.type.d.ts +0 -2
  292. package/typings/common/schema/implementation/data-type/builtin/number.type.d.ts +0 -2
  293. package/typings/common/schema/implementation/data-type/builtin/object.type.d.ts +0 -2
  294. package/typings/common/schema/implementation/data-type/builtin/string.type.d.ts +0 -2
  295. package/typings/common/schema/implementation/data-type/builtin-data-types.d.ts +0 -4
  296. package/typings/common/schema/implementation/data-type/complex-type.d.ts +0 -29
  297. package/typings/common/schema/implementation/data-type/data-type.d.ts +0 -16
  298. package/typings/common/schema/implementation/data-type/simple-type.d.ts +0 -12
  299. package/typings/common/schema/implementation/data-type/union-type.d.ts +0 -16
  300. package/typings/common/schema/implementation/document-builder.d.ts +0 -16
  301. package/typings/common/schema/implementation/opra-document.d.ts +0 -44
  302. package/typings/common/schema/implementation/query/collection-count-query.d.ts +0 -14
  303. package/typings/common/schema/implementation/query/collection-create-query.d.ts +0 -18
  304. package/typings/common/schema/implementation/query/collection-delete-many-query.d.ts +0 -14
  305. package/typings/common/schema/implementation/query/collection-delete-query.d.ts +0 -10
  306. package/typings/common/schema/implementation/query/collection-get-query.d.ts +0 -21
  307. package/typings/common/schema/implementation/query/collection-search-query.d.ts +0 -30
  308. package/typings/common/schema/implementation/query/collection-update-many-query.d.ts +0 -15
  309. package/typings/common/schema/implementation/query/collection-update-query.d.ts +0 -19
  310. package/typings/common/schema/implementation/query/field-get-query.d.ts +0 -30
  311. package/typings/common/schema/implementation/query/index.d.ts +0 -27
  312. package/typings/common/schema/implementation/query/singleton-get-query.d.ts +0 -20
  313. package/typings/common/schema/implementation/resource/collection-resource-info.d.ts +0 -19
  314. package/typings/common/schema/implementation/resource/container-resource-info.d.ts +0 -13
  315. package/typings/common/schema/implementation/resource/resource-info.d.ts +0 -17
  316. package/typings/common/schema/implementation/resource/singleton-resource-info.d.ts +0 -14
  317. package/typings/common/schema/implementation/schema-builder/extract-resource-metadata.util.d.ts +0 -3
  318. package/typings/common/schema/implementation/schema-builder/extract-type-metadata.util.d.ts +0 -4
  319. package/typings/common/schema/index.d.ts +0 -25
  320. package/typings/common/schema/interfaces/child-field-query.interface.d.ts +0 -4
  321. package/typings/common/schema/interfaces/data-type.metadata.d.ts +0 -18
  322. package/typings/common/schema/interfaces/resource-container.interface.d.ts +0 -8
  323. package/typings/common/schema/interfaces/resource.metadata.d.ts +0 -18
  324. package/typings/common/schema/opra-schema.definition.d.ts +0 -178
  325. package/typings/common/schema/type-helpers/extend-type.helper.d.ts +0 -3
  326. package/typings/common/schema/type-helpers/mixin-type.helper.d.ts +0 -2
  327. package/typings/common/schema/type-helpers/mixin.utils.d.ts +0 -3
  328. package/typings/common/schema/types.d.ts +0 -14
  329. package/typings/common/schema/utils/class.utils.d.ts +0 -2
  330. package/typings/common/schema/utils/clone-object.util.d.ts +0 -1
  331. package/typings/common/schema/utils/inspect.util.d.ts +0 -4
  332. package/typings/common/schema/utils/normalize-field-array.util.d.ts +0 -3
  333. package/typings/common/schema/utils/path-to-tree.util.d.ts +0 -4
  334. package/typings/common/schema/utils/string-compare.util.d.ts +0 -1
  335. package/typings/common/url/formats/boolean-format.d.ts +0 -5
  336. package/typings/common/url/formats/date-format.d.ts +0 -16
  337. package/typings/common/url/formats/filter-format.d.ts +0 -6
  338. package/typings/common/url/formats/format.d.ts +0 -4
  339. package/typings/common/url/formats/integer-format.d.ts +0 -9
  340. package/typings/common/url/formats/number-format.d.ts +0 -12
  341. package/typings/common/url/formats/string-format.d.ts +0 -14
  342. package/typings/common/url/index.d.ts +0 -5
  343. package/typings/common/url/opra-url-path-component.d.ts +0 -15
  344. package/typings/common/url/opra-url-path.d.ts +0 -30
  345. package/typings/common/url/opra-url-search-params.d.ts +0 -44
  346. package/typings/common/url/opra-url.d.ts +0 -79
  347. package/typings/common/url/utils/path-utils.d.ts +0 -8
  348. package/typings/common/utils/index.d.ts +0 -3
  349. package/typings/common/utils/is-url.d.ts +0 -1
  350. package/typings/common/utils/path-to-tree.d.ts +0 -4
  351. package/typings/common/utils/type-guards.d.ts +0 -9
  352. package/umd/714.min.cjs +0 -1
  353. package/umd/antlr4ts.min.cjs +0 -2
  354. package/umd/antlr4ts.min.cjs.LICENSE.txt +0 -4
  355. package/umd/main.min.cjs +0 -1
  356. package/umd/opra-common.min.cjs +0 -1
  357. package/umd/vendors.min.cjs +0 -2
  358. package/umd/vendors.min.cjs.LICENSE.txt +0 -52
@@ -1,169 +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 "./tree/ErrorNode";
6
- import { Interval } from "./misc/Interval";
7
- import { Parser } from "./Parser";
8
- import { ParseTree } from "./tree/ParseTree";
9
- import { ParseTreeListener } from "./tree/ParseTreeListener";
10
- import { RecognitionException } from "./RecognitionException";
11
- import { RuleContext } from "./RuleContext";
12
- import { TerminalNode } from "./tree/TerminalNode";
13
- import { Token } from "./Token";
14
- /** A rule invocation record for parsing.
15
- *
16
- * Contains all of the information about the current rule not stored in the
17
- * RuleContext. It handles parse tree children list, Any ATN state
18
- * tracing, and the default values available for rule invocations:
19
- * start, stop, rule index, current alt number.
20
- *
21
- * Subclasses made for each rule and grammar track the parameters,
22
- * return values, locals, and labels specific to that rule. These
23
- * are the objects that are returned from rules.
24
- *
25
- * Note text is not an actual field of a rule return value; it is computed
26
- * from start and stop using the input stream's toString() method. I
27
- * could add a ctor to this so that we can pass in and store the input
28
- * stream, but I'm not sure we want to do that. It would seem to be undefined
29
- * to get the .text property anyway if the rule matches tokens from multiple
30
- * input streams.
31
- *
32
- * I do not use getters for fields of objects that are used simply to
33
- * group values such as this aggregate. The getters/setters are there to
34
- * satisfy the superclass interface.
35
- */
36
- export declare class ParserRuleContext extends RuleContext {
37
- private static readonly EMPTY;
38
- /** If we are debugging or building a parse tree for a visitor,
39
- * we need to track all of the tokens and rule invocations associated
40
- * with this rule's context. This is empty for parsing w/o tree constr.
41
- * operation because we don't the need to track the details about
42
- * how we parse this rule.
43
- */
44
- children?: ParseTree[];
45
- /** For debugging/tracing purposes, we want to track all of the nodes in
46
- * the ATN traversed by the parser for a particular rule.
47
- * This list indicates the sequence of ATN nodes used to match
48
- * the elements of the children list. This list does not include
49
- * ATN nodes and other rules used to match rule invocations. It
50
- * traces the rule invocation node itself but nothing inside that
51
- * other rule's ATN submachine.
52
- *
53
- * There is NOT a one-to-one correspondence between the children and
54
- * states list. There are typically many nodes in the ATN traversed
55
- * for each element in the children list. For example, for a rule
56
- * invocation there is the invoking state and the following state.
57
- *
58
- * The parser state property updates field s and adds it to this list
59
- * if we are debugging/tracing.
60
- *
61
- * This does not trace states visited during prediction.
62
- */
63
- _start: Token;
64
- _stop: Token | undefined;
65
- /**
66
- * The exception that forced this rule to return. If the rule successfully
67
- * completed, this is `undefined`.
68
- */
69
- exception?: RecognitionException;
70
- constructor();
71
- constructor(parent: ParserRuleContext | undefined, invokingStateNumber: number);
72
- static emptyContext(): ParserRuleContext;
73
- /**
74
- * COPY a ctx (I'm deliberately not using copy constructor) to avoid
75
- * confusion with creating node with parent. Does not copy children
76
- * (except error leaves).
77
- *
78
- * This is used in the generated parser code to flip a generic XContext
79
- * node for rule X to a YContext for alt label Y. In that sense, it is not
80
- * really a generic copy function.
81
- *
82
- * If we do an error sync() at start of a rule, we might add error nodes
83
- * to the generic XContext so this function must copy those nodes to the
84
- * YContext as well else they are lost!
85
- */
86
- copyFrom(ctx: ParserRuleContext): void;
87
- enterRule(listener: ParseTreeListener): void;
88
- exitRule(listener: ParseTreeListener): void;
89
- /** Add a parse tree node to this as a child. Works for
90
- * internal and leaf nodes. Does not set parent link;
91
- * other add methods must do that. Other addChild methods
92
- * call this.
93
- *
94
- * We cannot set the parent pointer of the incoming node
95
- * because the existing interfaces do not have a setParent()
96
- * method and I don't want to break backward compatibility for this.
97
- *
98
- * @since 4.7
99
- */
100
- addAnyChild<T extends ParseTree>(t: T): T;
101
- /** Add a token leaf node child and force its parent to be this node. */
102
- addChild(t: TerminalNode): void;
103
- addChild(ruleInvocation: RuleContext): void;
104
- /**
105
- * Add a child to this node based upon matchedToken. It
106
- * creates a TerminalNodeImpl rather than using
107
- * {@link Parser#createTerminalNode(ParserRuleContext, Token)}. I'm leaving this
108
- * in for compatibility but the parser doesn't use this anymore.
109
- *
110
- * @deprecated Use another overload instead.
111
- */
112
- addChild(matchedToken: Token): TerminalNode;
113
- /** Add an error node child and force its parent to be this node.
114
- *
115
- * @since 4.7
116
- */
117
- addErrorNode(errorNode: ErrorNode): ErrorNode;
118
- /**
119
- * Add a child to this node based upon badToken. It
120
- * creates a ErrorNode rather than using
121
- * {@link Parser#createErrorNode(ParserRuleContext, Token)}. I'm leaving this
122
- * in for compatibility but the parser doesn't use this anymore.
123
- *
124
- * @deprecated Use another overload instead.
125
- */
126
- addErrorNode(badToken: Token): ErrorNode;
127
- /** Used by enterOuterAlt to toss out a RuleContext previously added as
128
- * we entered a rule. If we have # label, we will need to remove
129
- * generic ruleContext object.
130
- */
131
- removeLastChild(): void;
132
- get parent(): ParserRuleContext | undefined;
133
- getChild(i: number): ParseTree;
134
- getChild<T extends ParseTree>(i: number, ctxType: {
135
- new (...args: any[]): T;
136
- }): T;
137
- tryGetChild<T extends ParseTree>(i: number, ctxType: {
138
- new (...args: any[]): T;
139
- }): T | undefined;
140
- getToken(ttype: number, i: number): TerminalNode;
141
- tryGetToken(ttype: number, i: number): TerminalNode | undefined;
142
- getTokens(ttype: number): TerminalNode[];
143
- get ruleContext(): this;
144
- getRuleContext<T extends ParserRuleContext>(i: number, ctxType: {
145
- new (...args: any[]): T;
146
- }): T;
147
- tryGetRuleContext<T extends ParserRuleContext>(i: number, ctxType: {
148
- new (...args: any[]): T;
149
- }): T | undefined;
150
- getRuleContexts<T extends ParserRuleContext>(ctxType: {
151
- new (...args: any[]): T;
152
- }): T[];
153
- get childCount(): number;
154
- get sourceInterval(): Interval;
155
- /**
156
- * Get the initial token in this context.
157
- * Note that the range from start to stop is inclusive, so for rules that do not consume anything
158
- * (for example, zero length or error productions) this token may exceed stop.
159
- */
160
- get start(): Token;
161
- /**
162
- * Get the final token in this context.
163
- * Note that the range from start to stop is inclusive, so for rules that do not consume anything
164
- * (for example, zero length or error productions) this token may precede start.
165
- */
166
- get stop(): Token | undefined;
167
- /** Used for rule context info debugging during parse-time, not so much for ATN debugging */
168
- toInfoString(recognizer: Parser): string;
169
- }
@@ -1,20 +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
- * This implementation of {@link ANTLRErrorListener} dispatches all calls to a
10
- * collection of delegate listeners. This reduces the effort required to support multiple
11
- * listeners.
12
- *
13
- * @author Sam Harwell
14
- */
15
- export declare class ProxyErrorListener<TSymbol, TListener extends ANTLRErrorListener<TSymbol>> implements ANTLRErrorListener<TSymbol> {
16
- private delegates;
17
- constructor(delegates: TListener[]);
18
- protected getDelegates(): ReadonlyArray<TListener>;
19
- syntaxError<T extends TSymbol>(recognizer: Recognizer<T, any>, offendingSymbol: T | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
20
- }
@@ -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 { ATNConfigSet } from "./atn/ATNConfigSet";
6
- import { BitSet } from "./misc/BitSet";
7
- import { DFA } from "./dfa/DFA";
8
- import { Parser } from "./Parser";
9
- import { ProxyErrorListener } from "./ProxyErrorListener";
10
- import { ParserErrorListener } from "./ParserErrorListener";
11
- import { SimulatorState } from "./atn/SimulatorState";
12
- import { Token } from "./Token";
13
- /**
14
- * @author Sam Harwell
15
- */
16
- export declare class ProxyParserErrorListener extends ProxyErrorListener<Token, ParserErrorListener> implements ParserErrorListener {
17
- constructor(delegates: ParserErrorListener[]);
18
- reportAmbiguity(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet | undefined, configs: ATNConfigSet): void;
19
- reportAttemptingFullContext(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, conflictingAlts: BitSet | undefined, conflictState: SimulatorState): void;
20
- reportContextSensitivity(recognizer: Parser, dfa: DFA, startIndex: number, stopIndex: number, prediction: number, acceptState: SimulatorState): void;
21
- }
@@ -1,87 +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 { IntervalSet } from "./misc/IntervalSet";
7
- import { IntStream } from "./IntStream";
8
- import { Lexer } from "./Lexer";
9
- import { ParserRuleContext } from "./ParserRuleContext";
10
- import { Recognizer } from "./Recognizer";
11
- import { RuleContext } from "./RuleContext";
12
- import { Token } from "./Token";
13
- /** The root of the ANTLR exception hierarchy. In general, ANTLR tracks just
14
- * 3 kinds of errors: prediction errors, failed predicate errors, and
15
- * mismatched input errors. In each case, the parser knows where it is
16
- * in the input, where it is in the ATN, the rule invocation stack,
17
- * and what kind of problem occurred.
18
- */
19
- export declare class RecognitionException extends Error {
20
- /** The {@link Recognizer} where this exception originated. */
21
- private _recognizer?;
22
- private ctx?;
23
- private input?;
24
- /**
25
- * The current {@link Token} when an error occurred. Since not all streams
26
- * support accessing symbols by index, we have to track the {@link Token}
27
- * instance itself.
28
- */
29
- private offendingToken?;
30
- private _offendingState;
31
- constructor(lexer: Lexer | undefined, input: CharStream);
32
- constructor(recognizer: Recognizer<Token, any> | undefined, input: IntStream | undefined, ctx: ParserRuleContext | undefined);
33
- constructor(recognizer: Recognizer<Token, any> | undefined, input: IntStream | undefined, ctx: ParserRuleContext | undefined, message: string);
34
- /**
35
- * Get the ATN state number the parser was in at the time the error
36
- * occurred. For {@link NoViableAltException} and
37
- * {@link LexerNoViableAltException} exceptions, this is the
38
- * {@link DecisionState} number. For others, it is the state whose outgoing
39
- * edge we couldn't match.
40
- *
41
- * If the state number is not known, this method returns -1.
42
- */
43
- get offendingState(): number;
44
- protected setOffendingState(offendingState: number): void;
45
- /**
46
- * Gets the set of input symbols which could potentially follow the
47
- * previously matched symbol at the time this exception was thrown.
48
- *
49
- * If the set of expected tokens is not known and could not be computed,
50
- * this method returns `undefined`.
51
- *
52
- * @returns The set of token types that could potentially follow the current
53
- * state in the ATN, or `undefined` if the information is not available.
54
- */
55
- get expectedTokens(): IntervalSet | undefined;
56
- /**
57
- * Gets the {@link RuleContext} at the time this exception was thrown.
58
- *
59
- * If the context is not available, this method returns `undefined`.
60
- *
61
- * @returns The {@link RuleContext} at the time this exception was thrown.
62
- * If the context is not available, this method returns `undefined`.
63
- */
64
- get context(): RuleContext | undefined;
65
- /**
66
- * Gets the input stream which is the symbol source for the recognizer where
67
- * this exception was thrown.
68
- *
69
- * If the input stream is not available, this method returns `undefined`.
70
- *
71
- * @returns The input stream which is the symbol source for the recognizer
72
- * where this exception was thrown, or `undefined` if the stream is not
73
- * available.
74
- */
75
- get inputStream(): IntStream | undefined;
76
- getOffendingToken(recognizer?: Recognizer<Token, any>): Token | undefined;
77
- protected setOffendingToken<TSymbol extends Token>(recognizer: Recognizer<TSymbol, any>, offendingToken?: TSymbol): void;
78
- /**
79
- * Gets the {@link Recognizer} where this exception occurred.
80
- *
81
- * If the recognizer is not available, this method returns `undefined`.
82
- *
83
- * @returns The recognizer where this exception occurred, or `undefined` if
84
- * the recognizer is not available.
85
- */
86
- get recognizer(): Recognizer<any, any> | undefined;
87
- }
@@ -1,101 +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 { ATN } from "./atn/ATN";
7
- import { ATNSimulator } from "./atn/ATNSimulator";
8
- import { IntStream } from "./IntStream";
9
- import { ParseInfo } from "./atn/ParseInfo";
10
- import { RecognitionException } from "./RecognitionException";
11
- import { RuleContext } from "./RuleContext";
12
- import { Vocabulary } from "./Vocabulary";
13
- export declare abstract class Recognizer<TSymbol, ATNInterpreter extends ATNSimulator> {
14
- static readonly EOF: number;
15
- private static tokenTypeMapCache;
16
- private static ruleIndexMapCache;
17
- private readonly _listeners;
18
- protected _interp: ATNInterpreter;
19
- private _stateNumber;
20
- abstract readonly ruleNames: string[];
21
- /**
22
- * Get the vocabulary used by the recognizer.
23
- *
24
- * @returns A {@link Vocabulary} instance providing information about the
25
- * vocabulary used by the grammar.
26
- */
27
- abstract readonly vocabulary: Vocabulary;
28
- /**
29
- * Get a map from token names to token types.
30
- *
31
- * Used for XPath and tree pattern compilation.
32
- */
33
- getTokenTypeMap(): ReadonlyMap<string, number>;
34
- /**
35
- * Get a map from rule names to rule indexes.
36
- *
37
- * Used for XPath and tree pattern compilation.
38
- */
39
- getRuleIndexMap(): ReadonlyMap<string, number>;
40
- getTokenType(tokenName: string): number;
41
- /**
42
- * If this recognizer was generated, it will have a serialized ATN
43
- * representation of the grammar.
44
- *
45
- * For interpreters, we don't know their serialized ATN despite having
46
- * created the interpreter from it.
47
- */
48
- get serializedATN(): string;
49
- /** For debugging and other purposes, might want the grammar name.
50
- * Have ANTLR generate an implementation for this method.
51
- */
52
- abstract readonly grammarFileName: string;
53
- /**
54
- * Get the {@link ATN} used by the recognizer for prediction.
55
- *
56
- * @returns The {@link ATN} used by the recognizer for prediction.
57
- */
58
- get atn(): ATN;
59
- /**
60
- * Get the ATN interpreter used by the recognizer for prediction.
61
- *
62
- * @returns The ATN interpreter used by the recognizer for prediction.
63
- */
64
- get interpreter(): ATNInterpreter;
65
- /**
66
- * Set the ATN interpreter used by the recognizer for prediction.
67
- *
68
- * @param interpreter The ATN interpreter used by the recognizer for
69
- * prediction.
70
- */
71
- set interpreter(interpreter: ATNInterpreter);
72
- /** If profiling during the parse/lex, this will return DecisionInfo records
73
- * for each decision in recognizer in a ParseInfo object.
74
- *
75
- * @since 4.3
76
- */
77
- get parseInfo(): Promise<ParseInfo | undefined>;
78
- /** What is the error header, normally line/character position information? */
79
- getErrorHeader(e: RecognitionException): string;
80
- /**
81
- * @exception NullPointerException if `listener` is `undefined`.
82
- */
83
- addErrorListener(listener: ANTLRErrorListener<TSymbol>): void;
84
- removeErrorListener(listener: ANTLRErrorListener<TSymbol>): void;
85
- removeErrorListeners(): void;
86
- getErrorListeners(): Array<ANTLRErrorListener<TSymbol>>;
87
- getErrorListenerDispatch(): ANTLRErrorListener<TSymbol>;
88
- sempred(_localctx: RuleContext | undefined, ruleIndex: number, actionIndex: number): boolean;
89
- precpred(localctx: RuleContext | undefined, precedence: number): boolean;
90
- action(_localctx: RuleContext | undefined, ruleIndex: number, actionIndex: number): void;
91
- get state(): number;
92
- /** Indicate that the recognizer has changed internal state that is
93
- * consistent with the ATN state passed in. This way we always know
94
- * where we are in the ATN as the parser goes along. The rule
95
- * context objects form a stack that lets us see the stack of
96
- * invoking rules. Combine this and we have complete ATN
97
- * configuration information.
98
- */
99
- set state(atnState: number);
100
- abstract readonly inputStream: IntStream | undefined;
101
- }
@@ -1,124 +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 { Recognizer } from "./Recognizer";
7
- import { RuleNode } from "./tree/RuleNode";
8
- import { ParseTree } from "./tree/ParseTree";
9
- import { Interval } from "./misc/Interval";
10
- import { ParseTreeVisitor } from "./tree/ParseTreeVisitor";
11
- /** A rule context is a record of a single rule invocation.
12
- *
13
- * We form a stack of these context objects using the parent
14
- * pointer. A parent pointer of `undefined` indicates that the current
15
- * context is the bottom of the stack. The ParserRuleContext subclass
16
- * as a children list so that we can turn this data structure into a
17
- * tree.
18
- *
19
- * The root node always has a `undefined` pointer and invokingState of -1.
20
- *
21
- * Upon entry to parsing, the first invoked rule function creates a
22
- * context object (a subclass specialized for that rule such as
23
- * SContext) and makes it the root of a parse tree, recorded by field
24
- * Parser._ctx.
25
- *
26
- * public final SContext s() throws RecognitionException {
27
- * SContext _localctx = new SContext(_ctx, state); <-- create new node
28
- * enterRule(_localctx, 0, RULE_s); <-- push it
29
- * ...
30
- * exitRule(); <-- pop back to _localctx
31
- * return _localctx;
32
- * }
33
- *
34
- * A subsequent rule invocation of r from the start rule s pushes a
35
- * new context object for r whose parent points at s and use invoking
36
- * state is the state with r emanating as edge label.
37
- *
38
- * The invokingState fields from a context object to the root
39
- * together form a stack of rule indication states where the root
40
- * (bottom of the stack) has a -1 sentinel value. If we invoke start
41
- * symbol s then call r1, which calls r2, the would look like
42
- * this:
43
- *
44
- * SContext[-1] <- root node (bottom of the stack)
45
- * R1Context[p] <- p in rule s called r1
46
- * R2Context[q] <- q in rule r1 called r2
47
- *
48
- * So the top of the stack, _ctx, represents a call to the current
49
- * rule and it holds the return address from another rule that invoke
50
- * to this rule. To invoke a rule, we must always have a current context.
51
- *
52
- * The parent contexts are useful for computing lookahead sets and
53
- * getting error information.
54
- *
55
- * These objects are used during parsing and prediction.
56
- * For the special case of parsers, we use the subclass
57
- * ParserRuleContext.
58
- *
59
- * @see ParserRuleContext
60
- */
61
- export declare class RuleContext extends RuleNode {
62
- _parent: RuleContext | undefined;
63
- invokingState: number;
64
- constructor();
65
- constructor(parent: RuleContext | undefined, invokingState: number);
66
- static getChildContext(parent: RuleContext, invokingState: number): RuleContext;
67
- depth(): number;
68
- /** A context is empty if there is no invoking state; meaning nobody called
69
- * current context.
70
- */
71
- get isEmpty(): boolean;
72
- get sourceInterval(): Interval;
73
- get ruleContext(): RuleContext;
74
- get parent(): RuleContext | undefined;
75
- /** @since 4.7. {@see ParseTree#setParent} comment */
76
- setParent(parent: RuleContext): void;
77
- get payload(): RuleContext;
78
- /** Return the combined text of all child nodes. This method only considers
79
- * tokens which have been added to the parse tree.
80
- *
81
- * Since tokens on hidden channels (e.g. whitespace or comments) are not
82
- * added to the parse trees, they will not appear in the output of this
83
- * method.
84
- */
85
- get text(): string;
86
- get ruleIndex(): number;
87
- /** For rule associated with this parse tree internal node, return
88
- * the outer alternative number used to match the input. Default
89
- * implementation does not compute nor store this alt num. Create
90
- * a subclass of ParserRuleContext with backing field and set
91
- * option contextSuperClass.
92
- * to set it.
93
- *
94
- * @since 4.5.3
95
- */
96
- get altNumber(): number;
97
- /** Set the outer alternative number for this context node. Default
98
- * implementation does nothing to avoid backing field overhead for
99
- * trees that don't need it. Create
100
- * a subclass of ParserRuleContext with backing field and set
101
- * option contextSuperClass.
102
- *
103
- * @since 4.5.3
104
- */
105
- set altNumber(altNumber: number);
106
- getChild(i: number): ParseTree;
107
- get childCount(): number;
108
- accept<T>(visitor: ParseTreeVisitor<T>): T;
109
- /** Print out a whole tree, not just a node, in LISP format
110
- * (root child1 .. childN). Print just a node if this is a leaf.
111
- * We have to know the recognizer so we can get rule names.
112
- */
113
- toStringTree(recog: Parser): string;
114
- /** Print out a whole tree, not just a node, in LISP format
115
- * (root child1 .. childN). Print just a node if this is a leaf.
116
- */
117
- toStringTree(ruleNames: string[] | undefined): string;
118
- toStringTree(): string;
119
- toString(): string;
120
- toString(recog: Recognizer<any, any> | undefined): string;
121
- toString(ruleNames: string[] | undefined): string;
122
- toString(recog: Recognizer<any, any> | undefined, stop: RuleContext | undefined): string;
123
- toString(ruleNames: string[] | undefined, stop: RuleContext | undefined): string;
124
- }
@@ -1,22 +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 { ParserRuleContext } from "./ParserRuleContext";
6
- /** A handy class for use with
7
- *
8
- * options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;}
9
- *
10
- * that provides a backing field / impl for the outer alternative number
11
- * matched for an internal parse tree node.
12
- *
13
- * I'm only putting into Java runtime as I'm certain I'm the only one that
14
- * will really every use this.
15
- */
16
- export declare class RuleContextWithAltNum extends ParserRuleContext {
17
- private _altNumber;
18
- constructor();
19
- constructor(parent: ParserRuleContext | undefined, invokingStateNumber: number);
20
- get altNumber(): number;
21
- set altNumber(altNum: number);
22
- }
@@ -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 { Dependents } from "./Dependents";
6
- import { Parser } from "./Parser";
7
- /**
8
- * Declares a dependency upon a grammar rule, along with a set of zero or more dependent rules.
9
- *
10
- * Version numbers within a grammar should be assigned on a monotonically increasing basis to allow for accurate
11
- * tracking of dependent rules.
12
- *
13
- * @author Sam Harwell
14
- */
15
- export declare function RuleDependency(dependency: DependencySpecification): (target: object, propertyKey: PropertyKey, propertyDescriptor: PropertyDescriptor) => void;
16
- export interface DependencySpecification {
17
- readonly recognizer: {
18
- new (...args: any[]): Parser;
19
- };
20
- readonly rule: number;
21
- readonly version: number;
22
- /**
23
- * Specifies the set of grammar rules related to `rule` which the annotated element depends on. Even when absent
24
- * from this set, the annotated element is implicitly dependent upon the explicitly specified `rule`, which
25
- * corresponds to the `Dependents.SELF` element.
26
- *
27
- * By default, the annotated element is dependent upon the specified `rule` and its `Dependents.PARENTS`, i.e. the
28
- * rule within one level of context information. The parents are included since the most frequent assumption about a
29
- * rule is where it's used in the grammar.
30
- */
31
- readonly dependents?: Dependents[];
32
- }
@@ -1,11 +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 { ParserRuleContext } from "./ParserRuleContext";
7
- /**
8
- *
9
- * @author Sam Harwell
10
- */
11
- export declare function RuleVersion(version: number): <T extends ParserRuleContext>(target: Parser, propertyKey: PropertyKey, propertyDescriptor: TypedPropertyDescriptor<(...args: any[]) => T>) => void;
@@ -1,83 +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 { TokenSource } from "./TokenSource";
7
- /** A token has properties: text, type, line, character position in the line
8
- * (so we can ignore tabs), token channel, index, and source from which
9
- * we obtained this token.
10
- */
11
- export interface Token {
12
- /**
13
- * Get the text of the token.
14
- */
15
- readonly text: string | undefined;
16
- /** Get the token type of the token */
17
- readonly type: number;
18
- /** The line number on which the 1st character of this token was matched,
19
- * line=1..n
20
- */
21
- readonly line: number;
22
- /** The index of the first character of this token relative to the
23
- * beginning of the line at which it occurs, 0..n-1
24
- */
25
- readonly charPositionInLine: number;
26
- /** Return the channel this token. Each token can arrive at the parser
27
- * on a different channel, but the parser only "tunes" to a single channel.
28
- * The parser ignores everything not on DEFAULT_CHANNEL.
29
- */
30
- readonly channel: number;
31
- /** An index from 0..n-1 of the token object in the input stream.
32
- * This must be valid in order to print token streams and
33
- * use TokenRewriteStream.
34
- *
35
- * Return -1 to indicate that this token was conjured up since
36
- * it doesn't have a valid index.
37
- */
38
- readonly tokenIndex: number;
39
- /** The starting character index of the token
40
- * This method is optional; return -1 if not implemented.
41
- */
42
- readonly startIndex: number;
43
- /** The last character index of the token.
44
- * This method is optional; return -1 if not implemented.
45
- */
46
- readonly stopIndex: number;
47
- /** Gets the {@link TokenSource} which created this token.
48
- */
49
- readonly tokenSource: TokenSource | undefined;
50
- /**
51
- * Gets the {@link CharStream} from which this token was derived.
52
- */
53
- readonly inputStream: CharStream | undefined;
54
- }
55
- export declare namespace Token {
56
- const INVALID_TYPE: number;
57
- /** During lookahead operations, this "token" signifies we hit rule end ATN state
58
- * and did not follow it despite needing to.
59
- */
60
- const EPSILON: number;
61
- const MIN_USER_TOKEN_TYPE: number;
62
- const EOF: number;
63
- /** All tokens go to the parser (unless skip() is called in that rule)
64
- * on a particular "channel". The parser tunes to a particular channel
65
- * so that whitespace etc... can go to the parser on a "hidden" channel.
66
- */
67
- const DEFAULT_CHANNEL: number;
68
- /** Anything on different channel than DEFAULT_CHANNEL is not parsed
69
- * by parser.
70
- */
71
- const HIDDEN_CHANNEL: number;
72
- /**
73
- * This is the minimum constant value which can be assigned to a
74
- * user-defined token channel.
75
- *
76
- * The non-negative numbers less than {@link #MIN_USER_CHANNEL_VALUE} are
77
- * assigned to the predefined channels {@link #DEFAULT_CHANNEL} and
78
- * {@link #HIDDEN_CHANNEL}.
79
- *
80
- * @see `Token.channel`
81
- */
82
- const MIN_USER_CHANNEL_VALUE: number;
83
- }