-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChar.cs
41 lines (36 loc) · 1.1 KB
/
Char.cs
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
#pragma warning disable 0660
#pragma warning disable 0661
using System;
using System.Collections.Generic;
using JSIL.Meta;
using JSIL.Proxy;
namespace JSIL.Proxies {
[JSProxy(
typeof(char),
JSProxyMemberPolicy.ReplaceDeclared
)]
public abstract class CharProxy {
[JSReplacement("$c.toLowerCase()")]
[JSIsPure]
public static char ToLower (char c) {
throw new InvalidOperationException();
}
// FIXME: Are ECMAScript strings always normalized?
[JSReplacement("$c.toLowerCase()")]
[JSIsPure]
public static char ToLowerInvariant (char c) {
throw new InvalidOperationException();
}
[JSReplacement("$c.toUpperCase()")]
[JSIsPure]
public static char ToUpper (char c) {
throw new InvalidOperationException();
}
// FIXME: Are ECMAScript strings always normalized?
[JSReplacement("$c.toUpperCase()")]
[JSIsPure]
public static char ToUpperInvariant (char c) {
throw new InvalidOperationException();
}
}
}