@flock/wirespec 0.9.19 → 0.9.21
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/arrow-arrow-core.js +17 -3
- package/arrow-arrow-core.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/markdown.js +60 -60
- package/mordant-mordant.js +17 -17
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +44 -27
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +239 -296
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +1006 -857
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +72 -72
- package/wirespec-src-plugin-cli.js +46 -46
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +0 -7
- package/wirespec-src-plugin-npm.js +62 -41
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +5 -5
- package/wirespec-src-tools-generator.js.map +1 -1
package/markdown.js
CHANGED
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
this.j2j_1 = endOffset;
|
|
422
422
|
this.k2j_1 = null;
|
|
423
423
|
}
|
|
424
|
-
protoOf(ASTNodeImpl).
|
|
424
|
+
protoOf(ASTNodeImpl).b2f = function () {
|
|
425
425
|
return this.h2j_1;
|
|
426
426
|
};
|
|
427
427
|
protoOf(ASTNodeImpl).l2j = function () {
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
while (tmp0_iterator.w()) {
|
|
439
439
|
var element = tmp0_iterator.y();
|
|
440
440
|
// Inline function 'org.intellij.markdown.ast.findChildOfType.<anonymous>' call
|
|
441
|
-
if (equals(element.
|
|
441
|
+
if (equals(element.b2f(), type)) {
|
|
442
442
|
tmp$ret$1 = element;
|
|
443
443
|
break $l$block;
|
|
444
444
|
}
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
var tmp0_iterator = node.n2j().v();
|
|
493
493
|
while (tmp0_iterator.w()) {
|
|
494
494
|
var child = tmp0_iterator.y();
|
|
495
|
-
var tmp1_subject = child.
|
|
495
|
+
var tmp1_subject = child.b2f();
|
|
496
496
|
if (equals(tmp1_subject, Companion_getInstance_0().e2i_1)) {
|
|
497
497
|
newlines = newlines + 1 | 0;
|
|
498
498
|
} else if (!((equals(tmp1_subject, Companion_getInstance_0().o2i_1) ? true : equals(tmp1_subject, Companion_getInstance_0().r2i_1)) ? true : equals(tmp1_subject, Companion_getInstance_0().b2j_1))) {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
var tmp0_iterator = $this.s2j_1.v();
|
|
513
513
|
while (tmp0_iterator.w()) {
|
|
514
514
|
var child = tmp0_iterator.y();
|
|
515
|
-
if (equals(child.
|
|
515
|
+
if (equals(child.b2f(), MarkdownElementTypes_getInstance().o2g_1) ? hasLooseContent(Companion_instance_2, child) : false) {
|
|
516
516
|
return true;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
DelimiterParser.call(this);
|
|
820
820
|
}
|
|
821
821
|
protoOf(StrikeThroughDelimiterParser).d2o = function (tokens, iterator, delimiters) {
|
|
822
|
-
if (!equals(iterator.
|
|
822
|
+
if (!equals(iterator.b2f(), GFMTokenTypes_getInstance().h2n_1)) {
|
|
823
823
|
return 0;
|
|
824
824
|
}
|
|
825
825
|
var stepsToAdvance = 1;
|
|
@@ -2670,11 +2670,11 @@
|
|
|
2670
2670
|
var iterator = new Iterator(tokensCache, currentTokenPosition);
|
|
2671
2671
|
// Inline function 'org.intellij.markdown.lexer.Compat.assert' call
|
|
2672
2672
|
Compat_getInstance();
|
|
2673
|
-
if (!!(iterator.
|
|
2673
|
+
if (!!(iterator.b2f() == null)) {
|
|
2674
2674
|
// Inline function 'org.intellij.markdown.lexer.Compat.assert.<anonymous>' call
|
|
2675
2675
|
throw new MarkdownParsingException('');
|
|
2676
2676
|
}
|
|
2677
|
-
var nodes = $this.h2v_1.f2j(ensureNotNull(iterator.
|
|
2677
|
+
var nodes = $this.h2v_1.f2j(ensureNotNull(iterator.b2f()), iterator.z8(), iterator.i2v());
|
|
2678
2678
|
var tmp0_iterator = nodes.v();
|
|
2679
2679
|
while (tmp0_iterator.w()) {
|
|
2680
2680
|
var node = tmp0_iterator.y();
|
|
@@ -2763,7 +2763,7 @@
|
|
|
2763
2763
|
RecursiveVisitor.call(this);
|
|
2764
2764
|
}
|
|
2765
2765
|
protoOf(LinkMap$Builder$buildLinkMap$1).c2j = function (node) {
|
|
2766
|
-
if (equals(node.
|
|
2766
|
+
if (equals(node.b2f(), MarkdownElementTypes_getInstance().x2g_1)) {
|
|
2767
2767
|
var tmp = Builder_getInstance();
|
|
2768
2768
|
var tmp$ret$1;
|
|
2769
2769
|
$l$block: {
|
|
@@ -2772,7 +2772,7 @@
|
|
|
2772
2772
|
while (tmp0_iterator.w()) {
|
|
2773
2773
|
var element = tmp0_iterator.y();
|
|
2774
2774
|
// Inline function 'org.intellij.markdown.parser.<no name provided>.visitNode.<anonymous>' call
|
|
2775
|
-
if (equals(element.
|
|
2775
|
+
if (equals(element.b2f(), MarkdownElementTypes_getInstance().y2g_1)) {
|
|
2776
2776
|
tmp$ret$1 = element;
|
|
2777
2777
|
break $l$block;
|
|
2778
2778
|
}
|
|
@@ -2818,7 +2818,7 @@
|
|
|
2818
2818
|
while (tmp0_iterator.w()) {
|
|
2819
2819
|
var element = tmp0_iterator.y();
|
|
2820
2820
|
// Inline function 'org.intellij.markdown.parser.Companion.create.<anonymous>' call
|
|
2821
|
-
if (equals(element.
|
|
2821
|
+
if (equals(element.b2f(), MarkdownElementTypes_getInstance().z2g_1)) {
|
|
2822
2822
|
tmp$ret$1 = element;
|
|
2823
2823
|
break $l$block;
|
|
2824
2824
|
}
|
|
@@ -2833,7 +2833,7 @@
|
|
|
2833
2833
|
while (tmp0_iterator_0.w()) {
|
|
2834
2834
|
var element_0 = tmp0_iterator_0.y();
|
|
2835
2835
|
// Inline function 'org.intellij.markdown.parser.Companion.create.<anonymous>' call
|
|
2836
|
-
if (equals(element_0.
|
|
2836
|
+
if (equals(element_0.b2f(), MarkdownElementTypes_getInstance().a2h_1)) {
|
|
2837
2837
|
tmp$ret$3 = element_0;
|
|
2838
2838
|
break $l$block_0;
|
|
2839
2839
|
}
|
|
@@ -5676,7 +5676,7 @@
|
|
|
5676
5676
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
5677
5677
|
var delimiters = ArrayList_init_$Create$();
|
|
5678
5678
|
var position = iterator;
|
|
5679
|
-
outer: while (!(position.
|
|
5679
|
+
outer: while (!(position.b2f() == null)) {
|
|
5680
5680
|
var iteratorMoved = 0;
|
|
5681
5681
|
var indexedObject = $this.s31_1;
|
|
5682
5682
|
var inductionVariable = 0;
|
|
@@ -5691,7 +5691,7 @@
|
|
|
5691
5691
|
do {
|
|
5692
5692
|
var step = inductionVariable_0;
|
|
5693
5693
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5694
|
-
if (position.
|
|
5694
|
+
if (position.b2f() == null) {
|
|
5695
5695
|
break outer;
|
|
5696
5696
|
}
|
|
5697
5697
|
position = position.h2o();
|
|
@@ -5997,7 +5997,7 @@
|
|
|
5997
5997
|
do {
|
|
5998
5998
|
var i = inductionVariable;
|
|
5999
5999
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6000
|
-
if (equals((new Iterator(tokensCache, i)).
|
|
6000
|
+
if (equals((new Iterator(tokensCache, i)).b2f(), Companion_getInstance_0().r2h_1)) {
|
|
6001
6001
|
if (lastStart < i) {
|
|
6002
6002
|
result.s(numberRangeToNumber(lastStart, i - 1 | 0));
|
|
6003
6003
|
}
|
|
@@ -6100,7 +6100,7 @@
|
|
|
6100
6100
|
this.f2o_1 = $outer;
|
|
6101
6101
|
this.e2o_1 = index;
|
|
6102
6102
|
}
|
|
6103
|
-
protoOf(Iterator).
|
|
6103
|
+
protoOf(Iterator).b2f = function () {
|
|
6104
6104
|
return info(this, 0).o2t_1;
|
|
6105
6105
|
};
|
|
6106
6106
|
protoOf(Iterator).q31 = function () {
|
|
@@ -6139,7 +6139,7 @@
|
|
|
6139
6139
|
}
|
|
6140
6140
|
};
|
|
6141
6141
|
protoOf(Iterator).toString = function () {
|
|
6142
|
-
return 'Iterator: ' + this.e2o_1 + ': ' + this.
|
|
6142
|
+
return 'Iterator: ' + this.e2o_1 + ': ' + this.b2f();
|
|
6143
6143
|
};
|
|
6144
6144
|
function TokensCache() {
|
|
6145
6145
|
}
|
|
@@ -6187,9 +6187,9 @@
|
|
|
6187
6187
|
var result = new ParsingResultBuilder();
|
|
6188
6188
|
var delegateIndices = new RangesListBuilder();
|
|
6189
6189
|
var iterator = RangesListIterator_init_$Create$(tokens, rangesToGlue);
|
|
6190
|
-
while (!(iterator.
|
|
6190
|
+
while (!(iterator.b2f() == null)) {
|
|
6191
6191
|
var tmp;
|
|
6192
|
-
if (equals(iterator.
|
|
6192
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().z2h_1)) {
|
|
6193
6193
|
// Inline function 'kotlin.let' call
|
|
6194
6194
|
// Inline function 'kotlin.contracts.contract' call
|
|
6195
6195
|
// Inline function 'org.intellij.markdown.parser.sequentialparsers.impl.AutolinkParser.parse.<anonymous>' call
|
|
@@ -6200,10 +6200,10 @@
|
|
|
6200
6200
|
}
|
|
6201
6201
|
if (tmp) {
|
|
6202
6202
|
var start = iterator.e2o_1;
|
|
6203
|
-
while (!equals(iterator.
|
|
6203
|
+
while (!equals(iterator.b2f(), Companion_getInstance_0().a2i_1) ? !(iterator.b2f() == null) : false) {
|
|
6204
6204
|
iterator = iterator.h2o();
|
|
6205
6205
|
}
|
|
6206
|
-
if (equals(iterator.
|
|
6206
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().a2i_1)) {
|
|
6207
6207
|
result.u2o(new Node(numberRangeToNumber(start, iterator.e2o_1 + 1 | 0), MarkdownElementTypes_getInstance().g2h_1));
|
|
6208
6208
|
}
|
|
6209
6209
|
} else {
|
|
@@ -6215,8 +6215,8 @@
|
|
|
6215
6215
|
};
|
|
6216
6216
|
function findOfSize($this, it, length) {
|
|
6217
6217
|
var iterator = it;
|
|
6218
|
-
while (!(iterator.
|
|
6219
|
-
if (equals(iterator.
|
|
6218
|
+
while (!(iterator.b2f() == null)) {
|
|
6219
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().m2i_1) ? true : equals(iterator.b2f(), Companion_getInstance_0().n2i_1)) {
|
|
6220
6220
|
if (getLength($this, iterator, false) === length) {
|
|
6221
6221
|
return iterator;
|
|
6222
6222
|
}
|
|
@@ -6227,7 +6227,7 @@
|
|
|
6227
6227
|
}
|
|
6228
6228
|
function getLength($this, info, canEscape) {
|
|
6229
6229
|
var toSubtract = 0;
|
|
6230
|
-
if (equals(info.
|
|
6230
|
+
if (equals(info.b2f(), Companion_getInstance_0().n2i_1)) {
|
|
6231
6231
|
if (canEscape) {
|
|
6232
6232
|
toSubtract = 2;
|
|
6233
6233
|
} else {
|
|
@@ -6242,8 +6242,8 @@
|
|
|
6242
6242
|
var result = new ParsingResultBuilder();
|
|
6243
6243
|
var delegateIndices = new RangesListBuilder();
|
|
6244
6244
|
var iterator = RangesListIterator_init_$Create$(tokens, rangesToGlue);
|
|
6245
|
-
$l$loop: while (!(iterator.
|
|
6246
|
-
if (equals(iterator.
|
|
6245
|
+
$l$loop: while (!(iterator.b2f() == null)) {
|
|
6246
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().m2i_1) ? true : equals(iterator.b2f(), Companion_getInstance_0().n2i_1)) {
|
|
6247
6247
|
var endIterator = findOfSize(this, iterator.h2o(), getLength(this, iterator, true));
|
|
6248
6248
|
if (!(endIterator == null)) {
|
|
6249
6249
|
result.u2o(new Node(numberRangeToNumber(iterator.e2o_1, endIterator.e2o_1 + 1 | 0), MarkdownElementTypes_getInstance().s2g_1));
|
|
@@ -6271,7 +6271,7 @@
|
|
|
6271
6271
|
DelimiterParser.call(this);
|
|
6272
6272
|
}
|
|
6273
6273
|
protoOf(EmphStrongDelimiterParser).d2o = function (tokens, iterator, delimiters) {
|
|
6274
|
-
if (!equals(iterator.
|
|
6274
|
+
if (!equals(iterator.b2f(), Companion_getInstance_0().l2i_1)) {
|
|
6275
6275
|
return 0;
|
|
6276
6276
|
}
|
|
6277
6277
|
var stepsToAdvance = 1;
|
|
@@ -6332,8 +6332,8 @@
|
|
|
6332
6332
|
var result = new ParsingResultBuilder();
|
|
6333
6333
|
var delegateIndices = new RangesListBuilder();
|
|
6334
6334
|
var iterator = RangesListIterator_init_$Create$(tokens, rangesToGlue);
|
|
6335
|
-
$l$loop: while (!(iterator.
|
|
6336
|
-
if (equals(iterator.
|
|
6335
|
+
$l$loop: while (!(iterator.b2f() == null)) {
|
|
6336
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().c2i_1) ? equals(iterator.g2o(1), Companion_getInstance_0().x2h_1) : false) {
|
|
6337
6337
|
var tmp0_elvis_lhs = Companion_instance_22.s32(iterator.h2o());
|
|
6338
6338
|
var link = tmp0_elvis_lhs == null ? Companion_instance_24.t32(iterator.h2o()) : tmp0_elvis_lhs;
|
|
6339
6339
|
if (!(link == null)) {
|
|
@@ -6365,24 +6365,24 @@
|
|
|
6365
6365
|
return null;
|
|
6366
6366
|
}
|
|
6367
6367
|
it = it.h2o().h2o();
|
|
6368
|
-
if (equals(it.
|
|
6368
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6369
6369
|
it = it.h2o();
|
|
6370
6370
|
}
|
|
6371
6371
|
var linkDestination = Companion_instance_23.v32(it);
|
|
6372
6372
|
if (!(linkDestination == null)) {
|
|
6373
6373
|
it = linkDestination.f32_1.h2o();
|
|
6374
|
-
if (equals(it.
|
|
6374
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6375
6375
|
it = it.h2o();
|
|
6376
6376
|
}
|
|
6377
6377
|
}
|
|
6378
6378
|
var linkTitle = Companion_instance_23.w32(it);
|
|
6379
6379
|
if (!(linkTitle == null)) {
|
|
6380
6380
|
it = linkTitle.f32_1.h2o();
|
|
6381
|
-
if (equals(it.
|
|
6381
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6382
6382
|
it = it.h2o();
|
|
6383
6383
|
}
|
|
6384
6384
|
}
|
|
6385
|
-
if (!equals(it.
|
|
6385
|
+
if (!equals(it.b2f(), Companion_getInstance_0().w2h_1)) {
|
|
6386
6386
|
return null;
|
|
6387
6387
|
}
|
|
6388
6388
|
var tmp_0 = it;
|
|
@@ -6401,8 +6401,8 @@
|
|
|
6401
6401
|
var result = new ParsingResultBuilder();
|
|
6402
6402
|
var delegateIndices = new RangesListBuilder();
|
|
6403
6403
|
var iterator = RangesListIterator_init_$Create$(tokens, rangesToGlue);
|
|
6404
|
-
$l$loop: while (!(iterator.
|
|
6405
|
-
if (equals(iterator.
|
|
6404
|
+
$l$loop: while (!(iterator.b2f() == null)) {
|
|
6405
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6406
6406
|
var inlineLink = Companion_instance_22.s32(iterator);
|
|
6407
6407
|
if (!(inlineLink == null)) {
|
|
6408
6408
|
iterator = inlineLink.f32_1.h2o();
|
|
@@ -6419,20 +6419,20 @@
|
|
|
6419
6419
|
}
|
|
6420
6420
|
protoOf(Companion_23).v32 = function (iterator) {
|
|
6421
6421
|
var it = iterator;
|
|
6422
|
-
if (equals(it.
|
|
6422
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1) ? true : equals(it.b2f(), Companion_getInstance_0().w2h_1)) {
|
|
6423
6423
|
return null;
|
|
6424
6424
|
}
|
|
6425
6425
|
var startIndex = it.e2o_1;
|
|
6426
|
-
var withBraces = equals(it.
|
|
6426
|
+
var withBraces = equals(it.b2f(), Companion_getInstance_0().z2h_1);
|
|
6427
6427
|
if (withBraces) {
|
|
6428
6428
|
it = it.h2o();
|
|
6429
6429
|
}
|
|
6430
6430
|
var hasOpenedParentheses = false;
|
|
6431
|
-
$l$loop_2: while (!(it.
|
|
6432
|
-
if (withBraces ? equals(it.
|
|
6431
|
+
$l$loop_2: while (!(it.b2f() == null)) {
|
|
6432
|
+
if (withBraces ? equals(it.b2f(), Companion_getInstance_0().a2i_1) : false) {
|
|
6433
6433
|
break $l$loop_2;
|
|
6434
6434
|
} else if (!withBraces) {
|
|
6435
|
-
if (equals(it.
|
|
6435
|
+
if (equals(it.b2f(), Companion_getInstance_0().v2h_1)) {
|
|
6436
6436
|
if (hasOpenedParentheses) {
|
|
6437
6437
|
break $l$loop_2;
|
|
6438
6438
|
}
|
|
@@ -6450,27 +6450,27 @@
|
|
|
6450
6450
|
}
|
|
6451
6451
|
it = it.h2o();
|
|
6452
6452
|
}
|
|
6453
|
-
if (!(it.
|
|
6453
|
+
if (!(it.b2f() == null) ? !hasOpenedParentheses : false) {
|
|
6454
6454
|
return LocalParsingResult_init_$Create$_0(it, listOf(new Node(numberRangeToNumber(startIndex, it.e2o_1 + 1 | 0), MarkdownElementTypes_getInstance().z2g_1)));
|
|
6455
6455
|
}
|
|
6456
6456
|
return null;
|
|
6457
6457
|
};
|
|
6458
6458
|
protoOf(Companion_23).x32 = function (iterator) {
|
|
6459
6459
|
var it = iterator;
|
|
6460
|
-
if (!equals(it.
|
|
6460
|
+
if (!equals(it.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6461
6461
|
return null;
|
|
6462
6462
|
}
|
|
6463
6463
|
var startIndex = it.e2o_1;
|
|
6464
6464
|
var delegate = new RangesListBuilder();
|
|
6465
6465
|
it = it.h2o();
|
|
6466
|
-
$l$loop: while (!equals(it.
|
|
6466
|
+
$l$loop: while (!equals(it.b2f(), Companion_getInstance_0().y2h_1) ? !(it.b2f() == null) : false) {
|
|
6467
6467
|
delegate.l32(it.e2o_1);
|
|
6468
|
-
if (equals(it.
|
|
6468
|
+
if (equals(it.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6469
6469
|
break $l$loop;
|
|
6470
6470
|
}
|
|
6471
6471
|
it = it.h2o();
|
|
6472
6472
|
}
|
|
6473
|
-
if (equals(it.
|
|
6473
|
+
if (equals(it.b2f(), Companion_getInstance_0().y2h_1)) {
|
|
6474
6474
|
var endIndex = it.e2o_1;
|
|
6475
6475
|
if (endIndex === (startIndex + 1 | 0)) {
|
|
6476
6476
|
return null;
|
|
@@ -6481,50 +6481,50 @@
|
|
|
6481
6481
|
};
|
|
6482
6482
|
protoOf(Companion_23).u32 = function (iterator) {
|
|
6483
6483
|
var it = iterator;
|
|
6484
|
-
if (!equals(it.
|
|
6484
|
+
if (!equals(it.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6485
6485
|
return null;
|
|
6486
6486
|
}
|
|
6487
6487
|
var startIndex = it.e2o_1;
|
|
6488
6488
|
var delegate = new RangesListBuilder();
|
|
6489
6489
|
var bracketDepth = 1;
|
|
6490
6490
|
it = it.h2o();
|
|
6491
|
-
$l$loop: while (!(it.
|
|
6492
|
-
if (equals(it.
|
|
6491
|
+
$l$loop: while (!(it.b2f() == null)) {
|
|
6492
|
+
if (equals(it.b2f(), Companion_getInstance_0().y2h_1)) {
|
|
6493
6493
|
bracketDepth = bracketDepth - 1 | 0;
|
|
6494
6494
|
if (bracketDepth === 0) {
|
|
6495
6495
|
break $l$loop;
|
|
6496
6496
|
}
|
|
6497
6497
|
}
|
|
6498
6498
|
delegate.l32(it.e2o_1);
|
|
6499
|
-
if (equals(it.
|
|
6499
|
+
if (equals(it.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6500
6500
|
bracketDepth = bracketDepth + 1 | 0;
|
|
6501
6501
|
}
|
|
6502
6502
|
it = it.h2o();
|
|
6503
6503
|
}
|
|
6504
|
-
if (equals(it.
|
|
6504
|
+
if (equals(it.b2f(), Companion_getInstance_0().y2h_1)) {
|
|
6505
6505
|
return LocalParsingResult_init_$Create$(it, listOf(new Node(numberRangeToNumber(startIndex, it.e2o_1 + 1 | 0), MarkdownElementTypes_getInstance().b2h_1)), delegate.ej());
|
|
6506
6506
|
}
|
|
6507
6507
|
return null;
|
|
6508
6508
|
};
|
|
6509
6509
|
protoOf(Companion_23).w32 = function (iterator) {
|
|
6510
6510
|
var it = iterator;
|
|
6511
|
-
if (equals(it.
|
|
6511
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6512
6512
|
return null;
|
|
6513
6513
|
}
|
|
6514
6514
|
var startIndex = it.e2o_1;
|
|
6515
6515
|
var closingType;
|
|
6516
|
-
if (equals(it.
|
|
6517
|
-
closingType = it.
|
|
6518
|
-
} else if (equals(it.
|
|
6516
|
+
if (equals(it.b2f(), Companion_getInstance_0().t2h_1) ? true : equals(it.b2f(), Companion_getInstance_0().u2h_1)) {
|
|
6517
|
+
closingType = it.b2f();
|
|
6518
|
+
} else if (equals(it.b2f(), Companion_getInstance_0().v2h_1)) {
|
|
6519
6519
|
closingType = Companion_getInstance_0().w2h_1;
|
|
6520
6520
|
} else {
|
|
6521
6521
|
return null;
|
|
6522
6522
|
}
|
|
6523
6523
|
it = it.h2o();
|
|
6524
|
-
while (!(it.
|
|
6524
|
+
while (!(it.b2f() == null) ? !equals(it.b2f(), closingType) : false) {
|
|
6525
6525
|
it = it.h2o();
|
|
6526
6526
|
}
|
|
6527
|
-
if (!(it.
|
|
6527
|
+
if (!(it.b2f() == null)) {
|
|
6528
6528
|
return LocalParsingResult_init_$Create$_0(it, listOf(new Node(numberRangeToNumber(startIndex, it.e2o_1 + 1 | 0), MarkdownElementTypes_getInstance().a2h_1)));
|
|
6529
6529
|
}
|
|
6530
6530
|
return null;
|
|
@@ -6544,7 +6544,7 @@
|
|
|
6544
6544
|
}
|
|
6545
6545
|
var linkText = tmp;
|
|
6546
6546
|
var it = linkText.f32_1.h2o();
|
|
6547
|
-
if (equals(it.
|
|
6547
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6548
6548
|
it = it.h2o();
|
|
6549
6549
|
}
|
|
6550
6550
|
var tmp1_elvis_lhs = Companion_instance_23.x32(it);
|
|
@@ -6571,10 +6571,10 @@
|
|
|
6571
6571
|
var it = linkLabel.f32_1;
|
|
6572
6572
|
var shortcutLinkEnd = it;
|
|
6573
6573
|
it = it.h2o();
|
|
6574
|
-
if (equals(it.
|
|
6574
|
+
if (equals(it.b2f(), Companion_getInstance_0().e2i_1)) {
|
|
6575
6575
|
it = it.h2o();
|
|
6576
6576
|
}
|
|
6577
|
-
if (equals(it.
|
|
6577
|
+
if (equals(it.b2f(), Companion_getInstance_0().x2h_1) ? equals(it.g2o(1), Companion_getInstance_0().y2h_1) : false) {
|
|
6578
6578
|
it = it.h2o();
|
|
6579
6579
|
} else {
|
|
6580
6580
|
it = shortcutLinkEnd;
|
|
@@ -6597,8 +6597,8 @@
|
|
|
6597
6597
|
var result = new ParsingResultBuilder();
|
|
6598
6598
|
var delegateIndices = new RangesListBuilder();
|
|
6599
6599
|
var iterator = RangesListIterator_init_$Create$(tokens, rangesToGlue);
|
|
6600
|
-
$l$loop: while (!(iterator.
|
|
6601
|
-
if (equals(iterator.
|
|
6600
|
+
$l$loop: while (!(iterator.b2f() == null)) {
|
|
6601
|
+
if (equals(iterator.b2f(), Companion_getInstance_0().x2h_1)) {
|
|
6602
6602
|
var referenceLink = Companion_instance_24.t32(iterator);
|
|
6603
6603
|
if (!(referenceLink == null)) {
|
|
6604
6604
|
iterator = referenceLink.f32_1.h2o();
|
package/mordant-mordant.js
CHANGED
|
@@ -1488,7 +1488,7 @@
|
|
|
1488
1488
|
// Inline function 'kotlin.contracts.contract' call
|
|
1489
1489
|
// Inline function 'kotlin.require' call
|
|
1490
1490
|
// Inline function 'kotlin.contracts.contract' call
|
|
1491
|
-
if (!equals(node.
|
|
1491
|
+
if (!equals(node.b2f(), MarkdownElementTypes_getInstance().l2g_1)) {
|
|
1492
1492
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
1493
1493
|
var message = 'Failed requirement.';
|
|
1494
1494
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
return verticalLayout(MarkdownRenderer$parseBlocks$lambda(nodes, $this));
|
|
1502
1502
|
}
|
|
1503
1503
|
function parseStructure($this, node) {
|
|
1504
|
-
var tmp0_subject = node.
|
|
1504
|
+
var tmp0_subject = node.b2f();
|
|
1505
1505
|
var tmp;
|
|
1506
1506
|
if (equals(tmp0_subject, MarkdownElementTypes_getInstance().m2g_1)) {
|
|
1507
1507
|
tmp = UnorderedList_init_$Create$(parseListItems($this, node));
|
|
@@ -1516,7 +1516,7 @@
|
|
|
1516
1516
|
while (tmp0_iterator.w()) {
|
|
1517
1517
|
var element = tmp0_iterator.y();
|
|
1518
1518
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseStructure.<anonymous>' call
|
|
1519
|
-
if (!equals(element.
|
|
1519
|
+
if (!equals(element.b2f(), Companion_getInstance_0().b2j_1)) {
|
|
1520
1520
|
destination.s(element);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
@@ -1530,7 +1530,7 @@
|
|
|
1530
1530
|
while (tmp0_iterator_0.w()) {
|
|
1531
1531
|
var item = tmp0_iterator_0.y();
|
|
1532
1532
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseStructure.<anonymous>' call
|
|
1533
|
-
if (equals(item.
|
|
1533
|
+
if (equals(item.b2f(), Companion_getInstance_0().u2i_1)) {
|
|
1534
1534
|
tmp$ret$4 = index;
|
|
1535
1535
|
break $l$block;
|
|
1536
1536
|
}
|
|
@@ -1547,7 +1547,7 @@
|
|
|
1547
1547
|
while (iterator.o1()) {
|
|
1548
1548
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseStructure.<anonymous>' call
|
|
1549
1549
|
var it = iterator.q1();
|
|
1550
|
-
if (equals(it.
|
|
1550
|
+
if (equals(it.b2f(), Companion_getInstance_0().u2i_1)) {
|
|
1551
1551
|
tmp$ret$6 = iterator.p1();
|
|
1552
1552
|
break $l$block_0;
|
|
1553
1553
|
}
|
|
@@ -1599,7 +1599,7 @@
|
|
|
1599
1599
|
return tmp;
|
|
1600
1600
|
}
|
|
1601
1601
|
function parseInlines($this, node) {
|
|
1602
|
-
var tmp0_subject = node.
|
|
1602
|
+
var tmp0_subject = node.b2f();
|
|
1603
1603
|
var tmp;
|
|
1604
1604
|
if (equals(tmp0_subject, MarkdownElementTypes_getInstance().s2g_1)) {
|
|
1605
1605
|
var tmp_0 = $this.m3b_1.y3a('markdown.code.span');
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().z2g_1)) {
|
|
1626
1626
|
var tmp_1;
|
|
1627
1627
|
var tmp1_safe_receiver = firstOrNull(node.n2j());
|
|
1628
|
-
if (equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1628
|
+
if (equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b2f(), Companion_getInstance_0().z2h_1)) {
|
|
1629
1629
|
tmp_1 = 1;
|
|
1630
1630
|
} else {
|
|
1631
1631
|
tmp_1 = 0;
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
} else if (equals(tmp0_subject, Companion_getInstance_0().e2i_1)) {
|
|
1661
1661
|
tmp = nodeText$default(node, $this);
|
|
1662
1662
|
} else {
|
|
1663
|
-
var message = 'Unexpected token when parsing inlines: ' + node + '; [' + node.
|
|
1663
|
+
var message = 'Unexpected token when parsing inlines: ' + node + '; [' + node.b2f() + ":'" + take(nodeText$default(node, $this), 10) + "'}]";
|
|
1664
1664
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1665
1665
|
}
|
|
1666
1666
|
return tmp;
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
while (tmp0_iterator.w()) {
|
|
1697
1697
|
var element = tmp0_iterator.y();
|
|
1698
1698
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseListItems.<anonymous>' call
|
|
1699
|
-
if (equals(element.
|
|
1699
|
+
if (equals(element.b2f(), MarkdownElementTypes_getInstance().o2g_1)) {
|
|
1700
1700
|
destination.s(element);
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
var item = tmp0_iterator_0.y();
|
|
1708
1708
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseListItems.<anonymous>' call
|
|
1709
1709
|
var tmp;
|
|
1710
|
-
if (item.n2j().p() > 1 ? equals(item.n2j().g1(1).
|
|
1710
|
+
if (item.n2j().p() > 1 ? equals(item.n2j().g1(1).b2f(), GFMTokenTypes_getInstance().k2n_1) : false) {
|
|
1711
1711
|
tmp = horizontalLayout(MarkdownRenderer$parseListItems$lambda($this, item));
|
|
1712
1712
|
} else {
|
|
1713
1713
|
tmp = parseBlocks($this, drop_0(item.n2j(), 1));
|
|
@@ -1740,13 +1740,13 @@
|
|
|
1740
1740
|
function dropWs($this, nodes) {
|
|
1741
1741
|
var tmp;
|
|
1742
1742
|
var tmp0_safe_receiver = firstOrNull(nodes);
|
|
1743
|
-
if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1743
|
+
if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2f(), Companion_getInstance_0().b2j_1)) {
|
|
1744
1744
|
tmp = 1;
|
|
1745
1745
|
} else {
|
|
1746
1746
|
tmp = 0;
|
|
1747
1747
|
}
|
|
1748
1748
|
var drop = tmp;
|
|
1749
|
-
var dropLast = (nodes.p() > 1 ? equals(last(nodes).
|
|
1749
|
+
var dropLast = (nodes.p() > 1 ? equals(last(nodes).b2f(), Companion_getInstance_0().b2j_1) : false) ? 1 : 0;
|
|
1750
1750
|
return to(drop, dropLast);
|
|
1751
1751
|
}
|
|
1752
1752
|
function parseTableRow(_this__u8e3s4, $this, node) {
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
while (tmp0_iterator.w()) {
|
|
1874
1874
|
var element = tmp0_iterator.y();
|
|
1875
1875
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.findLinkDest.<anonymous>' call
|
|
1876
|
-
if (equals(element.
|
|
1876
|
+
if (equals(element.b2f(), Companion_getInstance_0().p2h_1) ? true : equals(element.b2f(), GFMTokenTypes_getInstance().j2n_1)) {
|
|
1877
1877
|
tmp$ret$1 = element;
|
|
1878
1878
|
break $l$block;
|
|
1879
1879
|
}
|
|
@@ -1906,10 +1906,10 @@
|
|
|
1906
1906
|
var i = index;
|
|
1907
1907
|
index = index + 1 | 0;
|
|
1908
1908
|
var node = iterator.y();
|
|
1909
|
-
if ((equals(node.
|
|
1909
|
+
if ((equals(node.b2f(), Companion_getInstance_0().e2i_1) ? 1 <= i ? i < get_lastIndex_0($nodes) : false : false) ? !listOf([Companion_getInstance_0().e2i_1, Companion_getInstance_0().b2j_1]).r($nodes.g1(i - 1 | 0).b2f()) : false) {
|
|
1910
1910
|
continue $l$loop_0;
|
|
1911
1911
|
}
|
|
1912
|
-
if (equals(node.
|
|
1912
|
+
if (equals(node.b2f(), Companion_getInstance_0().b2j_1)) {
|
|
1913
1913
|
continue $l$loop_0;
|
|
1914
1914
|
}
|
|
1915
1915
|
$this$verticalLayout.b3c(parseStructure(this$0, node));
|
|
@@ -1941,7 +1941,7 @@
|
|
|
1941
1941
|
while (tmp0_iterator.w()) {
|
|
1942
1942
|
var element = tmp0_iterator.y();
|
|
1943
1943
|
// Inline function 'com.github.ajalt.mordant.markdown.MarkdownRenderer.parseStructure.<anonymous>.<anonymous>.<anonymous>' call
|
|
1944
|
-
if (equals(element.
|
|
1944
|
+
if (equals(element.b2f(), GFMElementTypes_getInstance().g2n_1)) {
|
|
1945
1945
|
destination.s(element);
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
var tmp0_iterator = $node.n2j().v();
|
|
1998
1998
|
$l$loop: while (tmp0_iterator.w()) {
|
|
1999
1999
|
var child = tmp0_iterator.y();
|
|
2000
|
-
if (!equals(child.
|
|
2000
|
+
if (!equals(child.b2f(), GFMTokenTypes_getInstance().l2n_1))
|
|
2001
2001
|
continue $l$loop;
|
|
2002
2002
|
var tmp1_container = dropWs(this$0, child.n2j());
|
|
2003
2003
|
var drop = tmp1_container.jd();
|