|
| 1 | +using CSharpToJavaScript.Utils; |
| 2 | +using System; |
| 3 | +using System.Collections.Generic; |
| 4 | +using System.Linq; |
| 5 | +using System.Text; |
| 6 | +using System.Threading.Tasks; |
| 7 | + |
| 8 | +namespace CSharpToJavaScript.APIs.JS; |
| 9 | + |
| 10 | +//https://262.ecma-international.org/14.0/#sec-symbol-objects |
| 11 | +[To(ToAttribute.Default)] |
| 12 | +public partial class Symbol : SymbolPrototype |
| 13 | +{ |
| 14 | + //TODO! How? |
| 15 | + //https://262.ecma-international.org/14.0/#sec-symbol.asynciterator |
| 16 | + //https://262.ecma-international.org/14.0/#sec-symbol.hasinstance |
| 17 | + //https://262.ecma-international.org/14.0/#sec-symbol.iterator |
| 18 | + //https://262.ecma-international.org/14.0/#sec-symbol.match |
| 19 | + //https://262.ecma-international.org/14.0/#sec-symbol.matchall |
| 20 | + //https://262.ecma-international.org/14.0/#sec-symbol.replace |
| 21 | + //https://262.ecma-international.org/14.0/#sec-symbol.search |
| 22 | + //https://262.ecma-international.org/14.0/#sec-symbol.species |
| 23 | + //https://262.ecma-international.org/14.0/#sec-symbol.split |
| 24 | + //https://262.ecma-international.org/14.0/#sec-symbol.toprimitive |
| 25 | + //https://262.ecma-international.org/14.0/#sec-symbol.tostringtag |
| 26 | + //https://262.ecma-international.org/14.0/#sec-symbol.unscopables |
| 27 | + |
| 28 | + [To(ToAttribute.FirstCharToLowerCase)] |
| 29 | + public SymbolPrototype Prototype { get; } = new(); |
| 30 | + |
| 31 | + [To(ToAttribute.Default)] |
| 32 | + public Symbol(string description = "") |
| 33 | + { |
| 34 | + |
| 35 | + } |
| 36 | + |
| 37 | + [To(ToAttribute.FirstCharToLowerCase)] |
| 38 | + public static Symbol For(string key) |
| 39 | + { |
| 40 | + throw new System.NotImplementedException(); |
| 41 | + } |
| 42 | + |
| 43 | + [To(ToAttribute.FirstCharToLowerCase)] |
| 44 | + public static string KeyFor(Symbol sym) |
| 45 | + { |
| 46 | + throw new System.NotImplementedException(); |
| 47 | + } |
| 48 | +} |
| 49 | + |
| 50 | +[To(ToAttribute.FirstCharToLowerCase)] |
| 51 | +public partial class SymbolPrototype : ObjectPrototype |
| 52 | +{ |
| 53 | + public string Description { get; } = string.Empty; |
| 54 | + public SymbolPrototype() { } |
| 55 | + public string ToString(dynamic? radix = null) |
| 56 | + { |
| 57 | + throw new System.NotImplementedException(); |
| 58 | + } |
| 59 | + public Symbol ValueOf() |
| 60 | + { |
| 61 | + throw new System.NotImplementedException(); |
| 62 | + } |
| 63 | + |
| 64 | +} |
0 commit comments