Skip to content

Commit 69d8e39

Browse files
committed
Fixed many warnings.
1 parent 58d4991 commit 69d8e39

13 files changed

Lines changed: 353 additions & 203 deletions

File tree

CSharpToJavaScript/APIs/JS/Ecma/Array.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public Array Splice(int start, int deleteCount, params dynamic[] items )
160160
{
161161
throw new System.NotImplementedException();
162162
}
163-
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
163+
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
164164
{
165165
throw new System.NotImplementedException();
166166
}
@@ -176,7 +176,7 @@ public Array ToSpliced(int start, int skipCount,params dynamic[] items )
176176
{
177177
throw new System.NotImplementedException();
178178
}
179-
public string ToString()
179+
public new string ToString()
180180
{
181181
throw new System.NotImplementedException();
182182
}

CSharpToJavaScript/APIs/JS/Ecma/BigInt.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ public class BigIntPrototype : FunctionPrototype
3030
{
3131
public BigIntPrototype() { }
3232

33-
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
33+
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
3434
{
3535
throw new System.NotImplementedException();
3636
}
3737
public string ToString(Number? radix = null)
3838
{
3939
throw new System.NotImplementedException();
4040
}
41-
public BigInt ValueOf()
41+
public new BigInt ValueOf()
4242
{
4343
throw new System.NotImplementedException();
4444
}

CSharpToJavaScript/APIs/JS/Ecma/Boolean.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CSharpToJavaScript.APIs.JS.Ecma;
88
[To(ToAttribute.Default)]
99
public partial class Boolean : BooleanPrototype
1010
{
11-
public dynamic Value { get; set; }
11+
public dynamic? Value { get; set; }
1212

1313
public static implicit operator Boolean(bool value) { return new Boolean(value) { Value = value }; }
1414
public static implicit operator bool(Boolean value) { return new Boolean(value) { Value = value }; }
@@ -24,12 +24,12 @@ public partial class BooleanPrototype : FunctionPrototype
2424

2525
public BooleanPrototype() { }
2626

27-
public string ToString()
27+
public new string ToString()
2828
{
2929
throw new System.NotImplementedException();
3030
}
3131

32-
public bool ValueOf()
32+
public new bool ValueOf()
3333
{
3434
throw new System.NotImplementedException();
3535
}

CSharpToJavaScript/APIs/JS/Ecma/Date.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public string ToLocaleDateString(dynamic? reserved1 = null, dynamic? reserved2 =
223223
throw new System.NotImplementedException();
224224
}
225225

226-
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
226+
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
227227
{
228228
throw new System.NotImplementedException();
229229
}
@@ -233,7 +233,7 @@ public string ToLocaleTimeString(dynamic? reserved1 = null, dynamic? reserved2 =
233233
throw new System.NotImplementedException();
234234
}
235235

236-
public string ToString()
236+
public new string ToString()
237237
{
238238
throw new System.NotImplementedException();
239239
}
@@ -248,7 +248,7 @@ public string ToUTCString()
248248
throw new System.NotImplementedException();
249249
}
250250

251-
public float ValueOf()
251+
public new float ValueOf()
252252
{
253253
throw new System.NotImplementedException();
254254
}

CSharpToJavaScript/APIs/JS/Ecma/Error.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ErrorPrototype : FunctionPrototype
2727
public string Message { get; set; } = string.Empty;
2828
public string Name { get; set; } = "Error";
2929
public ErrorPrototype() { }
30-
public string ToString()
30+
public new string ToString()
3131
{
3232
throw new NotImplementedException();
3333
}

CSharpToJavaScript/APIs/JS/Ecma/Function.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public dynamic Call(dynamic thisArg, params dynamic[] args)
4444
{
4545
throw new System.NotImplementedException();
4646
}
47-
public string ToString()
47+
public new string ToString()
4848
{
4949
throw new System.NotImplementedException();
5050
}

CSharpToJavaScript/APIs/JS/Ecma/Number.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace CSharpToJavaScript.APIs.JS.Ecma;
99
[To(ToAttribute.Default)]
1010
public partial class Number : NumberPrototype
1111
{
12-
public dynamic Value { get; set; }
12+
public dynamic? Value { get; set; }
1313

1414
public static implicit operator Number(double value) { return new Number { Value = value }; }
1515
public static implicit operator Number(int value) { return new Number { Value = value }; }
@@ -80,7 +80,7 @@ public string ToFixed(dynamic fractionDigits)
8080
{
8181
throw new System.NotImplementedException();
8282
}
83-
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
83+
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
8484
{
8585
throw new System.NotImplementedException();
8686
}
@@ -92,7 +92,7 @@ public string ToString(dynamic? radix = null)
9292
{
9393
throw new System.NotImplementedException();
9494
}
95-
public float ValueOf()
95+
public new float ValueOf()
9696
{
9797
throw new System.NotImplementedException();
9898
}

CSharpToJavaScript/APIs/JS/Ecma/Object.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = nul
178178
throw new System.NotImplementedException();
179179
}
180180

181-
public string ToString()
181+
public override string ToString()
182182
{
183183
throw new System.NotImplementedException();
184184
}
185185

186-
public dynamic ValueOf()
186+
public virtual dynamic ValueOf()
187187
{
188188
throw new System.NotImplementedException();
189189
}

CSharpToJavaScript/APIs/JS/Ecma/RegExp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public RegExp([StringSyntax(StringSyntaxAttribute.Regex)] string pattern, string
2222
public class RegExpPrototype : FunctionPrototype
2323
{
2424
public bool DotAll { get; }
25-
public string Flags { get; }
25+
public string Flags { get; } = string.Empty;
2626
public bool Global { get; }
2727
public bool HasIndices { get; }
2828
public bool IgnoreCase { get; }
2929
public bool Multiline { get; }
30-
public string Source { get; }
30+
public string Source { get; } = string.Empty;
3131
public bool Sticky { get; }
3232
public bool Unicode { get; }
3333

@@ -43,7 +43,7 @@ public bool Test(string S)
4343
throw new System.NotImplementedException();
4444
}
4545

46-
public string ToString()
46+
public new string ToString()
4747
{
4848
throw new System.NotImplementedException();
4949
}

CSharpToJavaScript/APIs/JS/Ecma/String.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CSharpToJavaScript.APIs.JS.Ecma;
1010
[To(ToAttribute.Default)]
1111
public partial class String : StringPrototype
1212
{
13-
public dynamic Value { get; set; }
13+
public dynamic? Value { get; set; }
1414

1515
public static implicit operator String(string value) { return new String(value) { Value = value }; }
1616
public static implicit operator string(String value) { return new String(value) { Value = value }; }
@@ -84,7 +84,7 @@ public bool LastIndexOf(string searchString, int position = 0 )
8484
{
8585
throw new System.NotImplementedException();
8686
}
87-
public int LocaleCompare(string that, dynamic reserved1 = null, dynamic reserved2 = null )
87+
public int LocaleCompare(string that, dynamic? reserved1 = null, dynamic? reserved2 = null )
8888
{
8989
throw new System.NotImplementedException();
9090
}
@@ -152,7 +152,7 @@ public string ToLowerCase()
152152
{
153153
throw new System.NotImplementedException();
154154
}
155-
public string ToString()
155+
public new string ToString()
156156
{
157157
throw new System.NotImplementedException();
158158
}
@@ -172,7 +172,7 @@ public string TrimStart()
172172
{
173173
throw new System.NotImplementedException();
174174
}
175-
public String ValueOf()
175+
public new String ValueOf()
176176
{
177177
throw new System.NotImplementedException();
178178
}

0 commit comments

Comments
 (0)