@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,23 +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 { Token } from "./Token";
7
- import { TokenSource } from "./TokenSource";
8
- /** The default mechanism for creating tokens. It's used by default in Lexer and
9
- * the error handling strategy (to create missing tokens). Notifying the parser
10
- * of a new factory means that it notifies its token source and error strategy.
11
- */
12
- export interface TokenFactory {
13
- /** This is the method used to create tokens in the lexer and in the
14
- * error handling strategy. If text!=undefined, than the start and stop positions
15
- * are wiped to -1 in the text override is set in the CommonToken.
16
- */
17
- create(source: {
18
- source?: TokenSource;
19
- stream?: CharStream;
20
- }, type: number, text: string | undefined, channel: number, start: number, stop: number, line: number, charPositionInLine: number): Token;
21
- /** Generically useful */
22
- createSimple(type: number, text: string): Token;
23
- }
@@ -1,67 +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 { Token } from "./Token";
7
- import { TokenFactory } from "./TokenFactory";
8
- /**
9
- * A source of tokens must provide a sequence of tokens via {@link #nextToken()}
10
- * and also must reveal it's source of characters; {@link CommonToken}'s text is
11
- * computed from a {@link CharStream}; it only store indices into the char
12
- * stream.
13
- *
14
- * Errors from the lexer are never passed to the parser. Either you want to keep
15
- * going or you do not upon token recognition error. If you do not want to
16
- * continue lexing then you do not want to continue parsing. Just throw an
17
- * exception not under {@link RecognitionException} and Java will naturally toss
18
- * you all the way out of the recognizers. If you want to continue lexing then
19
- * you should not throw an exception to the parser--it has already requested a
20
- * token. Keep lexing until you get a valid one. Just report errors and keep
21
- * going, looking for a valid token.
22
- */
23
- export interface TokenSource {
24
- /**
25
- * Return a {@link Token} object from your input stream (usually a
26
- * {@link CharStream}). Do not fail/return upon lexing error; keep chewing
27
- * on the characters until you get a good one; errors are not passed through
28
- * to the parser.
29
- */
30
- nextToken(): Token;
31
- /**
32
- * Get the line number for the current position in the input stream. The
33
- * first line in the input is line 1.
34
- *
35
- * @returns The line number for the current position in the input stream, or
36
- * 0 if the current token source does not track line numbers.
37
- */
38
- readonly line: number;
39
- /**
40
- * Get the index into the current line for the current position in the input
41
- * stream. The first character on a line has position 0.
42
- *
43
- * @returns The line number for the current position in the input stream, or
44
- * -1 if the current token source does not track character positions.
45
- */
46
- readonly charPositionInLine: number;
47
- /**
48
- * Get the {@link CharStream} from which this token source is currently
49
- * providing tokens.
50
- *
51
- * @returns The {@link CharStream} associated with the current position in
52
- * the input, or `undefined` if no input stream is available for the token
53
- * source.
54
- */
55
- readonly inputStream: CharStream | undefined;
56
- /**
57
- * Gets the name of the underlying input source. This method returns a
58
- * non-undefined, non-empty string. If such a name is not known, this method
59
- * returns {@link IntStream#UNKNOWN_SOURCE_NAME}.
60
- */
61
- readonly sourceName: string;
62
- /**
63
- * Gets or sets the `TokenFactory` this token source is currently using for
64
- * creating `Token` objects from the input.
65
- */
66
- tokenFactory: TokenFactory;
67
- }
@@ -1,145 +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 { Interval } from "./misc/Interval";
6
- import { IntStream } from "./IntStream";
7
- import { RuleContext } from "./RuleContext";
8
- import { Token } from "./Token";
9
- import { TokenSource } from "./TokenSource";
10
- /**
11
- * An {@link IntStream} whose symbols are {@link Token} instances.
12
- */
13
- export interface TokenStream extends IntStream {
14
- /**
15
- * Get the `Token` instance associated with the value returned by `LA(k)`. This method has the same pre- and
16
- * post-conditions as `IntStream.LA`. In addition, when the preconditions of this method are met, the return value
17
- * is non-undefined and the value of `LT(k).type === LA(k)`.
18
- *
19
- * A `RangeError` is thrown if `k<0` and fewer than `-k` calls to `consume()` have occurred from the beginning of
20
- * the stream before calling this method.
21
- *
22
- * See `IntStream.LA`
23
- */
24
- LT(k: number): Token;
25
- /**
26
- * Get the `Token` instance associated with the value returned by `LA(k)`. This method has the same pre- and
27
- * post-conditions as `IntStream.LA`. In addition, when the preconditions of this method are met, the return value
28
- * is non-undefined and the value of `tryLT(k).type === LA(k)`.
29
- *
30
- * The return value is `undefined` if `k<0` and fewer than `-k` calls to `consume()` have occurred from the
31
- * beginning of the stream before calling this method.
32
- *
33
- * See `IntStream.LA`
34
- */
35
- tryLT(k: number): Token | undefined;
36
- /**
37
- * Gets the {@link Token} at the specified `index` in the stream. When
38
- * the preconditions of this method are met, the return value is non-undefined.
39
- *
40
- * The preconditions for this method are the same as the preconditions of
41
- * {@link IntStream#seek}. If the behavior of `seek(index)` is
42
- * unspecified for the current state and given `index`, then the
43
- * behavior of this method is also unspecified.
44
- *
45
- * The symbol referred to by `index` differs from `seek()` only
46
- * in the case of filtering streams where `index` lies before the end
47
- * of the stream. Unlike `seek()`, this method does not adjust
48
- * `index` to point to a non-ignored symbol.
49
- *
50
- * @throws IllegalArgumentException if {code index} is less than 0
51
- * @throws UnsupportedOperationException if the stream does not support
52
- * retrieving the token at the specified index
53
- */
54
- get(i: number): Token;
55
- /**
56
- * Gets the underlying {@link TokenSource} which provides tokens for this
57
- * stream.
58
- */
59
- readonly tokenSource: TokenSource;
60
- /**
61
- * Return the text of all tokens within the specified `interval`. This
62
- * method behaves like the following code (including potential exceptions
63
- * for violating preconditions of {@link #get}, but may be optimized by the
64
- * specific implementation.
65
- *
66
- * ```
67
- * TokenStream stream = ...;
68
- * String text = "";
69
- * for (int i = interval.a; i <= interval.b; i++) {
70
- * text += stream.get(i).text;
71
- * }
72
- * ```
73
- *
74
- * @param interval The interval of tokens within this stream to get text
75
- * for.
76
- * @returns The text of all tokens within the specified interval in this
77
- * stream.
78
- *
79
- * @throws NullPointerException if `interval` is `undefined`
80
- */
81
- getText(/*@NotNull*/ interval: Interval): string;
82
- /**
83
- * Return the text of all tokens in the stream. This method behaves like the
84
- * following code, including potential exceptions from the calls to
85
- * {@link IntStream#size} and {@link #getText(Interval)}, but may be
86
- * optimized by the specific implementation.
87
- *
88
- * ```
89
- * TokenStream stream = ...;
90
- * String text = stream.getText(new Interval(0, stream.size));
91
- * ```
92
- *
93
- * @returns The text of all tokens in the stream.
94
- */
95
- getText(): string;
96
- /**
97
- * Return the text of all tokens in the source interval of the specified
98
- * context. This method behaves like the following code, including potential
99
- * exceptions from the call to {@link #getText(Interval)}, but may be
100
- * optimized by the specific implementation.
101
- *
102
- * If `ctx.sourceInterval` does not return a valid interval of
103
- * tokens provided by this stream, the behavior is unspecified.
104
- *
105
- * ```
106
- * TokenStream stream = ...;
107
- * String text = stream.getText(ctx.sourceInterval);
108
- * ```
109
- *
110
- * @param ctx The context providing the source interval of tokens to get
111
- * text for.
112
- * @returns The text of all tokens within the source interval of `ctx`.
113
- */
114
- getText(/*@NotNull*/ ctx: RuleContext): string;
115
- /**
116
- * Return the text of all tokens in this stream between `start` and
117
- * `stop` (inclusive).
118
- *
119
- * If the specified `start` or `stop` token was not provided by
120
- * this stream, or if the `stop` occurred before the `start`}
121
- * token, the behavior is unspecified.
122
- *
123
- * For streams which ensure that the `Token.tokenIndex` method is
124
- * accurate for all of its provided tokens, this method behaves like the
125
- * following code. Other streams may implement this method in other ways
126
- * provided the behavior is consistent with this at a high level.
127
- *
128
- * ```
129
- * TokenStream stream = ...;
130
- * String text = "";
131
- * for (int i = start.tokenIndex; i <= stop.tokenIndex; i++) {
132
- * text += stream.get(i).text;
133
- * }
134
- * ```
135
- *
136
- * @param start The first token in the interval to get text for.
137
- * @param stop The last token in the interval to get text for (inclusive).
138
- * @returns The text of all tokens lying between the specified `start`
139
- * and `stop` tokens.
140
- *
141
- * @throws UnsupportedOperationException if this stream does not support
142
- * this method for the specified tokens
143
- */
144
- getTextFromRange(start: any, stop: any): string;
145
- }
@@ -1,216 +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 { Interval } from "./misc/Interval";
6
- import { Token } from "./Token";
7
- import { TokenStream } from "./TokenStream";
8
- /**
9
- * Useful for rewriting out a buffered input token stream after doing some
10
- * augmentation or other manipulations on it.
11
- *
12
- * You can insert stuff, replace, and delete chunks. Note that the operations
13
- * are done lazily--only if you convert the buffer to a {@link String} with
14
- * {@link TokenStream#getText()}. This is very efficient because you are not
15
- * moving data around all the time. As the buffer of tokens is converted to
16
- * strings, the {@link #getText()} method(s) scan the input token stream and
17
- * check to see if there is an operation at the current index. If so, the
18
- * operation is done and then normal {@link String} rendering continues on the
19
- * buffer. This is like having multiple Turing machine instruction streams
20
- * (programs) operating on a single input tape. :)
21
- *
22
- * This rewriter makes no modifications to the token stream. It does not ask the
23
- * stream to fill itself up nor does it advance the input cursor. The token
24
- * stream `TokenStream.index` will return the same value before and
25
- * after any {@link #getText()} call.
26
- *
27
- * The rewriter only works on tokens that you have in the buffer and ignores the
28
- * current input cursor. If you are buffering tokens on-demand, calling
29
- * {@link #getText()} halfway through the input will only do rewrites for those
30
- * tokens in the first half of the file.
31
- *
32
- * Since the operations are done lazily at {@link #getText}-time, operations do
33
- * not screw up the token index values. That is, an insert operation at token
34
- * index `i` does not change the index values for tokens
35
- * `i`+1..n-1.
36
- *
37
- * Because operations never actually alter the buffer, you may always get the
38
- * original token stream back without undoing anything. Since the instructions
39
- * are queued up, you can easily simulate transactions and roll back any changes
40
- * if there is an error just by removing instructions. For example,
41
- *
42
- * ```
43
- * CharStream input = new ANTLRFileStream("input");
44
- * TLexer lex = new TLexer(input);
45
- * CommonTokenStream tokens = new CommonTokenStream(lex);
46
- * T parser = new T(tokens);
47
- * TokenStreamRewriter rewriter = new TokenStreamRewriter(tokens);
48
- * parser.startRule();
49
- * ```
50
- *
51
- * Then in the rules, you can execute (assuming rewriter is visible):
52
- *
53
- * ```
54
- * Token t,u;
55
- * ...
56
- * rewriter.insertAfter(t, "text to put after t");}
57
- * rewriter.insertAfter(u, "text after u");}
58
- * System.out.println(rewriter.getText());
59
- * ```
60
- *
61
- * You can also have multiple "instruction streams" and get multiple rewrites
62
- * from a single pass over the input. Just name the instruction streams and use
63
- * that name again when printing the buffer. This could be useful for generating
64
- * a C file and also its header file--all from the same buffer:
65
- *
66
- * ```
67
- * rewriter.insertAfter("pass1", t, "text to put after t");}
68
- * rewriter.insertAfter("pass2", u, "text after u");}
69
- * System.out.println(rewriter.getText("pass1"));
70
- * System.out.println(rewriter.getText("pass2"));
71
- * ```
72
- *
73
- * If you don't use named rewrite streams, a "default" stream is used as the
74
- * first example shows.
75
- */
76
- export declare class TokenStreamRewriter {
77
- static readonly DEFAULT_PROGRAM_NAME: string;
78
- static readonly PROGRAM_INIT_SIZE: number;
79
- static readonly MIN_TOKEN_INDEX: number;
80
- /** Our source stream */
81
- protected tokens: TokenStream;
82
- /** You may have multiple, named streams of rewrite operations.
83
- * I'm calling these things "programs."
84
- * Maps String (name) &rarr; rewrite (List)
85
- */
86
- protected programs: Map<string, RewriteOperation[]>;
87
- /** Map String (program name) &rarr; Integer index */
88
- protected lastRewriteTokenIndexes: Map<string, number>;
89
- constructor(tokens: TokenStream);
90
- getTokenStream(): TokenStream;
91
- rollback(instructionIndex: number): void;
92
- /** Rollback the instruction stream for a program so that
93
- * the indicated instruction (via instructionIndex) is no
94
- * longer in the stream. UNTESTED!
95
- */
96
- rollback(instructionIndex: number, programName: string): void;
97
- deleteProgram(): void;
98
- /** Reset the program so that no instructions exist */
99
- deleteProgram(programName: string): void;
100
- insertAfter(t: Token, text: {}): void;
101
- insertAfter(index: number, text: {}): void;
102
- insertAfter(t: Token, text: {}, programName: string): void;
103
- insertAfter(index: number, text: {}, programName: string): void;
104
- insertBefore(t: Token, text: {}): void;
105
- insertBefore(index: number, text: {}): void;
106
- insertBefore(t: Token, text: {}, programName: string): void;
107
- insertBefore(index: number, text: {}, programName: string): void;
108
- replaceSingle(index: number, text: {}): void;
109
- replaceSingle(indexT: Token, text: {}): void;
110
- replace(from: number, to: number, text: {}): void;
111
- replace(from: Token, to: Token, text: {}): void;
112
- replace(from: number, to: number, text: {}, programName: string): void;
113
- replace(from: Token, to: Token, text: {}, programName: string): void;
114
- delete(index: number): void;
115
- delete(from: number, to: number): void;
116
- delete(indexT: Token): void;
117
- delete(from: Token, to: Token): void;
118
- delete(from: number, to: number, programName: string): void;
119
- delete(from: Token, to: Token, programName: string): void;
120
- protected getLastRewriteTokenIndex(): number;
121
- protected getLastRewriteTokenIndex(programName: string): number;
122
- protected setLastRewriteTokenIndex(programName: string, i: number): void;
123
- protected getProgram(name: string): RewriteOperation[];
124
- private initializeProgram;
125
- /** Return the text from the original tokens altered per the
126
- * instructions given to this rewriter.
127
- */
128
- getText(): string;
129
- /** Return the text from the original tokens altered per the
130
- * instructions given to this rewriter in programName.
131
- *
132
- * @since 4.5
133
- */
134
- getText(programName: string): string;
135
- /** Return the text associated with the tokens in the interval from the
136
- * original token stream but with the alterations given to this rewriter.
137
- * The interval refers to the indexes in the original token stream.
138
- * We do not alter the token stream in any way, so the indexes
139
- * and intervals are still consistent. Includes any operations done
140
- * to the first and last token in the interval. So, if you did an
141
- * insertBefore on the first token, you would get that insertion.
142
- * The same is true if you do an insertAfter the stop token.
143
- */
144
- getText(interval: Interval): string;
145
- getText(interval: Interval, programName: string): string;
146
- /** We need to combine operations and report invalid operations (like
147
- * overlapping replaces that are not completed nested). Inserts to
148
- * same index need to be combined etc... Here are the cases:
149
- *
150
- * I.i.u I.j.v leave alone, nonoverlapping
151
- * I.i.u I.i.v combine: Iivu
152
- *
153
- * R.i-j.u R.x-y.v | i-j in x-y delete first R
154
- * R.i-j.u R.i-j.v delete first R
155
- * R.i-j.u R.x-y.v | x-y in i-j ERROR
156
- * R.i-j.u R.x-y.v | boundaries overlap ERROR
157
- *
158
- * Delete special case of replace (text==undefined):
159
- * D.i-j.u D.x-y.v | boundaries overlap combine to max(min)..max(right)
160
- *
161
- * I.i.u R.x-y.v | i in (x+1)-y delete I (since insert before
162
- * we're not deleting i)
163
- * I.i.u R.x-y.v | i not in (x+1)-y leave alone, nonoverlapping
164
- * R.x-y.v I.i.u | i in x-y ERROR
165
- * R.x-y.v I.x.u R.x-y.uv (combine, delete I)
166
- * R.x-y.v I.i.u | i not in x-y leave alone, nonoverlapping
167
- *
168
- * I.i.u = insert u before op @ index i
169
- * R.x-y.u = replace x-y indexed tokens with u
170
- *
171
- * First we need to examine replaces. For any replace op:
172
- *
173
- * 1. wipe out any insertions before op within that range.
174
- * 2. Drop any replace op before that is contained completely within
175
- * that range.
176
- * 3. Throw exception upon boundary overlap with any previous replace.
177
- *
178
- * Then we can deal with inserts:
179
- *
180
- * 1. for any inserts to same index, combine even if not adjacent.
181
- * 2. for any prior replace with same left boundary, combine this
182
- * insert with replace and delete this replace.
183
- * 3. throw exception if index in same range as previous replace
184
- *
185
- * Don't actually delete; make op undefined in list. Easier to walk list.
186
- * Later we can throw as we add to index &rarr; op map.
187
- *
188
- * Note that I.2 R.2-2 will wipe out I.2 even though, technically, the
189
- * inserted stuff would be before the replace range. But, if you
190
- * add tokens in front of a method body '{' and then delete the method
191
- * body, I think the stuff before the '{' you added should disappear too.
192
- *
193
- * Return a map from token index to operation.
194
- */
195
- protected reduceToSingleOperationPerIndex(rewrites: Array<RewriteOperation | undefined>): Map<number, RewriteOperation>;
196
- protected catOpText(a: {}, b: {}): string;
197
- /** Get all operations before an index of a particular kind */
198
- protected getKindOfOps<T extends RewriteOperation>(rewrites: Array<RewriteOperation | undefined>, kind: {
199
- new (...args: any[]): T;
200
- }, before: number): T[];
201
- }
202
- export declare class RewriteOperation {
203
- protected readonly tokens: TokenStream;
204
- /** What index into rewrites List are we? */
205
- readonly instructionIndex: number;
206
- /** Token buffer index. */
207
- index: number;
208
- text: {};
209
- constructor(tokens: TokenStream, index: number, instructionIndex: number);
210
- constructor(tokens: TokenStream, index: number, instructionIndex: number, text: {});
211
- /** Execute the rewrite operation by possibly adding to the buffer.
212
- * Return the index of the next token to operate on.
213
- */
214
- execute(buf: string[]): number;
215
- toString(): string;
216
- }
@@ -1,117 +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 interface provides information about the vocabulary used by a
7
- * recognizer.
8
- *
9
- * @see Recognizer.vocabulary
10
- * @author Sam Harwell
11
- */
12
- export interface Vocabulary {
13
- /**
14
- * Returns the highest token type value. It can be used to iterate from
15
- * zero to that number, inclusively, thus querying all stored entries.
16
- * @returns the highest token type value
17
- */
18
- readonly maxTokenType: number;
19
- /**
20
- * Gets the string literal associated with a token type. The string returned
21
- * by this method, when not `undefined`, can be used unaltered in a parser
22
- * grammar to represent this token type.
23
- *
24
- * The following table shows examples of lexer rules and the literal
25
- * names assigned to the corresponding token types.
26
- *
27
- * <table>
28
- * <tr>
29
- * <th>Rule</th>
30
- * <th>Literal Name</th>
31
- * <th>Java String Literal</th>
32
- * </tr>
33
- * <tr>
34
- * <td>`THIS : 'this';`</td>
35
- * <td>`'this'`</td>
36
- * <td>`"'this'"`</td>
37
- * </tr>
38
- * <tr>
39
- * <td>`SQUOTE : '\'';`</td>
40
- * <td>`'\''`</td>
41
- * <td>`"'\\''"`</td>
42
- * </tr>
43
- * <tr>
44
- * <td>`ID : [A-Z]+;`</td>
45
- * <td>n/a</td>
46
- * <td>`undefined`</td>
47
- * </tr>
48
- * </table>
49
- *
50
- * @param tokenType The token type.
51
- *
52
- * @returns The string literal associated with the specified token type, or
53
- * `undefined` if no string literal is associated with the type.
54
- */
55
- getLiteralName(tokenType: number): string | undefined;
56
- /**
57
- * Gets the symbolic name associated with a token type. The string returned
58
- * by this method, when not `undefined`, can be used unaltered in a parser
59
- * grammar to represent this token type.
60
- *
61
- * This method supports token types defined by any of the following
62
- * methods:
63
- *
64
- * * Tokens created by lexer rules.
65
- * * Tokens defined in a `tokens{}` block in a lexer or parser
66
- * grammar.
67
- * * The implicitly defined `EOF` token, which has the token type
68
- * {@link Token#EOF}.
69
- *
70
- * The following table shows examples of lexer rules and the literal
71
- * names assigned to the corresponding token types.
72
- *
73
- * <table>
74
- * <tr>
75
- * <th>Rule</th>
76
- * <th>Symbolic Name</th>
77
- * </tr>
78
- * <tr>
79
- * <td>`THIS : 'this';`</td>
80
- * <td>`THIS`</td>
81
- * </tr>
82
- * <tr>
83
- * <td>`SQUOTE : '\'';`</td>
84
- * <td>`SQUOTE`</td>
85
- * </tr>
86
- * <tr>
87
- * <td>`ID : [A-Z]+;`</td>
88
- * <td>`ID`</td>
89
- * </tr>
90
- * </table>
91
- *
92
- * @param tokenType The token type.
93
- *
94
- * @returns The symbolic name associated with the specified token type, or
95
- * `undefined` if no symbolic name is associated with the type.
96
- */
97
- getSymbolicName(tokenType: number): string | undefined;
98
- /**
99
- * Gets the display name of a token type.
100
- *
101
- * ANTLR provides a default implementation of this method, but
102
- * applications are free to override the behavior in any manner which makes
103
- * sense for the application. The default implementation returns the first
104
- * result from the following list which produces a non-`undefined`
105
- * result.
106
- *
107
- * 1. The result of {@link #getLiteralName}
108
- * 1. The result of {@link #getSymbolicName}
109
- * 1. The result of {@link Integer#toString}
110
- *
111
- * @param tokenType The token type.
112
- *
113
- * @returns The display name of the token type, for use in error reporting or
114
- * other user-visible messages which reference specific token types.
115
- */
116
- getDisplayName(tokenType: number): string;
117
- }
@@ -1,47 +0,0 @@
1
- /*!
2
- * Copyright 2016 The ANTLR Project. All rights reserved.
3
- * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
4
- */
5
- import { Vocabulary } from "./Vocabulary";
6
- /**
7
- * This class provides a default implementation of the {@link Vocabulary}
8
- * interface.
9
- *
10
- * @author Sam Harwell
11
- */
12
- export declare class VocabularyImpl implements Vocabulary {
13
- /**
14
- * Gets an empty {@link Vocabulary} instance.
15
- *
16
- * No literal or symbol names are assigned to token types, so
17
- * {@link #getDisplayName(int)} returns the numeric value for all tokens
18
- * except {@link Token#EOF}.
19
- */
20
- static readonly EMPTY_VOCABULARY: VocabularyImpl;
21
- private readonly literalNames;
22
- private readonly symbolicNames;
23
- private readonly displayNames;
24
- private _maxTokenType;
25
- /**
26
- * Constructs a new instance of {@link VocabularyImpl} from the specified
27
- * literal, symbolic, and display token names.
28
- *
29
- * @param literalNames The literal names assigned to tokens, or an empty array
30
- * if no literal names are assigned.
31
- * @param symbolicNames The symbolic names assigned to tokens, or
32
- * an empty array if no symbolic names are assigned.
33
- * @param displayNames The display names assigned to tokens, or an empty array
34
- * to use the values in `literalNames` and `symbolicNames` as
35
- * the source of display names, as described in
36
- * {@link #getDisplayName(int)}.
37
- *
38
- * @see #getLiteralName(int)
39
- * @see #getSymbolicName(int)
40
- * @see #getDisplayName(int)
41
- */
42
- constructor(literalNames: Array<string | undefined>, symbolicNames: Array<string | undefined>, displayNames: Array<string | undefined>);
43
- get maxTokenType(): number;
44
- getLiteralName(tokenType: number): string | undefined;
45
- getSymbolicName(tokenType: number): string | undefined;
46
- getDisplayName(tokenType: number): string;
47
- }
@@ -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 { Token } from "./Token";
6
- export interface WritableToken extends Token {
7
- text: string | undefined;
8
- type: number;
9
- line: number;
10
- charPositionInLine: number;
11
- channel: number;
12
- tokenIndex: number;
13
- }