@mintplayer/polyglot-target-csharp 0.6.0 → 0.8.0
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/package.json +1 -1
- package/polyglot-plugin.json +43 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/polyglot-target-csharp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MintPlayer Polyglot C# / .NET target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyglot",
|
package/polyglot-plugin.json
CHANGED
|
@@ -433,18 +433,46 @@
|
|
|
433
433
|
}
|
|
434
434
|
},
|
|
435
435
|
"ListLit": {
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
436
|
+
"case": {
|
|
437
|
+
"when": [
|
|
438
|
+
[
|
|
439
|
+
{
|
|
440
|
+
"eq": [
|
|
441
|
+
"node.isArray",
|
|
442
|
+
"true"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"tmpl": [
|
|
447
|
+
"new ",
|
|
448
|
+
{
|
|
449
|
+
"type": "node.elem"
|
|
450
|
+
},
|
|
451
|
+
"[] { ",
|
|
452
|
+
{
|
|
453
|
+
"map": "node.elements",
|
|
454
|
+
"sep": ", "
|
|
455
|
+
},
|
|
456
|
+
" }"
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
],
|
|
461
|
+
"else": {
|
|
462
|
+
"tmpl": [
|
|
463
|
+
"new global::System.Collections.Generic.List<",
|
|
464
|
+
{
|
|
465
|
+
"type": "node.elem"
|
|
466
|
+
},
|
|
467
|
+
"> { ",
|
|
468
|
+
{
|
|
469
|
+
"map": "node.elements",
|
|
470
|
+
"sep": ", "
|
|
471
|
+
},
|
|
472
|
+
" }"
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
}
|
|
448
476
|
},
|
|
449
477
|
"New": {
|
|
450
478
|
"tmpl": [
|
|
@@ -2799,6 +2827,9 @@
|
|
|
2799
2827
|
"Error.init": "new $T($0)",
|
|
2800
2828
|
"Error.message": "$this.Message",
|
|
2801
2829
|
"Iterable.type": "global::System.Collections.Generic.IEnumerable<$0>",
|
|
2830
|
+
"Array.type": "$0[]",
|
|
2831
|
+
"Array.init": "global::System.Array.Empty<$0>()",
|
|
2832
|
+
"Array.count": "$this.Length",
|
|
2802
2833
|
"i8.parse": "sbyte.Parse($0)",
|
|
2803
2834
|
"i16.parse": "short.Parse($0)",
|
|
2804
2835
|
"i32.parse": "int.Parse($0)",
|