@mintplayer/polyglot-target-csharp 0.2.2 → 0.3.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.2.2",
3
+ "version": "0.3.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",
@@ -932,6 +932,7 @@
932
932
  "EnumDecl": {
933
933
  "line": {
934
934
  "tmpl": [
935
+ { "fn": "access" },
935
936
  "enum ",
936
937
  {
937
938
  "fn": "ident",
@@ -1366,6 +1367,7 @@
1366
1367
  },
1367
1368
  "csRecordHead": {
1368
1369
  "tmpl": [
1370
+ { "fn": "access" },
1369
1371
  "record ",
1370
1372
  {
1371
1373
  "fn": "ident",
@@ -1780,7 +1782,7 @@
1780
1782
  },
1781
1783
  {
1782
1784
  "block": {
1783
- "head": "static class PolyglotExtensions",
1785
+ "head": { "tmpl": [ { "fn": "access" }, "static ", { "case": { "when": [ [ { "eq": [ "module.linked", "true" ] }, "partial " ] ], "else": "" } }, "class PolyglotExtensions" ] },
1784
1786
  "body": [
1785
1787
  {
1786
1788
  "mapMembers": "module.extensions",
@@ -1850,7 +1852,7 @@
1850
1852
  },
1851
1853
  {
1852
1854
  "block": {
1853
- "head": "static class PolyglotProgram",
1855
+ "head": { "tmpl": [ { "fn": "access" }, "static ", { "case": { "when": [ [ { "eq": [ "module.linked", "true" ] }, "partial " ] ], "else": "" } }, "class PolyglotProgram" ] },
1854
1856
  "body": [
1855
1857
  {
1856
1858
  "mapDecl": "module.globals",
@@ -2123,6 +2125,7 @@
2123
2125
  },
2124
2126
  "csClassHead": {
2125
2127
  "tmpl": [
2128
+ { "fn": "access" },
2126
2129
  "class ",
2127
2130
  {
2128
2131
  "fn": "ident",
@@ -2345,6 +2348,7 @@
2345
2348
  "block": {
2346
2349
  "head": {
2347
2350
  "tmpl": [
2351
+ { "fn": "access" },
2348
2352
  "interface ",
2349
2353
  {
2350
2354
  "fn": "ident",
@@ -2471,6 +2475,7 @@
2471
2475
  {
2472
2476
  "line": {
2473
2477
  "tmpl": [
2478
+ { "fn": "access" },
2474
2479
  "abstract record ",
2475
2480
  {
2476
2481
  "fn": "ident",
@@ -2492,6 +2497,7 @@
2492
2497
  "each": {
2493
2498
  "line": {
2494
2499
  "tmpl": [
2500
+ { "fn": "access" },
2495
2501
  "sealed record ",
2496
2502
  {
2497
2503
  "fn": "ident",
@@ -2751,6 +2757,22 @@
2751
2757
  "Math.E": "global::System.Math.E",
2752
2758
  "Math.sqrt": "global::System.Math.Sqrt($0)",
2753
2759
  "Math.ln": "global::System.Math.Log($0)",
2760
+ "Math.log": "global::System.Math.Log($0)",
2761
+ "Math.log2": "global::System.Math.Log2($0)",
2762
+ "Math.log10": "global::System.Math.Log10($0)",
2763
+ "Math.exp": "global::System.Math.Exp($0)",
2764
+ "Math.pow": "global::System.Math.Pow($0, $1)",
2765
+ "Math.sin": "global::System.Math.Sin($0)",
2766
+ "Math.cos": "global::System.Math.Cos($0)",
2767
+ "Math.tan": "global::System.Math.Tan($0)",
2768
+ "Math.asin": "global::System.Math.Asin($0)",
2769
+ "Math.acos": "global::System.Math.Acos($0)",
2770
+ "Math.atan": "global::System.Math.Atan($0)",
2771
+ "Math.atan2": "global::System.Math.Atan2($0, $1)",
2772
+ "Math.sinh": "global::System.Math.Sinh($0)",
2773
+ "Math.cosh": "global::System.Math.Cosh($0)",
2774
+ "Math.tanh": "global::System.Math.Tanh($0)",
2775
+ "Math.trunc": "global::System.Math.Truncate($0)",
2754
2776
  "Math.floor": "global::System.Math.Floor($0)",
2755
2777
  "Math.ceil": "global::System.Math.Ceiling($0)",
2756
2778
  "Math.min": "global::System.Math.Min($0, $1)",