-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathObject.cs
More file actions
205 lines (170 loc) · 4.73 KB
/
Object.cs
File metadata and controls
205 lines (170 loc) · 4.73 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
using System.Collections.Generic;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//https://262.ecma-international.org/14.0/#sec-object-objects
[To(ToAttribute.Default)]
public partial class Object : ObjectPrototype
{
[To(ToAttribute.FirstCharToLowerCase)]
public static ObjectPrototype Prototype { get; } = new();
public Object(dynamic? value = null) { }
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic Assign(dynamic target, params dynamic[] sources)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic Create(dynamic O, dynamic Properties)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic DefineProperties(dynamic O, dynamic Properties)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic DefineProperty(dynamic O, dynamic P, dynamic Attributes)
{
throw new System.NotImplementedException();
}
//Todo? key/val array??? 2dimension????
[To(ToAttribute.FirstCharToLowerCase)]
public static KeyValuePair<string, dynamic> Entries(dynamic O)
{
throw new System.NotImplementedException();
}
//Todo? <T> and return <T>???
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic Freeze(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic FromEntries(dynamic iterable)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic GetOwnPropertyDescriptor(dynamic O, dynamic P)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic GetOwnPropertyDescriptors(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static string[] GetOwnPropertyNames(dynamic O)
{
throw new System.NotImplementedException();
}
//string[]? todo
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic[] GetOwnPropertySymbols(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic GetPrototypeOf(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool HasOwn(dynamic O, dynamic P)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool Is(dynamic value1,dynamic value2)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool IsExtensible(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool IsFrozen(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool IsSealed(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static string[] Keys(dynamic O)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic PreventExtensions(dynamic O)
{
throw new System.NotImplementedException();
}
//TODO <T>????
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic Seal(dynamic O)
{
throw new System.NotImplementedException();
}
//TODO <T>????
[To(ToAttribute.FirstCharToLowerCase)]
public static dynamic SetPrototypeOf(dynamic O, dynamic proto)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static string[] Values(dynamic O)
{
throw new System.NotImplementedException();
}
}
[To(ToAttribute.FirstCharToLowerCase)]
public class ObjectPrototype
{
public ObjectPrototype() { }
public bool HasOwnProperty(dynamic V)
{
throw new System.NotImplementedException();
}
public bool IsPrototypeOf(dynamic V)
{
throw new System.NotImplementedException();
}
public bool PropertyIsEnumerable(dynamic V)
{
throw new System.NotImplementedException();
}
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
{
throw new System.NotImplementedException();
}
public override string ToString()
{
throw new System.NotImplementedException();
}
public dynamic ValueOf()
{
throw new System.NotImplementedException();
}
//For emulation "Bracket notation"
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors#bracket_notation
public Object this[string property]
{
get
{
throw new System.NotImplementedException();
}
set
{
throw new System.NotImplementedException();
}
}
}