-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathArray.cs
More file actions
195 lines (189 loc) · 5 KB
/
Array.cs
File metadata and controls
195 lines (189 loc) · 5 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
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
using System;
using System.Collections.Generic;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//https://262.ecma-international.org/14.0/#sec-array-objects
[To(ToAttribute.Default)]
public partial class Array : ArrayPrototype
{
[To(ToAttribute.FirstCharToLowerCase)]
public static ArrayPrototype Prototype { get; } = new();
[To(ToAttribute.FirstCharToLowerCase)]
public int Length { get; } = 0;
public Array(params dynamic[] values)
{
throw new System.NotImplementedException();
}
//Todo! Function for mapfn?
[To(ToAttribute.FirstCharToLowerCase)]
public static Array From(dynamic items, Action<dynamic>? mapfn = null, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static bool IsArray(dynamic arg)
{
throw new System.NotImplementedException();
}
[To(ToAttribute.FirstCharToLowerCase)]
public static Array Of(params dynamic[] items)
{
throw new System.NotImplementedException();
}
}
[To(ToAttribute.FirstCharToLowerCase)]
public partial class ArrayPrototype : FunctionPrototype
{
public ArrayPrototype() { }
public dynamic? At(int index)
{
throw new System.NotImplementedException();
}
public Array CopyWithin(dynamic target, int start,int end = 0)
{
throw new System.NotImplementedException();
}
public List<dynamic> Entries()
{
throw new System.NotImplementedException();
}
public bool Every(Action callbackfn, dynamic? thisArg = null )
{
throw new System.NotImplementedException();
}
public Array Fill(dynamic value, int start = 0, int end = 0 )
{
throw new System.NotImplementedException();
}
public Array Filter(Action callbackfn, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public dynamic? Find(Action predicate, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public int FindIndex(Action predicate, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public dynamic? FindLast(Action predicate, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public int FindLastIndex(Action predicate, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public Array Flat(int depth = 1 )
{
throw new System.NotImplementedException();
}
public Array FlatMap(Action mapperFunction, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public GlobalObject.Undefined ForEach(Action callbackfn, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public bool Includes(dynamic searchElement, int fromIndex = 0)
{
throw new System.NotImplementedException();
}
public int IndexOf(dynamic searchElement, int fromIndex = 0)
{
throw new System.NotImplementedException();
}
public string Join(string separator = ",")
{
throw new System.NotImplementedException();
}
public List<dynamic> Keys()
{
throw new System.NotImplementedException();
}
public int LastIndexOf(dynamic searchElement, int fromIndex = 0)
{
throw new System.NotImplementedException();
}
public Array Map(Action callbackfn,dynamic? thisArg = null )
{
throw new System.NotImplementedException();
}
public dynamic Pop()
{
throw new System.NotImplementedException();
}
public int Push(params dynamic[] tems )
{
throw new System.NotImplementedException();
}
public dynamic Reduce(Action callbackfn, dynamic? initialValue = null)
{
throw new System.NotImplementedException();
}
public dynamic ReduceRight(Action callbackfn, dynamic? initialValue = null)
{
throw new System.NotImplementedException();
}
public Array Reverse()
{
throw new System.NotImplementedException();
}
public dynamic? Shift()
{
throw new System.NotImplementedException();
}
public Array Slice(int start = 0, int end = 0 )
{
throw new System.NotImplementedException();
}
public bool Some(Action callbackfn, dynamic? thisArg = null )
{
throw new System.NotImplementedException();
}
public Array Sort(Action comparefn )
{
throw new System.NotImplementedException();
}
public Array Splice(int start, int deleteCount, params dynamic[] items )
{
throw new System.NotImplementedException();
}
/*
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
{
throw new System.NotImplementedException();
}*/
public Array ToReversed()
{
throw new System.NotImplementedException();
}
public Array ToSorted(Action comparefn )
{
throw new System.NotImplementedException();
}
public Array ToSpliced(int start, int skipCount,params dynamic[] items )
{
throw new System.NotImplementedException();
}
public new string ToString()
{
throw new System.NotImplementedException();
}
public int Unshift(params dynamic[] items )
{
throw new System.NotImplementedException();
}
public List<dynamic> Values()
{
throw new System.NotImplementedException();
}
public Array With(int index, dynamic value )
{
throw new System.NotImplementedException();
}
}