@mintplayer/polyglot-target-csharp 0.8.0 → 0.9.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/polyglot-target-csharp",
3
- "version": "0.8.0",
3
+ "version": "0.9.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",
@@ -1773,6 +1773,25 @@
1773
1773
  {
1774
1774
  "line": "#nullable enable"
1775
1775
  },
1776
+ {
1777
+ "case": {
1778
+ "when": [
1779
+ [
1780
+ {
1781
+ "not": {
1782
+ "eq": [
1783
+ "module.globals.count",
1784
+ "0"
1785
+ ]
1786
+ }
1787
+ },
1788
+ {
1789
+ "line": "using static PolyglotProgram;"
1790
+ }
1791
+ ]
1792
+ ]
1793
+ }
1794
+ },
1776
1795
  {
1777
1796
  "line": ""
1778
1797
  },
@@ -1887,7 +1906,7 @@
1887
1906
  "each": {
1888
1907
  "line": {
1889
1908
  "tmpl": [
1890
- "static readonly ",
1909
+ "internal static readonly ",
1891
1910
  {
1892
1911
  "type": "item.type"
1893
1912
  },
@@ -2819,6 +2838,7 @@
2819
2838
  "string.toUpper": "$this.ToUpper()",
2820
2839
  "string.toLower": "$this.ToLower()",
2821
2840
  "string.charAt": "$this[$0].ToString()",
2841
+ "string.codePointAt": "char.ConvertToUtf32($this, $0)",
2822
2842
  "string.codePoints": "$this.EnumerateRunes()",
2823
2843
  "string.toI32": "global::System.Int32.Parse($this)"
2824
2844
  },