@plumile/ui 0.1.113 → 0.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/_virtual/_rolldown/runtime.js +5 -5
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
- package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
- package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
- package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
- package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
- package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
- package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
- package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
- package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
- package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
- package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
- package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
- package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
- package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
- package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
- package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
- package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
- package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
- package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
- package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
- package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/isString.js +3 -3
- package/lib/esm/node_modules/lodash-es/keys.js +4 -4
- package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/map.js +3 -3
- package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
- package/lib/esm/node_modules/lodash-es/max.js +3 -3
- package/lib/esm/node_modules/lodash-es/min.js +3 -3
- package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
- package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
- package/lib/esm/node_modules/lodash-es/size.js +4 -4
- package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
- package/lib/esm/node_modules/lodash-es/union.js +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
- package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
- package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
- package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
- package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
- package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
- package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
- package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
- package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
- package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
- package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
- package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
- package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
- package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
- package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
- package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
- package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
- package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createDefaultCoreModule as e, createDefaultSharedCoreModule as t } from "../../../../../langium/lib/default-module.js";
|
|
2
|
-
import { inject as n } from "../../../../../langium/lib/dependency-injection.js";
|
|
3
|
-
import { EmptyFileSystem as r } from "../../../../../langium/lib/workspace/file-system-provider.js";
|
|
4
|
-
import { AbstractMermaidTokenBuilder as i, CommonValueConverter as a, InfoGrammarGeneratedModule as o, MermaidGeneratedSharedModule as s, __name as c } from "./chunk-K5T4RW27.js";
|
|
5
|
-
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.mjs
|
|
6
|
-
var l = class extends i {
|
|
7
|
-
static {
|
|
8
|
-
c(this, "InfoTokenBuilder");
|
|
9
|
-
}
|
|
10
|
-
constructor() {
|
|
11
|
-
super(["info", "showInfo"]);
|
|
12
|
-
}
|
|
13
|
-
}, u = { parser: {
|
|
14
|
-
TokenBuilder: /* @__PURE__ */ c(() => new l(), "TokenBuilder"),
|
|
15
|
-
ValueConverter: /* @__PURE__ */ c(() => new a(), "ValueConverter")
|
|
16
|
-
} };
|
|
17
|
-
function d(i = r) {
|
|
18
|
-
let a = n(t(i), s), c = n(e({ shared: a }), o, u);
|
|
19
|
-
return a.ServiceRegistry.register(c), {
|
|
20
|
-
shared: a,
|
|
21
|
-
Info: c
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
c(d, "createInfoServices");
|
|
25
|
-
//#endregion
|
|
26
|
-
export { u as InfoModule, d as createInfoServices };
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=chunk-KGLVRYIC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-KGLVRYIC.js","names":[],"sources":["../../../../../../../../../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.mjs"],"sourcesContent":["import {\n AbstractMermaidTokenBuilder,\n CommonValueConverter,\n InfoGrammarGeneratedModule,\n MermaidGeneratedSharedModule,\n __name\n} from \"./chunk-K5T4RW27.mjs\";\n\n// src/language/info/module.ts\nimport {\n EmptyFileSystem,\n createDefaultCoreModule,\n createDefaultSharedCoreModule,\n inject\n} from \"langium\";\n\n// src/language/info/tokenBuilder.ts\nvar InfoTokenBuilder = class extends AbstractMermaidTokenBuilder {\n static {\n __name(this, \"InfoTokenBuilder\");\n }\n constructor() {\n super([\"info\", \"showInfo\"]);\n }\n};\n\n// src/language/info/module.ts\nvar InfoModule = {\n parser: {\n TokenBuilder: /* @__PURE__ */ __name(() => new InfoTokenBuilder(), \"TokenBuilder\"),\n ValueConverter: /* @__PURE__ */ __name(() => new CommonValueConverter(), \"ValueConverter\")\n }\n};\nfunction createInfoServices(context = EmptyFileSystem) {\n const shared = inject(\n createDefaultSharedCoreModule(context),\n MermaidGeneratedSharedModule\n );\n const Info = inject(\n createDefaultCoreModule({ shared }),\n InfoGrammarGeneratedModule,\n InfoModule\n );\n shared.ServiceRegistry.register(Info);\n return { shared, Info };\n}\n__name(createInfoServices, \"createInfoServices\");\n\nexport {\n InfoModule,\n createInfoServices\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAiBA,IAAI,IAAmB,cAAc,EAA4B;CAC/D;EACE,EAAO,MAAM,mBAAmB;;CAElC,cAAc;EACZ,MAAM,CAAC,QAAQ,WAAW,CAAC;;GAK3B,IAAa,EACf,QAAQ;CACN,cAA8B,wBAAa,IAAI,GAAkB,EAAE,eAAe;CAClF,gBAAgC,wBAAa,IAAI,GAAsB,EAAE,iBAAiB;CAC3F,EACF;AACD,SAAS,EAAmB,IAAU,GAAiB;CACrD,IAAM,IAAS,EACb,EAA8B,EAAQ,EACtC,EACD,EACK,IAAO,EACX,EAAwB,EAAE,WAAQ,CAAC,EACnC,GACA,EACD;CAED,OADA,EAAO,gBAAgB,SAAS,EAAK,EAC9B;EAAE;EAAQ;EAAM;;AAEzB,EAAO,GAAoB,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-LIHQZDEY.js","names":[],"sources":["../../../../../../../../../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.mjs"],"sourcesContent":["import {\n AbstractMermaidTokenBuilder,\n AbstractMermaidValueConverter,\n MermaidGeneratedSharedModule,\n TreemapGrammarGeneratedModule,\n __name\n} from \"./chunk-K5T4RW27.mjs\";\n\n// src/language/treemap/module.ts\nimport {\n EmptyFileSystem,\n createDefaultCoreModule,\n createDefaultSharedCoreModule,\n inject\n} from \"langium\";\n\n// src/language/treemap/tokenBuilder.ts\nvar TreemapTokenBuilder = class extends AbstractMermaidTokenBuilder {\n static {\n __name(this, \"TreemapTokenBuilder\");\n }\n constructor() {\n super([\"treemap\"]);\n }\n};\n\n// src/language/treemap/valueConverter.ts\nvar classDefRegex = /classDef\\s+([A-Z_a-z]\\w+)(?:\\s+([^\\n\\r;]*))?;?/;\nvar TreemapValueConverter = class extends AbstractMermaidValueConverter {\n static {\n __name(this, \"TreemapValueConverter\");\n }\n runCustomConverter(rule, input, _cstNode) {\n if (rule.name === \"NUMBER2\") {\n return parseFloat(input.replace(/,/g, \"\"));\n } else if (rule.name === \"SEPARATOR\") {\n return input.substring(1, input.length - 1);\n } else if (rule.name === \"STRING2\") {\n return input.substring(1, input.length - 1);\n } else if (rule.name === \"INDENTATION\") {\n return input.length;\n } else if (rule.name === \"ClassDef\") {\n if (typeof input !== \"string\") {\n return input;\n }\n const match = classDefRegex.exec(input);\n if (match) {\n return {\n $type: \"ClassDefStatement\",\n className: match[1],\n styleText: match[2] || void 0\n };\n }\n }\n return void 0;\n }\n};\n\n// src/language/treemap/treemap-validator.ts\nfunction registerValidationChecks(services) {\n const validator = services.validation.TreemapValidator;\n const registry = services.validation.ValidationRegistry;\n if (registry) {\n const checks = {\n Treemap: validator.checkSingleRoot.bind(validator)\n // Remove unused validation for TreemapRow\n };\n registry.register(checks, validator);\n }\n}\n__name(registerValidationChecks, \"registerValidationChecks\");\nvar TreemapValidator = class {\n static {\n __name(this, \"TreemapValidator\");\n }\n /**\n * Validates that a treemap has only one root node.\n * A root node is defined as a node that has no indentation.\n */\n checkSingleRoot(doc, accept) {\n let rootNodeIndentation;\n for (const row of doc.TreemapRows) {\n if (!row.item) {\n continue;\n }\n if (rootNodeIndentation === void 0 && // Check if this is a root node (no indentation)\n row.indent === void 0) {\n rootNodeIndentation = 0;\n } else if (row.indent === void 0) {\n accept(\"error\", \"Multiple root nodes are not allowed in a treemap.\", {\n node: row,\n property: \"item\"\n });\n } else if (rootNodeIndentation !== void 0 && rootNodeIndentation >= parseInt(row.indent, 10)) {\n accept(\"error\", \"Multiple root nodes are not allowed in a treemap.\", {\n node: row,\n property: \"item\"\n });\n }\n }\n }\n};\n\n// src/language/treemap/module.ts\nvar TreemapModule = {\n parser: {\n TokenBuilder: /* @__PURE__ */ __name(() => new TreemapTokenBuilder(), \"TokenBuilder\"),\n ValueConverter: /* @__PURE__ */ __name(() => new TreemapValueConverter(), \"ValueConverter\")\n },\n validation: {\n TreemapValidator: /* @__PURE__ */ __name(() => new TreemapValidator(), \"TreemapValidator\")\n }\n};\nfunction createTreemapServices(context = EmptyFileSystem) {\n const shared = inject(\n createDefaultSharedCoreModule(context),\n MermaidGeneratedSharedModule\n );\n const Treemap = inject(\n createDefaultCoreModule({ shared }),\n TreemapGrammarGeneratedModule,\n TreemapModule\n );\n shared.ServiceRegistry.register(Treemap);\n registerValidationChecks(Treemap);\n return { shared, Treemap };\n}\n__name(createTreemapServices, \"createTreemapServices\");\n\nexport {\n TreemapModule,\n createTreemapServices\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAiBA,IAAI,IAAsB,cAAc,EAA4B;CAClE;EACE,EAAO,MAAM,sBAAsB;;CAErC,cAAc;EACZ,MAAM,CAAC,UAAU,CAAC;;GAKlB,IAAgB,kDAChB,IAAwB,cAAc,EAA8B;CACtE;EACE,EAAO,MAAM,wBAAwB;;CAEvC,mBAAmB,GAAM,GAAO,GAAU;EACxC,IAAI,EAAK,SAAS,WAChB,OAAO,WAAW,EAAM,QAAQ,MAAM,GAAG,CAAC;EAGrC,IAFI,EAAK,SAAS,eAEd,EAAK,SAAS,WACvB,OAAO,EAAM,UAAU,GAAG,EAAM,SAAS,EAAE;EACtC,IAAI,EAAK,SAAS,eACvB,OAAO,EAAM;EACR,IAAI,EAAK,SAAS,YAAY;GACnC,IAAI,OAAO,KAAU,UACnB,OAAO;GAET,IAAM,IAAQ,EAAc,KAAK,EAAM;GACvC,IAAI,GACF,OAAO;IACL,OAAO;IACP,WAAW,EAAM;IACjB,WAAW,EAAM,MAAM,KAAK;IAC7B;;;;AAQT,SAAS,EAAyB,GAAU;CAC1C,IAAM,IAAY,EAAS,WAAW,kBAChC,IAAW,EAAS,WAAW;CACrC,IAAI,GAAU;EACZ,IAAM,IAAS,EACb,SAAS,EAAU,gBAAgB,KAAK,EAAU,EAEnD;EACD,EAAS,SAAS,GAAQ,EAAU;;;AAGxC,EAAO,GAA0B,2BAA2B;AAC5D,IAAI,IAAmB,MAAM;CAC3B;EACE,EAAO,MAAM,mBAAmB;;CAMlC,gBAAgB,GAAK,GAAQ;EAC3B,IAAI;EACJ,KAAK,IAAM,KAAO,EAAI,aACf,EAAI,SAGL,MAAwB,KAAK,KACjC,EAAI,WAAW,KAAK,IAClB,IAAsB,KACb,EAAI,WAAW,KAAK,KAKpB,MAAwB,KAAK,KAAK,KAAuB,SAAS,EAAI,QAAQ,GAAG,KAJ1F,EAAO,SAAS,qDAAqD;GACnE,MAAM;GACN,UAAU;GACX,CAAC;;GAYN,IAAgB;CAClB,QAAQ;EACN,cAA8B,wBAAa,IAAI,GAAqB,EAAE,eAAe;EACrF,gBAAgC,wBAAa,IAAI,GAAuB,EAAE,iBAAiB;EAC5F;CACD,YAAY,EACV,kBAAkC,wBAAa,IAAI,GAAkB,EAAE,mBAAmB,EAC3F;CACF;AACD,SAAS,EAAsB,IAAU,GAAiB;CACxD,IAAM,IAAS,EACb,EAA8B,EAAQ,EACtC,EACD,EACK,IAAU,EACd,EAAwB,EAAE,WAAQ,CAAC,EACnC,GACA,EACD;CAGD,OAFA,EAAO,gBAAgB,SAAS,EAAQ,EACxC,EAAyB,EAAQ,EAC1B;EAAE;EAAQ;EAAS;;AAE5B,EAAO,GAAuB,wBAAwB"}
|
package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createDefaultCoreModule as e, createDefaultSharedCoreModule as t } from "../../../../../langium/lib/default-module.js";
|
|
2
|
-
import { inject as n } from "../../../../../langium/lib/dependency-injection.js";
|
|
3
|
-
import { EmptyFileSystem as r } from "../../../../../langium/lib/workspace/file-system-provider.js";
|
|
4
|
-
import { AbstractMermaidTokenBuilder as i, AbstractMermaidValueConverter as a, MermaidGeneratedSharedModule as o, TreeViewGrammarGeneratedModule as s, __name as c } from "./chunk-K5T4RW27.js";
|
|
5
|
-
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.mjs
|
|
6
|
-
var l = class extends a {
|
|
7
|
-
static {
|
|
8
|
-
c(this, "TreeViewValueConverter");
|
|
9
|
-
}
|
|
10
|
-
runCustomConverter(e, t, n) {
|
|
11
|
-
if (e.name === "INDENTATION") return t?.length || 0;
|
|
12
|
-
if (e.name === "STRING2") return t.substring(1, t.length - 1);
|
|
13
|
-
}
|
|
14
|
-
}, u = class extends i {
|
|
15
|
-
static {
|
|
16
|
-
c(this, "TreeViewTokenBuilder");
|
|
17
|
-
}
|
|
18
|
-
constructor() {
|
|
19
|
-
super(["treeView-beta"]);
|
|
20
|
-
}
|
|
21
|
-
}, d = { parser: {
|
|
22
|
-
TokenBuilder: /* @__PURE__ */ c(() => new u(), "TokenBuilder"),
|
|
23
|
-
ValueConverter: /* @__PURE__ */ c(() => new l(), "ValueConverter")
|
|
24
|
-
} };
|
|
25
|
-
function f(i = r) {
|
|
26
|
-
let a = n(t(i), o), c = n(e({ shared: a }), s, d);
|
|
27
|
-
return a.ServiceRegistry.register(c), {
|
|
28
|
-
shared: a,
|
|
29
|
-
TreeView: c
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
c(f, "createTreeViewServices");
|
|
33
|
-
//#endregion
|
|
34
|
-
export { d as TreeViewModule, f as createTreeViewServices };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=chunk-ORNJ4GCN.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-ORNJ4GCN.js","names":[],"sources":["../../../../../../../../../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.mjs"],"sourcesContent":["import {\n AbstractMermaidTokenBuilder,\n AbstractMermaidValueConverter,\n MermaidGeneratedSharedModule,\n TreeViewGrammarGeneratedModule,\n __name\n} from \"./chunk-K5T4RW27.mjs\";\n\n// src/language/treeView/module.ts\nimport {\n EmptyFileSystem,\n createDefaultCoreModule,\n createDefaultSharedCoreModule,\n inject\n} from \"langium\";\n\n// src/language/treeView/valueConverter.ts\nvar TreeViewValueConverter = class extends AbstractMermaidValueConverter {\n static {\n __name(this, \"TreeViewValueConverter\");\n }\n runCustomConverter(rule, input, _cstNode) {\n if (rule.name === \"INDENTATION\") {\n return input?.length || 0;\n } else if (rule.name === \"STRING2\") {\n return input.substring(1, input.length - 1);\n }\n return void 0;\n }\n};\n\n// src/language/treeView/tokenBuilder.ts\nvar TreeViewTokenBuilder = class extends AbstractMermaidTokenBuilder {\n static {\n __name(this, \"TreeViewTokenBuilder\");\n }\n constructor() {\n super([\"treeView-beta\"]);\n }\n};\n\n// src/language/treeView/module.ts\nvar TreeViewModule = {\n parser: {\n TokenBuilder: /* @__PURE__ */ __name(() => new TreeViewTokenBuilder(), \"TokenBuilder\"),\n ValueConverter: /* @__PURE__ */ __name(() => new TreeViewValueConverter(), \"ValueConverter\")\n }\n};\nfunction createTreeViewServices(context = EmptyFileSystem) {\n const shared = inject(\n createDefaultSharedCoreModule(context),\n MermaidGeneratedSharedModule\n );\n const TreeView = inject(\n createDefaultCoreModule({ shared }),\n TreeViewGrammarGeneratedModule,\n TreeViewModule\n );\n shared.ServiceRegistry.register(TreeView);\n return { shared, TreeView };\n}\n__name(createTreeViewServices, \"createTreeViewServices\");\n\nexport {\n TreeViewModule,\n createTreeViewServices\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAiBA,IAAI,IAAyB,cAAc,EAA8B;CACvE;EACE,EAAO,MAAM,yBAAyB;;CAExC,mBAAmB,GAAM,GAAO,GAAU;EACxC,IAAI,EAAK,SAAS,eAChB,OAAO,GAAO,UAAU;EACnB,IAAI,EAAK,SAAS,WACvB,OAAO,EAAM,UAAU,GAAG,EAAM,SAAS,EAAE;;GAO7C,IAAuB,cAAc,EAA4B;CACnE;EACE,EAAO,MAAM,uBAAuB;;CAEtC,cAAc;EACZ,MAAM,CAAC,gBAAgB,CAAC;;GAKxB,IAAiB,EACnB,QAAQ;CACN,cAA8B,wBAAa,IAAI,GAAsB,EAAE,eAAe;CACtF,gBAAgC,wBAAa,IAAI,GAAwB,EAAE,iBAAiB;CAC7F,EACF;AACD,SAAS,EAAuB,IAAU,GAAiB;CACzD,IAAM,IAAS,EACb,EAA8B,EAAQ,EACtC,EACD,EACK,IAAW,EACf,EAAwB,EAAE,WAAQ,CAAC,EACnC,GACA,EACD;CAED,OADA,EAAO,gBAAgB,SAAS,EAAS,EAClC;EAAE;EAAQ;EAAU;;AAE7B,EAAO,GAAwB,yBAAyB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../../../@chevrotain/gast/lib/src/model.js";
|
|
2
|
-
import "../../../@chevrotain/gast/lib/src/visitor.js";
|
|
3
|
-
import "./scan/lexer_errors_public.js";
|
|
4
|
-
import "./scan/lexer_public.js";
|
|
5
|
-
import "./scan/tokens_public.js";
|
|
6
|
-
import "./parse/errors_public.js";
|
|
7
|
-
import "./parse/grammar/lookahead.js";
|
|
8
|
-
import "./parse/exceptions_public.js";
|
|
9
|
-
import "./parse/grammar/llk_lookahead.js";
|
|
10
|
-
import "./parse/parser/parser.js";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/chevrotain/lib/src/lang/lang_extensions.js
|
|
2
|
-
var e = "name";
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
Object.defineProperty(t, e, {
|
|
5
|
-
enumerable: !1,
|
|
6
|
-
configurable: !0,
|
|
7
|
-
writable: !1,
|
|
8
|
-
value: n
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as defineNameProp };
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=lang_extensions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lang_extensions.js","names":[],"sources":["../../../../../../../../../node_modules/chevrotain/lib/src/lang/lang_extensions.js"],"sourcesContent":["const NAME = \"name\";\nexport function defineNameProp(obj, nameValue) {\n Object.defineProperty(obj, NAME, {\n enumerable: false,\n configurable: true,\n writable: false,\n value: nameValue,\n });\n}\n//# sourceMappingURL=lang_extensions.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAAO;AACb,SAAgB,EAAe,GAAK,GAAW;CAC3C,OAAO,eAAe,GAAK,GAAM;EAC7B,YAAY;EACZ,cAAc;EACd,UAAU;EACV,OAAO;EACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../../../../../../../node_modules/chevrotain/lib/src/parse/constants.js"],"sourcesContent":["// TODO: can this be removed? where is it used?\nexport const IN = \"_~IN~_\";\n//# sourceMappingURL=constants.js.map"],"x_google_ignoreList":[0],"mappings":";AACA,IAAa,IAAK"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/cst/cst.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.endOffset = t.endOffset) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset);
|
|
4
|
-
}
|
|
5
|
-
function t(e, t) {
|
|
6
|
-
isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.startColumn = t.startColumn, e.startLine = t.startLine, e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine);
|
|
7
|
-
}
|
|
8
|
-
function n(e, t, n) {
|
|
9
|
-
e.children[n] === void 0 ? e.children[n] = [t] : e.children[n].push(t);
|
|
10
|
-
}
|
|
11
|
-
function r(e, t, n) {
|
|
12
|
-
e.children[t] === void 0 ? e.children[t] = [n] : e.children[t].push(n);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { r as addNoneTerminalToCst, n as addTerminalToCst, t as setNodeLocationFull, e as setNodeLocationOnlyOffset };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=cst.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cst.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/cst/cst.js"],"sourcesContent":["/**\n * This nodeLocation tracking is not efficient and should only be used\n * when error recovery is enabled or the Token Vector contains virtual Tokens\n * (e.g, Python Indent/Outdent)\n * As it executes the calculation for every single terminal/nonTerminal\n * and does not rely on the fact the token vector is **sorted**\n */\nexport function setNodeLocationOnlyOffset(currNodeLocation, newLocationInfo) {\n // First (valid) update for this cst node\n if (isNaN(currNodeLocation.startOffset) === true) {\n // assumption1: Token location information is either NaN or a valid number\n // assumption2: Token location information is fully valid if it exist\n // (both start/end offsets exist and are numbers).\n currNodeLocation.startOffset = newLocationInfo.startOffset;\n currNodeLocation.endOffset = newLocationInfo.endOffset;\n }\n // Once the startOffset has been updated with a valid number it should never receive\n // any farther updates as the Token vector is sorted.\n // We still have to check this this condition for every new possible location info\n // because with error recovery enabled we may encounter invalid tokens (NaN location props)\n else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) {\n currNodeLocation.endOffset = newLocationInfo.endOffset;\n }\n}\n/**\n * This nodeLocation tracking is not efficient and should only be used\n * when error recovery is enabled or the Token Vector contains virtual Tokens\n * (e.g, Python Indent/Outdent)\n * As it executes the calculation for every single terminal/nonTerminal\n * and does not rely on the fact the token vector is **sorted**\n */\nexport function setNodeLocationFull(currNodeLocation, newLocationInfo) {\n // First (valid) update for this cst node\n if (isNaN(currNodeLocation.startOffset) === true) {\n // assumption1: Token location information is either NaN or a valid number\n // assumption2: Token location information is fully valid if it exist\n // (all start/end props exist and are numbers).\n currNodeLocation.startOffset = newLocationInfo.startOffset;\n currNodeLocation.startColumn = newLocationInfo.startColumn;\n currNodeLocation.startLine = newLocationInfo.startLine;\n currNodeLocation.endOffset = newLocationInfo.endOffset;\n currNodeLocation.endColumn = newLocationInfo.endColumn;\n currNodeLocation.endLine = newLocationInfo.endLine;\n }\n // Once the start props has been updated with a valid number it should never receive\n // any farther updates as the Token vector is sorted.\n // We still have to check this this condition for every new possible location info\n // because with error recovery enabled we may encounter invalid tokens (NaN location props)\n else if (currNodeLocation.endOffset < newLocationInfo.endOffset === true) {\n currNodeLocation.endOffset = newLocationInfo.endOffset;\n currNodeLocation.endColumn = newLocationInfo.endColumn;\n currNodeLocation.endLine = newLocationInfo.endLine;\n }\n}\nexport function addTerminalToCst(node, token, tokenTypeName) {\n if (node.children[tokenTypeName] === undefined) {\n node.children[tokenTypeName] = [token];\n }\n else {\n node.children[tokenTypeName].push(token);\n }\n}\nexport function addNoneTerminalToCst(node, ruleName, ruleResult) {\n if (node.children[ruleName] === undefined) {\n node.children[ruleName] = [ruleResult];\n }\n else {\n node.children[ruleName].push(ruleResult);\n }\n}\n//# sourceMappingURL=cst.js.map"],"x_google_ignoreList":[0],"mappings":";AAOA,SAAgB,EAA0B,GAAkB,GAAiB;CAEzE,AAAI,MAAM,EAAiB,YAAY,KAAK,MAIxC,EAAiB,cAAc,EAAgB,aAC/C,EAAiB,YAAY,EAAgB,aAMxC,EAAiB,YAAY,EAAgB,cAClD,EAAiB,YAAY,EAAgB;;AAUrD,SAAgB,EAAoB,GAAkB,GAAiB;CAEnE,AAAI,MAAM,EAAiB,YAAY,KAAK,MAIxC,EAAiB,cAAc,EAAgB,aAC/C,EAAiB,cAAc,EAAgB,aAC/C,EAAiB,YAAY,EAAgB,WAC7C,EAAiB,YAAY,EAAgB,WAC7C,EAAiB,YAAY,EAAgB,WAC7C,EAAiB,UAAU,EAAgB,WAMtC,EAAiB,YAAY,EAAgB,cAClD,EAAiB,YAAY,EAAgB,WAC7C,EAAiB,YAAY,EAAgB,WAC7C,EAAiB,UAAU,EAAgB;;AAGnD,SAAgB,EAAiB,GAAM,GAAO,GAAe;CACzD,AAAI,EAAK,SAAS,OAAmB,KAAA,IACjC,EAAK,SAAS,KAAiB,CAAC,EAAM,GAGtC,EAAK,SAAS,GAAe,KAAK,EAAM;;AAGhD,SAAgB,EAAqB,GAAM,GAAU,GAAY;CAC7D,AAAI,EAAK,SAAS,OAAc,KAAA,IAC5B,EAAK,SAAS,KAAY,CAAC,EAAW,GAGtC,EAAK,SAAS,GAAU,KAAK,EAAW"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineNameProp as e } from "../../lang/lang_extensions.js";
|
|
2
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js
|
|
3
|
-
function t(e, t) {
|
|
4
|
-
let n = Object.keys(e), r = n.length;
|
|
5
|
-
for (let i = 0; i < r; i++) {
|
|
6
|
-
let r = e[n[i]], a = r.length;
|
|
7
|
-
for (let e = 0; e < a; e++) {
|
|
8
|
-
let n = r[e];
|
|
9
|
-
n.tokenTypeIdx === void 0 && this[n.name](n.children, t);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function n(t, n) {
|
|
14
|
-
let r = function() {};
|
|
15
|
-
return e(r, t + "BaseSemantics"), r.prototype = {
|
|
16
|
-
visit: function(e, t) {
|
|
17
|
-
if (Array.isArray(e) && (e = e[0]), e !== void 0) return this[e.name](e.children, t);
|
|
18
|
-
},
|
|
19
|
-
validateVisitor: function() {
|
|
20
|
-
let e = a(this, n);
|
|
21
|
-
if (e.length !== 0) {
|
|
22
|
-
let t = e.map((e) => e.msg);
|
|
23
|
-
throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join("\n\n").replace(/\n/g, "\n ")}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}, r.prototype.constructor = r, r._RULE_NAMES = n, r;
|
|
27
|
-
}
|
|
28
|
-
function r(n, r, i) {
|
|
29
|
-
let a = function() {};
|
|
30
|
-
e(a, n + "BaseSemanticsWithDefaults");
|
|
31
|
-
let o = Object.create(i.prototype);
|
|
32
|
-
return r.forEach((e) => {
|
|
33
|
-
o[e] = t;
|
|
34
|
-
}), a.prototype = o, a.prototype.constructor = a, a;
|
|
35
|
-
}
|
|
36
|
-
var i;
|
|
37
|
-
(function(e) {
|
|
38
|
-
e[e.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", e[e.MISSING_METHOD = 1] = "MISSING_METHOD";
|
|
39
|
-
})(i ||= {});
|
|
40
|
-
function a(e, t) {
|
|
41
|
-
return o(e, t);
|
|
42
|
-
}
|
|
43
|
-
function o(e, t) {
|
|
44
|
-
return t.filter((t) => typeof e[t] != "function").map((t) => ({
|
|
45
|
-
msg: `Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,
|
|
46
|
-
type: i.MISSING_METHOD,
|
|
47
|
-
methodName: t
|
|
48
|
-
})).filter(Boolean);
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
51
|
-
export { n as createBaseSemanticVisitorConstructor, r as createBaseVisitorConstructorWithDefaults };
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=cst_visitor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cst_visitor.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js"],"sourcesContent":["import { defineNameProp } from \"../../lang/lang_extensions.js\";\nexport function defaultVisit(ctx, param) {\n const childrenNames = Object.keys(ctx);\n const childrenNamesLength = childrenNames.length;\n for (let i = 0; i < childrenNamesLength; i++) {\n const currChildName = childrenNames[i];\n const currChildArray = ctx[currChildName];\n const currChildArrayLength = currChildArray.length;\n for (let j = 0; j < currChildArrayLength; j++) {\n const currChild = currChildArray[j];\n // distinction between Tokens Children and CstNode children\n if (currChild.tokenTypeIdx === undefined) {\n this[currChild.name](currChild.children, param);\n }\n }\n }\n // defaultVisit does not support generic out param\n}\nexport function createBaseSemanticVisitorConstructor(grammarName, ruleNames) {\n const derivedConstructor = function () { };\n // can be overwritten according to:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/\n // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname\n defineNameProp(derivedConstructor, grammarName + \"BaseSemantics\");\n const semanticProto = {\n visit: function (cstNode, param) {\n // enables writing more concise visitor methods when CstNode has only a single child\n if (Array.isArray(cstNode)) {\n // A CST Node's children dictionary can never have empty arrays as values\n // If a key is defined there will be at least one element in the corresponding value array.\n cstNode = cstNode[0];\n }\n // enables passing optional CstNodes concisely.\n if (cstNode === undefined) {\n return undefined;\n }\n return this[cstNode.name](cstNode.children, param);\n },\n validateVisitor: function () {\n const semanticDefinitionErrors = validateVisitor(this, ruleNames);\n if (semanticDefinitionErrors.length !== 0) {\n const errorMessages = semanticDefinitionErrors.map((currDefError) => currDefError.msg);\n throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\\n\\t` +\n `${errorMessages.join(\"\\n\\n\").replace(/\\n/g, \"\\n\\t\")}`);\n }\n },\n };\n derivedConstructor.prototype = semanticProto;\n derivedConstructor.prototype.constructor = derivedConstructor;\n derivedConstructor._RULE_NAMES = ruleNames;\n return derivedConstructor;\n}\nexport function createBaseVisitorConstructorWithDefaults(grammarName, ruleNames, baseConstructor) {\n const derivedConstructor = function () { };\n // can be overwritten according to:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/\n // name?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fname\n defineNameProp(derivedConstructor, grammarName + \"BaseSemanticsWithDefaults\");\n const withDefaultsProto = Object.create(baseConstructor.prototype);\n ruleNames.forEach((ruleName) => {\n withDefaultsProto[ruleName] = defaultVisit;\n });\n derivedConstructor.prototype = withDefaultsProto;\n derivedConstructor.prototype.constructor = derivedConstructor;\n return derivedConstructor;\n}\nexport var CstVisitorDefinitionError;\n(function (CstVisitorDefinitionError) {\n CstVisitorDefinitionError[CstVisitorDefinitionError[\"REDUNDANT_METHOD\"] = 0] = \"REDUNDANT_METHOD\";\n CstVisitorDefinitionError[CstVisitorDefinitionError[\"MISSING_METHOD\"] = 1] = \"MISSING_METHOD\";\n})(CstVisitorDefinitionError || (CstVisitorDefinitionError = {}));\nexport function validateVisitor(visitorInstance, ruleNames) {\n const missingErrors = validateMissingCstMethods(visitorInstance, ruleNames);\n return missingErrors;\n}\nexport function validateMissingCstMethods(visitorInstance, ruleNames) {\n const missingRuleNames = ruleNames.filter((currRuleName) => {\n return ((typeof visitorInstance[currRuleName] === \"function\") === false);\n });\n const errors = missingRuleNames.map((currRuleName) => {\n return {\n msg: `Missing visitor method: <${currRuleName}> on ${(visitorInstance.constructor.name)} CST Visitor.`,\n type: CstVisitorDefinitionError.MISSING_METHOD,\n methodName: currRuleName,\n };\n });\n return errors.filter(Boolean);\n}\n//# sourceMappingURL=cst_visitor.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,EAAa,GAAK,GAAO;CACrC,IAAM,IAAgB,OAAO,KAAK,EAAI,EAChC,IAAsB,EAAc;CAC1C,KAAK,IAAI,IAAI,GAAG,IAAI,GAAqB,KAAK;EAE1C,IAAM,IAAiB,EADD,EAAc,KAE9B,IAAuB,EAAe;EAC5C,KAAK,IAAI,IAAI,GAAG,IAAI,GAAsB,KAAK;GAC3C,IAAM,IAAY,EAAe;GAEjC,AAAI,EAAU,iBAAiB,KAAA,KAC3B,KAAK,EAAU,MAAM,EAAU,UAAU,EAAM;;;;AAM/D,SAAgB,EAAqC,GAAa,GAAW;CACzE,IAAM,IAAqB,WAAY;CA+BvC,OA3BA,EAAe,GAAoB,IAAc,gBAAgB,EAwBjE,EAAmB,YAAY;EAtB3B,OAAO,SAAU,GAAS,GAAO;GAE7B,IAAI,MAAM,QAAQ,EAAQ,KAGtB,IAAU,EAAQ,KAGlB,MAAY,KAAA,GAGhB,OAAO,KAAK,EAAQ,MAAM,EAAQ,UAAU,EAAM;;EAEtD,iBAAiB,WAAY;GACzB,IAAM,IAA2B,EAAgB,MAAM,EAAU;GACjE,IAAI,EAAyB,WAAW,GAAG;IACvC,IAAM,IAAgB,EAAyB,KAAK,MAAiB,EAAa,IAAI;IACtF,MAAM,MAAM,mCAAmC,KAAK,YAAY,KAAK,QAC9D,EAAc,KAAK,OAAO,CAAC,QAAQ,OAAO,MAAO,GAAG;;;EAI3B,EAC5C,EAAmB,UAAU,cAAc,GAC3C,EAAmB,cAAc,GAC1B;;AAEX,SAAgB,EAAyC,GAAa,GAAW,GAAiB;CAC9F,IAAM,IAAqB,WAAY;CAIvC,EAAe,GAAoB,IAAc,4BAA4B;CAC7E,IAAM,IAAoB,OAAO,OAAO,EAAgB,UAAU;CAMlE,OALA,EAAU,SAAS,MAAa;EAC5B,EAAkB,KAAY;GAChC,EACF,EAAmB,YAAY,GAC/B,EAAmB,UAAU,cAAc,GACpC;;AAEX,IAAW;CACV,SAAU,GAA2B;CAElC,AADA,EAA0B,EAA0B,mBAAsB,KAAK,oBAC/E,EAA0B,EAA0B,iBAAoB,KAAK;GAC9E,AAA8B,MAA4B,EAAE,CAAE;AACjE,SAAgB,EAAgB,GAAiB,GAAW;CAExD,OADsB,EAA0B,GAAiB,EAC7C;;AAExB,SAAgB,EAA0B,GAAiB,GAAW;CAWlE,OAVyB,EAAU,QAAQ,MAC9B,OAAO,EAAgB,MAAkB,WAEvB,CAAC,KAAK,OAC1B;EACH,KAAK,4BAA4B,EAAa,OAAQ,EAAgB,YAAY,KAAM;EACxF,MAAM,EAA0B;EAChC,YAAY;EACf,EAEQ,CAAC,OAAO,QAAQ"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { NonTerminal as e, Rule as t, Terminal as n } from "../../../../@chevrotain/gast/lib/src/model.js";
|
|
2
|
-
import { getProductionDslName as r } from "../../../../@chevrotain/gast/lib/src/helpers.js";
|
|
3
|
-
import { hasTokenLabel as i, tokenLabel as a } from "../scan/tokens_public.js";
|
|
4
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/errors_public.js
|
|
5
|
-
var o = {
|
|
6
|
-
buildMismatchTokenMessage({ expected: e, actual: t, previous: n, ruleName: r }) {
|
|
7
|
-
return `Expecting ${i(e) ? `--> ${a(e)} <--` : `token of type --> ${e.name} <--`} but found --> '${t.image}' <--`;
|
|
8
|
-
},
|
|
9
|
-
buildNotAllInputParsedMessage({ firstRedundant: e, ruleName: t }) {
|
|
10
|
-
return "Redundant input, expecting EOF but found: " + e.image;
|
|
11
|
-
},
|
|
12
|
-
buildNoViableAltMessage({ expectedPathsPerAlt: e, actual: t, previous: n, customUserDescription: r, ruleName: i }) {
|
|
13
|
-
let o = "\nbut found: '" + t[0].image + "'";
|
|
14
|
-
return r ? "Expecting: " + r + o : `Expecting: one of these possible Token sequences:\n${e.reduce((e, t) => e.concat(t), []).map((e) => `[${e.map((e) => a(e)).join(", ")}]`).map((e, t) => ` ${t + 1}. ${e}`).join("\n")}` + o;
|
|
15
|
-
},
|
|
16
|
-
buildEarlyExitMessage({ expectedIterationPaths: e, actual: t, customUserDescription: n, ruleName: r }) {
|
|
17
|
-
let i = "\nbut found: '" + t[0].image + "'";
|
|
18
|
-
return n ? "Expecting: " + n + i : `Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <${e.map((e) => `[${e.map((e) => a(e)).join(",")}]`).join(" ,")}>` + i;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
Object.freeze(o);
|
|
22
|
-
var s = { buildRuleNotFoundError(e, t) {
|
|
23
|
-
return "Invalid grammar, reference to a rule which is not defined: ->" + t.nonTerminalName + "<-\ninside top level rule: ->" + e.name + "<-";
|
|
24
|
-
} }, c = {
|
|
25
|
-
buildDuplicateFoundError(t, i) {
|
|
26
|
-
function a(t) {
|
|
27
|
-
return t instanceof n ? t.terminalType.name : t instanceof e ? t.nonTerminalName : "";
|
|
28
|
-
}
|
|
29
|
-
let o = t.name, s = i[0], c = s.idx, l = r(s), u = a(s), d = `->${l}${c > 0 ? c : ""}<- ${u ? `with argument: ->${u}<-` : ""}
|
|
30
|
-
appears more than once (${i.length} times) in the top level rule: ->${o}<-.
|
|
31
|
-
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
32
|
-
`;
|
|
33
|
-
return d = d.replace(/[ \t]+/g, " "), d = d.replace(/\s\s+/g, "\n"), d;
|
|
34
|
-
},
|
|
35
|
-
buildNamespaceConflictError(e) {
|
|
36
|
-
return `Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`;
|
|
37
|
-
},
|
|
38
|
-
buildAlternationPrefixAmbiguityError(e) {
|
|
39
|
-
let t = e.prefixPath.map((e) => a(e)).join(", "), n = e.alternation.idx === 0 ? "" : e.alternation.idx;
|
|
40
|
-
return `Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\nin <OR${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`;
|
|
41
|
-
},
|
|
42
|
-
buildAlternationAmbiguityError(e) {
|
|
43
|
-
let t = e.alternation.idx === 0 ? "" : e.alternation.idx, n = e.prefixPath.length === 0, r = `Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,\n`;
|
|
44
|
-
if (n) r += "These alternatives are all empty (match no tokens), making them indistinguishable.\nOnly the last alternative may be empty.\n";
|
|
45
|
-
else {
|
|
46
|
-
let t = e.prefixPath.map((e) => a(e)).join(", ");
|
|
47
|
-
r += `<${t}> may appears as a prefix path in all these alternatives.\n`;
|
|
48
|
-
}
|
|
49
|
-
return r += "See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.", r;
|
|
50
|
-
},
|
|
51
|
-
buildEmptyRepetitionError(e) {
|
|
52
|
-
let t = r(e.repetition);
|
|
53
|
-
return e.repetition.idx !== 0 && (t += e.repetition.idx), `The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`;
|
|
54
|
-
},
|
|
55
|
-
buildTokenNameError(e) {
|
|
56
|
-
/* istanbul ignore next */
|
|
57
|
-
return "deprecated";
|
|
58
|
-
},
|
|
59
|
-
buildEmptyAlternationError(e) {
|
|
60
|
-
return `Ambiguous empty alternative: <${e.emptyChoiceIdx + 1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`;
|
|
61
|
-
},
|
|
62
|
-
buildTooManyAlternativesError(e) {
|
|
63
|
-
return `An Alternation cannot have more than 256 alternatives:\n<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length + 1} alternatives.`;
|
|
64
|
-
},
|
|
65
|
-
buildLeftRecursionError(e) {
|
|
66
|
-
let t = e.topLevelRule.name;
|
|
67
|
-
return `Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --> ${e.leftRecursionPath.map((e) => e.name).concat([t]).join(" --> ")}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;
|
|
68
|
-
},
|
|
69
|
-
buildInvalidRuleNameError(e) {
|
|
70
|
-
/* istanbul ignore next */
|
|
71
|
-
return "deprecated";
|
|
72
|
-
},
|
|
73
|
-
buildDuplicateRuleNameError(e) {
|
|
74
|
-
let n;
|
|
75
|
-
return n = e.topLevelRule instanceof t ? e.topLevelRule.name : e.topLevelRule, `Duplicate definition, rule: ->${n}<- is already defined in the grammar: ->${e.grammarName}<-`;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
79
|
-
export { s as defaultGrammarResolverErrorProvider, c as defaultGrammarValidatorErrorProvider, o as defaultParserErrorProvider };
|
|
80
|
-
|
|
81
|
-
//# sourceMappingURL=errors_public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors_public.js","names":[],"sources":["../../../../../../../../../node_modules/chevrotain/lib/src/parse/errors_public.js"],"sourcesContent":["import { hasTokenLabel, tokenLabel } from \"../scan/tokens_public.js\";\nimport { getProductionDslName, NonTerminal, Rule, Terminal, } from \"@chevrotain/gast\";\nexport const defaultParserErrorProvider = {\n buildMismatchTokenMessage({ expected, actual, previous, ruleName }) {\n const hasLabel = hasTokenLabel(expected);\n const expectedMsg = hasLabel\n ? `--> ${tokenLabel(expected)} <--`\n : `token of type --> ${expected.name} <--`;\n const msg = `Expecting ${expectedMsg} but found --> '${actual.image}' <--`;\n return msg;\n },\n buildNotAllInputParsedMessage({ firstRedundant, ruleName }) {\n return \"Redundant input, expecting EOF but found: \" + firstRedundant.image;\n },\n buildNoViableAltMessage({ expectedPathsPerAlt, actual, previous, customUserDescription, ruleName, }) {\n const errPrefix = \"Expecting: \";\n // TODO: issue: No Viable Alternative Error may have incomplete details. #502\n const actualText = actual[0].image;\n const errSuffix = \"\\nbut found: '\" + actualText + \"'\";\n if (customUserDescription) {\n return errPrefix + customUserDescription + errSuffix;\n }\n else {\n const allLookAheadPaths = expectedPathsPerAlt.reduce((result, currAltPaths) => result.concat(currAltPaths), []);\n const nextValidTokenSequences = allLookAheadPaths.map((currPath) => `[${currPath\n .map((currTokenType) => tokenLabel(currTokenType))\n .join(\", \")}]`);\n const nextValidSequenceItems = nextValidTokenSequences.map((itemMsg, idx) => ` ${idx + 1}. ${itemMsg}`);\n const calculatedDescription = `one of these possible Token sequences:\\n${nextValidSequenceItems.join(\"\\n\")}`;\n return errPrefix + calculatedDescription + errSuffix;\n }\n },\n buildEarlyExitMessage({ expectedIterationPaths, actual, customUserDescription, ruleName, }) {\n const errPrefix = \"Expecting: \";\n // TODO: issue: No Viable Alternative Error may have incomplete details. #502\n const actualText = actual[0].image;\n const errSuffix = \"\\nbut found: '\" + actualText + \"'\";\n if (customUserDescription) {\n return errPrefix + customUserDescription + errSuffix;\n }\n else {\n const nextValidTokenSequences = expectedIterationPaths.map((currPath) => `[${currPath\n .map((currTokenType) => tokenLabel(currTokenType))\n .join(\",\")}]`);\n const calculatedDescription = `expecting at least one iteration which starts with one of these possible Token sequences::\\n ` +\n `<${nextValidTokenSequences.join(\" ,\")}>`;\n return errPrefix + calculatedDescription + errSuffix;\n }\n },\n};\nObject.freeze(defaultParserErrorProvider);\nexport const defaultGrammarResolverErrorProvider = {\n buildRuleNotFoundError(topLevelRule, undefinedRule) {\n const msg = \"Invalid grammar, reference to a rule which is not defined: ->\" +\n undefinedRule.nonTerminalName +\n \"<-\\n\" +\n \"inside top level rule: ->\" +\n topLevelRule.name +\n \"<-\";\n return msg;\n },\n};\nexport const defaultGrammarValidatorErrorProvider = {\n buildDuplicateFoundError(topLevelRule, duplicateProds) {\n function getExtraProductionArgument(prod) {\n if (prod instanceof Terminal) {\n return prod.terminalType.name;\n }\n else if (prod instanceof NonTerminal) {\n return prod.nonTerminalName;\n }\n else {\n return \"\";\n }\n }\n const topLevelName = topLevelRule.name;\n const duplicateProd = duplicateProds[0];\n const index = duplicateProd.idx;\n const dslName = getProductionDslName(duplicateProd);\n const extraArgument = getExtraProductionArgument(duplicateProd);\n const hasExplicitIndex = index > 0;\n let msg = `->${dslName}${hasExplicitIndex ? index : \"\"}<- ${extraArgument ? `with argument: ->${extraArgument}<-` : \"\"}\n appears more than once (${duplicateProds.length} times) in the top level rule: ->${topLevelName}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;\n // white space trimming time! better to trim afterwards as it allows to use WELL formatted multi line template strings...\n msg = msg.replace(/[ \\t]+/g, \" \");\n msg = msg.replace(/\\s\\s+/g, \"\\n\");\n return msg;\n },\n buildNamespaceConflictError(rule) {\n const errMsg = `Namespace conflict found in grammar.\\n` +\n `The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${rule.name}>.\\n` +\n `To resolve this make sure each Terminal and Non-Terminal names are unique\\n` +\n `This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\\n` +\n `and Non-Terminal names start with a lower case letter.`;\n return errMsg;\n },\n buildAlternationPrefixAmbiguityError(options) {\n const pathMsg = options.prefixPath\n .map((currTok) => tokenLabel(currTok))\n .join(\", \");\n const occurrence = options.alternation.idx === 0 ? \"\" : options.alternation.idx;\n const errMsg = `Ambiguous alternatives: <${options.ambiguityIndices.join(\" ,\")}> due to common lookahead prefix\\n` +\n `in <OR${occurrence}> inside <${options.topLevelRule.name}> Rule,\\n` +\n `<${pathMsg}> may appears as a prefix path in all these alternatives.\\n` +\n `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\\n` +\n `For Further details.`;\n return errMsg;\n },\n buildAlternationAmbiguityError(options) {\n const occurrence = options.alternation.idx === 0 ? \"\" : options.alternation.idx;\n const isEmptyPath = options.prefixPath.length === 0;\n let currMessage = `Ambiguous Alternatives Detected: <${options.ambiguityIndices.join(\" ,\")}> in <OR${occurrence}>` +\n ` inside <${options.topLevelRule.name}> Rule,\\n`;\n if (isEmptyPath) {\n currMessage +=\n `These alternatives are all empty (match no tokens), making them indistinguishable.\\n` +\n `Only the last alternative may be empty.\\n`;\n }\n else {\n const pathMsg = options.prefixPath\n .map((currtok) => tokenLabel(currtok))\n .join(\", \");\n currMessage += `<${pathMsg}> may appears as a prefix path in all these alternatives.\\n`;\n }\n currMessage +=\n `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\\n` +\n `For Further details.`;\n return currMessage;\n },\n buildEmptyRepetitionError(options) {\n let dslName = getProductionDslName(options.repetition);\n if (options.repetition.idx !== 0) {\n dslName += options.repetition.idx;\n }\n const errMsg = `The repetition <${dslName}> within Rule <${options.topLevelRule.name}> can never consume any tokens.\\n` +\n `This could lead to an infinite loop.`;\n return errMsg;\n },\n // TODO: remove - `errors_public` from nyc.config.js exclude\n // once this method is fully removed from this file\n buildTokenNameError(options) {\n /* istanbul ignore next */\n return \"deprecated\";\n },\n buildEmptyAlternationError(options) {\n const errMsg = `Ambiguous empty alternative: <${options.emptyChoiceIdx + 1}>` +\n ` in <OR${options.alternation.idx}> inside <${options.topLevelRule.name}> Rule.\\n` +\n `Only the last alternative may be an empty alternative.`;\n return errMsg;\n },\n buildTooManyAlternativesError(options) {\n const errMsg = `An Alternation cannot have more than 256 alternatives:\\n` +\n `<OR${options.alternation.idx}> inside <${options.topLevelRule.name}> Rule.\\n has ${options.alternation.definition.length + 1} alternatives.`;\n return errMsg;\n },\n buildLeftRecursionError(options) {\n const ruleName = options.topLevelRule.name;\n const pathNames = options.leftRecursionPath.map((currRule) => currRule.name);\n const leftRecursivePath = `${ruleName} --> ${pathNames\n .concat([ruleName])\n .join(\" --> \")}`;\n const errMsg = `Left Recursion found in grammar.\\n` +\n `rule: <${ruleName}> can be invoked from itself (directly or indirectly)\\n` +\n `without consuming any Tokens. The grammar path that causes this is: \\n ${leftRecursivePath}\\n` +\n ` To fix this refactor your grammar to remove the left recursion.\\n` +\n `see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;\n return errMsg;\n },\n // TODO: remove - `errors_public` from nyc.config.js exclude\n // once this method is fully removed from this file\n buildInvalidRuleNameError(options) {\n /* istanbul ignore next */\n return \"deprecated\";\n },\n buildDuplicateRuleNameError(options) {\n let ruleName;\n if (options.topLevelRule instanceof Rule) {\n ruleName = options.topLevelRule.name;\n }\n else {\n ruleName = options.topLevelRule;\n }\n const errMsg = `Duplicate definition, rule: ->${ruleName}<- is already defined in the grammar: ->${options.grammarName}<-`;\n return errMsg;\n },\n};\n//# sourceMappingURL=errors_public.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAEA,IAAa,IAA6B;CACtC,0BAA0B,EAAE,aAAU,WAAQ,aAAU,eAAY;EAMhE,OAAO,aALU,EAAc,EACH,GACtB,OAAO,EAAW,EAAS,CAAC,QAC5B,qBAAqB,EAAS,KAAK,MACJ,kBAAkB,EAAO,MAAM;;CAGxE,8BAA8B,EAAE,mBAAgB,eAAY;EACxD,OAAO,+CAA+C,EAAe;;CAEzE,wBAAwB,EAAE,wBAAqB,WAAQ,aAAU,0BAAuB,eAAa;EACjG,IAGM,IAAY,mBADC,EAAO,GAAG,QACqB;EAW9C,OAVA,IACO,gBAAY,IAAwB,IASpC,sDANmB,EAAoB,QAAQ,GAAQ,MAAiB,EAAO,OAAO,EAAa,EAAE,EAAE,CAC7D,CAAC,KAAK,MAAa,IAAI,EACnE,KAAK,MAAkB,EAAW,EAAc,CAAC,CACjD,KAAK,KAAK,CAAC,GACsC,CAAC,KAAK,GAAS,MAAQ,KAAK,IAAM,EAAE,IAAI,IACC,CAAC,KAAK,KAAK,KAC/D;;CAGnD,sBAAsB,EAAE,2BAAwB,WAAQ,0BAAuB,eAAa;EACxF,IAGM,IAAY,mBADC,EAAO,GAAG,QACqB;EAU9C,OATA,IACO,gBAAY,IAAwB,IAQpC,6GALyB,EAAuB,KAAK,MAAa,IAAI,EACxE,KAAK,MAAkB,EAAW,EAAc,CAAC,CACjD,KAAK,IAAI,CAAC,GAEgB,CAAC,KAAK,KAAK,CAAC,KACA;;CAGtD;AACD,OAAO,OAAO,EAA2B;AACzC,IAAa,IAAsC,EAC/C,uBAAuB,GAAc,GAAe;CAOhD,OANY,kEACR,EAAc,kBACd,kCAEA,EAAa,OACb;GAGX,EACY,IAAuC;CAChD,yBAAyB,GAAc,GAAgB;EACnD,SAAS,EAA2B,GAAM;GAQlC,OAPA,aAAgB,IACT,EAAK,aAAa,OAEpB,aAAgB,IACd,EAAK,kBAGL;;EAGf,IAAM,IAAe,EAAa,MAC5B,IAAgB,EAAe,IAC/B,IAAQ,EAAc,KACtB,IAAU,EAAqB,EAAc,EAC7C,IAAgB,EAA2B,EAAc,EAE3D,IAAM,KAAK,IADU,IAAQ,IACW,IAAQ,GAAG,KAAK,IAAgB,oBAAoB,EAAc,MAAM,GAAG;4CACnF,EAAe,OAAO,mCAAmC,EAAa;;;EAM1G,OAFA,IAAM,EAAI,QAAQ,WAAW,IAAI,EACjC,IAAM,EAAI,QAAQ,UAAU,KAAK,EAC1B;;CAEX,4BAA4B,GAAM;EAM9B,OAAO,iHAJwE,EAAK,KAAK;;CAM7F,qCAAqC,GAAS;EAC1C,IAAM,IAAU,EAAQ,WACnB,KAAK,MAAY,EAAW,EAAQ,CAAC,CACrC,KAAK,KAAK,EACT,IAAa,EAAQ,YAAY,QAAQ,IAAI,KAAK,EAAQ,YAAY;EAM5E,OAAO,4BALoC,EAAQ,iBAAiB,KAAK,KAAK,CAAC,0CAClE,EAAW,YAAY,EAAQ,aAAa,KAAK,YACtD,EAAQ;;CAKpB,+BAA+B,GAAS;EACpC,IAAM,IAAa,EAAQ,YAAY,QAAQ,IAAI,KAAK,EAAQ,YAAY,KACtE,IAAc,EAAQ,WAAW,WAAW,GAC9C,IAAc,qCAAqC,EAAQ,iBAAiB,KAAK,KAAK,CAAC,UAAU,EAAW,YAChG,EAAQ,aAAa,KAAK;EAC1C,IAAI,GACA,KACI;OAGH;GACD,IAAM,IAAU,EAAQ,WACnB,KAAK,MAAY,EAAW,EAAQ,CAAC,CACrC,KAAK,KAAK;GACf,KAAe,IAAI,EAAQ;;EAK/B,OAHA,KACI,oHAEG;;CAEX,0BAA0B,GAAS;EAC/B,IAAI,IAAU,EAAqB,EAAQ,WAAW;EAMtD,OALI,EAAQ,WAAW,QAAQ,MAC3B,KAAW,EAAQ,WAAW,MAI3B,mBAF2B,EAAQ,iBAAiB,EAAQ,aAAa,KAAK;;CAMzF,oBAAoB,GAAS;;EAEzB,OAAO;;CAEX,2BAA2B,GAAS;EAIhC,OAAO,iCAHyC,EAAQ,iBAAiB,EAAE,UAC7D,EAAQ,YAAY,IAAI,YAAY,EAAQ,aAAa,KAAK;;CAIhF,8BAA8B,GAAS;EAGnC,OAAO,8DADG,EAAQ,YAAY,IAAI,YAAY,EAAQ,aAAa,KAAK,gBAAgB,EAAQ,YAAY,WAAW,SAAS,EAAE;;CAGtI,wBAAwB,GAAS;EAC7B,IAAM,IAAW,EAAQ,aAAa;EAUtC,OAAO,4CAJO,EAAS,gIACuD,GALjD,EAAS,OADpB,EAAQ,kBAAkB,KAAK,MAAa,EAAS,KACjB,CACjD,OAAO,CAAC,EAAS,CAAC,CAClB,KAAK,QAAQ,GAG8E;;CAOpG,0BAA0B,GAAS;;EAE/B,OAAO;;CAEX,4BAA4B,GAAS;EACjC,IAAI;EAQJ,OAPA,AAII,IAJA,EAAQ,wBAAwB,IACrB,EAAQ,aAAa,OAGrB,EAAQ,cAGhB,iCADyC,EAAS,0CAA0C,EAAQ,YAAY;;CAG9H"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/exceptions_public.js
|
|
2
|
-
var e = "MismatchedTokenException", t = "NoViableAltException", n = "EarlyExitException", r = "NotAllInputParsedException", i = [
|
|
3
|
-
e,
|
|
4
|
-
t,
|
|
5
|
-
n,
|
|
6
|
-
r
|
|
7
|
-
];
|
|
8
|
-
Object.freeze(i);
|
|
9
|
-
function a(e) {
|
|
10
|
-
return i.includes(e.name);
|
|
11
|
-
}
|
|
12
|
-
var o = class extends Error {
|
|
13
|
-
constructor(e, t) {
|
|
14
|
-
/* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */
|
|
15
|
-
super(e), this.token = t, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
16
|
-
}
|
|
17
|
-
}, s = class extends o {
|
|
18
|
-
constructor(t, n, r) {
|
|
19
|
-
super(t, n), this.previousToken = r, this.name = e;
|
|
20
|
-
}
|
|
21
|
-
}, c = class extends o {
|
|
22
|
-
constructor(e, n, r) {
|
|
23
|
-
super(e, n), this.previousToken = r, this.name = t;
|
|
24
|
-
}
|
|
25
|
-
}, l = class extends o {
|
|
26
|
-
constructor(e, t) {
|
|
27
|
-
super(e, t), this.name = r;
|
|
28
|
-
}
|
|
29
|
-
}, u = class extends o {
|
|
30
|
-
constructor(e, t, r) {
|
|
31
|
-
super(e, t), this.previousToken = r, this.name = n;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
export { u as EarlyExitException, s as MismatchedTokenException, c as NoViableAltException, l as NotAllInputParsedException, a as isRecognitionException };
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=exceptions_public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exceptions_public.js","names":[],"sources":["../../../../../../../../../node_modules/chevrotain/lib/src/parse/exceptions_public.js"],"sourcesContent":["const MISMATCHED_TOKEN_EXCEPTION = \"MismatchedTokenException\";\nconst NO_VIABLE_ALT_EXCEPTION = \"NoViableAltException\";\nconst EARLY_EXIT_EXCEPTION = \"EarlyExitException\";\nconst NOT_ALL_INPUT_PARSED_EXCEPTION = \"NotAllInputParsedException\";\nconst RECOGNITION_EXCEPTION_NAMES = [\n MISMATCHED_TOKEN_EXCEPTION,\n NO_VIABLE_ALT_EXCEPTION,\n EARLY_EXIT_EXCEPTION,\n NOT_ALL_INPUT_PARSED_EXCEPTION,\n];\nObject.freeze(RECOGNITION_EXCEPTION_NAMES);\n// hacks to bypass no support for custom Errors in javascript/typescript\nexport function isRecognitionException(error) {\n // can't do instanceof on hacked custom js exceptions\n return RECOGNITION_EXCEPTION_NAMES.includes(error.name);\n}\nclass RecognitionException extends Error {\n constructor(message, token) {\n super(message);\n this.token = token;\n this.resyncedTokens = [];\n // fix prototype chain when typescript target is ES5\n Object.setPrototypeOf(this, new.target.prototype);\n /* istanbul ignore next - V8 workaround to remove constructor from stacktrace when typescript target is ES5 */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\nexport class MismatchedTokenException extends RecognitionException {\n constructor(message, token, previousToken) {\n super(message, token);\n this.previousToken = previousToken;\n this.name = MISMATCHED_TOKEN_EXCEPTION;\n }\n}\nexport class NoViableAltException extends RecognitionException {\n constructor(message, token, previousToken) {\n super(message, token);\n this.previousToken = previousToken;\n this.name = NO_VIABLE_ALT_EXCEPTION;\n }\n}\nexport class NotAllInputParsedException extends RecognitionException {\n constructor(message, token) {\n super(message, token);\n this.name = NOT_ALL_INPUT_PARSED_EXCEPTION;\n }\n}\nexport class EarlyExitException extends RecognitionException {\n constructor(message, token, previousToken) {\n super(message, token);\n this.previousToken = previousToken;\n this.name = EARLY_EXIT_EXCEPTION;\n }\n}\n//# sourceMappingURL=exceptions_public.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAA6B,4BAC7B,IAA0B,wBAC1B,IAAuB,sBACvB,IAAiC,8BACjC,IAA8B;CAChC;CACA;CACA;CACA;CACH;AACD,OAAO,OAAO,EAA4B;AAE1C,SAAgB,EAAuB,GAAO;CAE1C,OAAO,EAA4B,SAAS,EAAM,KAAK;;AAE3D,IAAM,IAAN,cAAmC,MAAM;CACrC,YAAY,GAAS,GAAO;;EAOxB,AANA,MAAM,EAAQ,EACd,KAAK,QAAQ,GACb,KAAK,iBAAiB,EAAE,EAExB,OAAO,eAAe,MAAM,IAAI,OAAO,UAAU,EAE7C,MAAM,qBACN,MAAM,kBAAkB,MAAM,KAAK,YAAY;;GAI9C,IAAb,cAA8C,EAAqB;CAC/D,YAAY,GAAS,GAAO,GAAe;EAGvC,AAFA,MAAM,GAAS,EAAM,EACrB,KAAK,gBAAgB,GACrB,KAAK,OAAO;;GAGP,IAAb,cAA0C,EAAqB;CAC3D,YAAY,GAAS,GAAO,GAAe;EAGvC,AAFA,MAAM,GAAS,EAAM,EACrB,KAAK,gBAAgB,GACrB,KAAK,OAAO;;GAGP,IAAb,cAAgD,EAAqB;CACjE,YAAY,GAAS,GAAO;EAExB,AADA,MAAM,GAAS,EAAM,EACrB,KAAK,OAAO;;GAGP,IAAb,cAAwC,EAAqB;CACzD,YAAY,GAAS,GAAO,GAAe;EAGvC,AAFA,MAAM,GAAS,EAAM,EACrB,KAAK,gBAAgB,GACrB,KAAK,OAAO"}
|