-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFunction.cs
More file actions
54 lines (43 loc) · 1.31 KB
/
Function.cs
File metadata and controls
54 lines (43 loc) · 1.31 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
//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-function-objects
[To(ToAttribute.Default)]
public partial class Function : FunctionPrototype
{
[To(ToAttribute.FirstCharToLowerCase)]
public int Length { get; } = 1;
[To(ToAttribute.FirstCharToLowerCase)]
public string Name { get; } = string.Empty;
[To(ToAttribute.FirstCharToLowerCase)]
public static FunctionPrototype Prototype { get; } = new();
//see note!
//https://262.ecma-international.org/14.0/#sec-function-p1-p2-pn-body
[To(ToAttribute.Default)]
public Function(string parameterArgs, string bodyArg)
{
}
}
[To(ToAttribute.FirstCharToLowerCase)]
public partial class FunctionPrototype : ObjectPrototype
{
public FunctionPrototype() { }
public static dynamic Apply(dynamic thisArg, dynamic argArray)
{
throw new System.NotImplementedException();
}
public static dynamic Bind(dynamic thisArg, params dynamic[] args)
{
throw new System.NotImplementedException();
}
public static dynamic Call(dynamic thisArg, params dynamic[] args)
{
throw new System.NotImplementedException();
}
[Value("toString")]
public static string ToStringStatic()
{
throw new System.NotImplementedException();
}
}