-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMap.cs
More file actions
68 lines (62 loc) · 1.78 KB
/
Map.cs
File metadata and controls
68 lines (62 loc) · 1.78 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
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
using System;
using System.Collections.Generic;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//TODO? Generic variant? or replace with generic???
//That way, I can replace the Dictionary in the generated cs. See GenCSharpLib.
//Or, I cant...
//spec: https://w3c.github.io/clipboard-apis/#dom-clipboarditem-clipboarditem
//mdn js: https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem
//First parameter is an object in js, but in webidl is a record...
//https://262.ecma-international.org/14.0/#sec-map-objects
[To(ToAttribute.Default)]
public partial class Map : MapPrototype
{
[To(ToAttribute.FirstCharToLowerCase)]
public static MapPrototype Prototype { get; } = new();
public Map(Array? iterable = default) { }
}
[To(ToAttribute.FirstCharToLowerCase)]
public class MapPrototype : FunctionPrototype
{
public int Size { get; } = 0;
public MapPrototype() { }
public GlobalObject.Undefined Clear()
{
throw new System.NotImplementedException();
}
public bool Delete(dynamic key)
{
throw new System.NotImplementedException();
}
public List<dynamic> Entries()
{
throw new System.NotImplementedException();
}
public GlobalObject.Undefined ForEach(Action callbackfn, dynamic? thisArg = null)
{
throw new System.NotImplementedException();
}
public dynamic? Get(dynamic key)
{
throw new System.NotImplementedException();
}
public bool Has(dynamic key)
{
throw new System.NotImplementedException();
}
public List<dynamic> Keys()
{
throw new System.NotImplementedException();
}
public Map Set(dynamic key, dynamic value)
{
throw new System.NotImplementedException();
}
public List<dynamic> Values()
{
throw new System.NotImplementedException();
}
}