-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSymbol.cs
More file actions
56 lines (48 loc) · 1.76 KB
/
Symbol.cs
File metadata and controls
56 lines (48 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//https://262.ecma-international.org/14.0/#sec-symbol-objects
[To(ToAttribute.Default)]
public partial class Symbol : SymbolPrototype
{
//TODO! How?
//https://262.ecma-international.org/14.0/#sec-symbol.asynciterator
//https://262.ecma-international.org/14.0/#sec-symbol.hasinstance
//https://262.ecma-international.org/14.0/#sec-symbol.iterator
//https://262.ecma-international.org/14.0/#sec-symbol.match
//https://262.ecma-international.org/14.0/#sec-symbol.matchall
//https://262.ecma-international.org/14.0/#sec-symbol.replace
//https://262.ecma-international.org/14.0/#sec-symbol.search
//https://262.ecma-international.org/14.0/#sec-symbol.species
//https://262.ecma-international.org/14.0/#sec-symbol.split
//https://262.ecma-international.org/14.0/#sec-symbol.toprimitive
//https://262.ecma-international.org/14.0/#sec-symbol.tostringtag
//https://262.ecma-international.org/14.0/#sec-symbol.unscopables
[To(ToAttribute.FirstCharToLowerCase)]
public SymbolPrototype Prototype { get; } = new();
[To(ToAttribute.FirstCharToLowerCase)]
public static Symbol For(string key)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static string KeyFor(Symbol sym)
{
throw new System.NotImplementedException();
}
}
[To(ToAttribute.FirstCharToLowerCase)]
public partial class SymbolPrototype : FunctionPrototype
{
public string Description { get; } = string.Empty;
public SymbolPrototype() { }
public string ToString(dynamic? radix = null)
{
throw new System.NotImplementedException();
}
public new Symbol ValueOf()
{
throw new System.NotImplementedException();
}
}