Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates to tests. Additional tests added

  • Loading branch information...
commit 06bdd59be85642f63717b35237af98020eadd62d 1 parent a43849e
@flaub authored
Showing with 2,571 additions and 830 deletions.
  1. +6 −5 test/DotWeb.Functional.Test/Client/DictionaryTest.cs
  2. +4 −0 test/DotWeb.Translator.Test/ConditionalsTest.cs
  3. +4 −0 test/DotWeb.Translator.Test/ConditionalsTestDebug.cs
  4. +8 −0 test/DotWeb.Translator.Test/DotWeb.Translator.Test.csproj
  5. +1 −1  test/DotWeb.Translator.Test/Expected/Arrays/CreateArrayOfArrays.js
  6. +1 −1  test/DotWeb.Translator.Test/Expected/Arrays/CreateStringArray.js
  7. +2 −5 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/IfNotAndCall.js
  8. +17 −3 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/ReturnNestedTernary.js
  9. +7 −3 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/ReturnTernary.js
  10. +10 −3 test/DotWeb.Translator.Test/Expected/Conditionals/ReturnNestedTernary.js
  11. +4 −3 test/DotWeb.Translator.Test/Expected/Conditionals/ReturnTernary.js
  12. +1 −1  test/DotWeb.Translator.Test/Expected/DecorationTest/TestJsAnonymous.js
  13. +2 −2 test/DotWeb.Translator.Test/Expected/DecorationTest/TestJsNamespace.js
  14. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/AnonymousType.js
  15. +44 −66 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ArgumentException.js
  16. +3 −3 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CallDerived.js
  17. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CallTakeParameters.js
  18. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Callback.js
  19. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ClientScript.js
  20. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CreateInnerObject.js
  21. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CreateOuterObject.js
  22. +5 −5 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ExpectExceptionTest.js
  23. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/GitHub_Issue4.js
  24. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/GitHub_Issue5.js
  25. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Indexer.js
  26. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Linq.js
  27. +2 −5 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ParseDecimal.js
  28. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/TestGenericNested.js
  29. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/AnonymousType.js
  30. +44 −66 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ArgumentException.js
  31. +3 −3 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CallDerived.js
  32. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CallTakeParameters.js
  33. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Callback.js
  34. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ClientScript.js
  35. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CreateInnerObject.js
  36. +2 −2 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CreateOuterObject.js
  37. +5 −5 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ExpectExceptionTest.js
  38. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/GitHub_Issue4.js
  39. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/GitHub_Issue5.js
  40. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Indexer.js
  41. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Linq.js
  42. +36 −50 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/StringFormat.js
  43. +716 −0 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/TestDictionaryEnumerator.js
  44. +1 −1  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/TestGenericNested.js
  45. +12 −0 test/DotWeb.Translator.Test/Expected/Loops/HeaderExitAndLatchExit1.js
  46. +12 −0 test/DotWeb.Translator.Test/Expected/Loops/HeaderExitAndLatchExit2.js
  47. +12 −0 test/DotWeb.Translator.Test/Expected/Loops/HeaderExitAndLatchExit3.js
  48. +191 −0 test/DotWeb.Translator.Test/Expected/Loops/MultiReturns3.js
  49. +342 −0 test/DotWeb.Translator.Test/Expected/SystemTest/TestDictionary.js
  50. +1 −1  test/DotWeb.Translator.Test/Expected/SystemTest/TestGenericMethod.js
  51. +64 −0 test/DotWeb.Translator.Test/Expected/SystemTest/TestKeyValuePair.js
  52. +4 −7 test/DotWeb.Translator.Test/Expected/SystemTest/TestList.js
  53. +7 −10 test/DotWeb.Translator.Test/Expected/SystemTest/TestListEnumerator.js
  54. +13 −16 test/DotWeb.Translator.Test/Expected/SystemTest/TestString.js
  55. +129 −0 test/DotWeb.Translator.Test/Expected/SystemTest/TestStringBuilderAppend5.js
  56. +2 −0  test/DotWeb.Translator.Test/GeneralTests.cs
  57. +8 −0 test/DotWeb.Translator.Test/LoopsTest.cs
  58. +89 −75 test/DotWeb.Translator.Test/Resources/General.Designer.cs
  59. +3 −0  test/DotWeb.Translator.Test/Resources/General.resx
  60. +92 −0 test/DotWeb.Translator.Test/Resources/Loops.Designer.cs
  61. +12 −0 test/DotWeb.Translator.Test/Resources/Loops.resx
  62. +502 −434 test/DotWeb.Translator.Test/Resources/SystemTestData.Designer.cs
  63. +9 −0 test/DotWeb.Translator.Test/Resources/SystemTestData.resx
  64. +6 −0 test/DotWeb.Translator.Test/Script/GeneralTests.cs
  65. +37 −0 test/DotWeb.Translator.Test/Script/Loops.cs
  66. +16 −0 test/DotWeb.Translator.Test/Script/SystemTest.cs
  67. +9 −0 test/DotWeb.Translator.Test/SystemTest.cs
  68. +42 −25 test/DotWeb.Translator.Test/TypeSystemTest.cs
View
11 test/DotWeb.Functional.Test/Client/DictionaryTest.cs
@@ -12,7 +12,7 @@ class DictionaryTest : JsScript
var sandbox = Document.getElementById("sandbox");
this.view = new TestResultView(sandbox);
- Log.Write("HashtableTest starting...");
+ Log.Write("DictionaryTest starting...");
try {
RunTest();
@@ -26,10 +26,11 @@ class DictionaryTest : JsScript
var dict = new Dictionary<string, string>();
this.view.AreStringsEqual("empty", "{}", () => dict);
- this.view.AreEqual("hashtable.Count == 0", 0, () => dict.Count);
-
- dict.Add("key", "value");
- this.view.AreStringsEqual("hashtable.Add(\"key\", \"value\")", "", () => dict);
+ this.view.AreEqual("dict.Count == 0", 0, () => dict.Count);
+ this.view.AreStringsEqual("dict.Add(\"key\", \"value\")", "", () => {
+ dict.Add("key", "value");
+ return dict;
+ });
}
}
}
View
4 test/DotWeb.Translator.Test/ConditionalsTest.cs
@@ -80,5 +80,9 @@ public ConditionalsTest()
public void CharLiteralIf() { this.RunTest(); }
[Test]
public void IfCharLiteral() { this.RunTest(); }
+ [Test]
+ public void ReturnTernary() { this.RunTest(); }
+ [Test]
+ public void ReturnNestedTernary() { this.RunTest(); }
}
}
View
4 test/DotWeb.Translator.Test/ConditionalsTestDebug.cs
@@ -80,5 +80,9 @@ public ConditionalsTestDebug()
public void CharLiteralIf() { this.RunTest(); }
[Test]
public void IfCharLiteral() { this.RunTest(); }
+ [Test]
+ public void ReturnTernary() { this.RunTest(); }
+ [Test]
+ public void ReturnNestedTernary() { this.RunTest(); }
}
}
View
8 test/DotWeb.Translator.Test/DotWeb.Translator.Test.csproj
@@ -213,7 +213,15 @@
<Content Include="Expected\GeneralTests\Debug\TryInsideCatch.js" />
<Content Include="Expected\GeneralTests\Release\StringFormat.js" />
<Content Include="Expected\GeneralTests\Release\ParseDecimal.js" />
+ <Content Include="Expected\Loops\HeaderExitAndLatchExit3.js" />
+ <Content Include="Expected\Loops\HeaderExitAndLatchExit2.js" />
+ <Content Include="Expected\Loops\HeaderExitAndLatchExit1.js" />
+ <Content Include="Expected\Loops\MultiReturns3.js" />
<Content Include="Expected\Loops\WhileIfLessOrLessBreak.js" />
+ <Content Include="Expected\GeneralTests\Release\TestDictionaryEnumerator.js" />
+ <Content Include="Expected\SystemTest\TestStringBuilderAppend5.js" />
+ <Content Include="Expected\SystemTest\TestKeyValuePair.js" />
+ <Content Include="Expected\SystemTest\TestDictionary.js" />
<Content Include="Expected\SystemTest\TestCastPrimitive.js" />
<Content Include="Expected\SystemTest\TestCtorChain.js" />
<Content Include="Expected\SystemTest\TestString.js" />
View
2  test/DotWeb.Translator.Test/Expected/Arrays/CreateArrayOfArrays.js
@@ -1,7 +1,7 @@
Arrays.prototype.CreateArrayOfArrays = function() {
var D_0 = [1, 2, 3];
var inner = D_0;
- var CS$0$0000 = new Array(2);
+ var CS$0$0000 = $Array(2, null);
CS$0$0000[0] = inner;
CS$0$0000[1] = inner;
var array = CS$0$0000;
View
2  test/DotWeb.Translator.Test/Expected/Arrays/CreateStringArray.js
@@ -1,5 +1,5 @@
Arrays.prototype.CreateStringArray = function() {
- var CS$0$0000 = new Array(3);
+ var CS$0$0000 = $Array(3, null);
CS$0$0000[0] = "one";
CS$0$0000[1] = "two";
CS$0$0000[2] = "three";
View
7 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/IfNotAndCall.js
@@ -8,10 +8,7 @@
var CS$4$0001 = R_1;
if (!CS$4$0001) {
this.foundFirst = true;
- var CS$1$0000 = false;
+ return false;
}
- else {
- CS$1$0000 = true;
- }
- return CS$1$0000;
+ return true;
};
View
20 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/ReturnNestedTernary.js
@@ -1,5 +1,19 @@
-H8.GeneralTests.prototype.SimpleIfOr = function(a) {
- if ((a == 12) || (a == 14)) {
- a = 42;
+Conditionals.prototype.ReturnNestedTernary = function(a) {
+ if (a >= 0) {
+ if (a <= 0) {
+ var R_1 = 42;
+ }
+ else {
+ R_1 = 10;
+ }
}
+ else {
+ if (a >= 100) {
+ R_1 = 24;
+ }
+ else {
+ R_1 = 12;
+ }
+ }
+ return R_1;
};
View
10 test/DotWeb.Translator.Test/Expected/Conditionals/Debug/ReturnTernary.js
@@ -1,5 +1,9 @@
-H8.GeneralTests.prototype.SimpleIfOr = function(a) {
- if ((a == 12) || (a == 14)) {
- a = 42;
+Conditionals.prototype.ReturnTernary = function(a) {
+ if (a <= 10) {
+ var R_1 = 42;
}
+ else {
+ R_1 = 12;
+ }
+ return R_1;
};
View
13 test/DotWeb.Translator.Test/Expected/Conditionals/ReturnNestedTernary.js
@@ -1,5 +1,12 @@
-H8.GeneralTests.prototype.SimpleIfOr = function(a) {
- if ((a == 12) || (a == 14)) {
- a = 42;
+Conditionals.prototype.ReturnNestedTernary = function(a) {
+ if (a >= 0) {
+ if (a <= 0) {
+ return 42;
+ }
+ return 10;
}
+ if (a >= 100) {
+ return 24;
+ }
+ return 12;
};
View
7 test/DotWeb.Translator.Test/Expected/Conditionals/ReturnTernary.js
@@ -1,5 +1,6 @@
-H8.GeneralTests.prototype.SimpleIfOr = function(a) {
- if ((a == 12) || (a == 14)) {
- a = 42;
+Conditionals.prototype.ReturnTernary = function(a) {
+ if (a <= 10) {
+ return 42;
}
+ return 12;
};
View
2  test/DotWeb.Translator.Test/Expected/DecorationTest/TestJsAnonymous.js
@@ -13,7 +13,7 @@ H8.DecorationTests.prototype.TestJsAnonymous = function() {
var item = __g__initLocal0;
item.X = item.y;
item.y = item.X;
- var CS$0$0000 = new Array(2);
+ var CS$0$0000 = $Array(2, null);
var __g__initLocal1 = {};
__g__initLocal1.X = 0;
__g__initLocal1.y = 0;
View
4 test/DotWeb.Translator.Test/Expected/DecorationTest/TestJsNamespace.js
@@ -1,4 +1,4 @@
-$Class(null, '', 'DefaultNamespaceTest');
+$Class(null, '', 'DefaultNamespaceTest', { _Value_k__BackingField: 0 });
DefaultNamespaceTest.prototype.$ctor = function() {
return this;
@@ -8,7 +8,7 @@ DefaultNamespaceTest.prototype.set_Value = function(value) {
this._Value_k__BackingField = value;
};
-$Class(null, 'Foo', 'FooNamespaceTest');
+$Class(null, 'Foo', 'FooNamespaceTest', { _Value_k__BackingField: 0 });
Foo.FooNamespaceTest.prototype.$ctor = function() {
return this;
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/AnonymousType.js
@@ -1,4 +1,4 @@
-$Class(null, '', '__f__AnonymousType0$2');
+$Class(null, '', '__f__AnonymousType0$2', { _Key_i__Field: null, _Value_i__Field: null });
__f__AnonymousType0$2.prototype.$ctor = function(Key, Value) {
this._Key_i__Field = Key;
@@ -20,7 +20,7 @@ __f__AnonymousType0$2.prototype.get_Value = function() {
return this._Value_i__Field;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.AnonymousType = function() {
var value = new __f__AnonymousType0$2().$ctor("Hi", 1);
View
110 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ArgumentException.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -16,14 +16,14 @@ System.SystemException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.SystemException, 'System', 'ArgumentException');
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
System.ArgumentException.prototype.$ctor$0 = function() {
this.$super.$ctor$1("Value does not fall within the expected range.");
return this;
};
-$Class(null, 'System.Text', 'StringBuilder');
+$Class(null, 'System.Text', 'StringBuilder', { value: null });
System.Text.StringBuilder.prototype.$ctor = function() {
this.value = "";
@@ -44,20 +44,15 @@ System.Text.StringBuilder.prototype.toString = function() {
System.Text.StringBuilder.prototype.Append$0 = function(value) {
var V_1 = value != null;
if (!V_1) {
- var V_0 = this;
+ return this;
}
- else {
- V_1 = value.length != 0;
- if (!V_1) {
- this.value = value;
- V_0 = this;
- }
- else {
- this.value = this.value + value;
- V_0 = this;
- }
+ V_1 = value.length != 0;
+ if (!V_1) {
+ this.value = value;
+ return this;
}
- return V_0;
+ this.value = this.value + value;
+ return this;
};
System.Exception.prototype.get_InnerException = function() {
@@ -90,7 +85,7 @@ System.ArgumentException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException');
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
(function() {
System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
@@ -135,34 +130,31 @@ System.Text.StringBuilder.prototype.Append$5 = function(value, startIndex, count
if (!V_2) {
throw new System.ArgumentNullException().$ctor$1("value");
}
- var V_1 = this;
+ return this;
+ }
+ if ((count >= 0) && (startIndex >= 0)) {
+ R_1 = startIndex <= (value.length - count);
}
else {
- if ((count >= 0) && (startIndex >= 0)) {
- R_1 = startIndex <= (value.length - count);
- }
- else {
- R_1 = 0;
- }
- V_2 = R_1;
+ R_1 = 0;
+ }
+ V_2 = R_1;
+ if (!V_2) {
+ throw new System.ArgumentOutOfRangeException().$ctor$0();
+ }
+ var V_0 = startIndex;
+ while (true) {
+ V_2 = V_0 < (startIndex + count);
if (!V_2) {
- throw new System.ArgumentOutOfRangeException().$ctor$0();
- }
- var V_0 = startIndex;
- while (true) {
- V_2 = V_0 < (startIndex + count);
- if (!V_2) {
- break;
- }
- this.Append$1(value.charAt(V_0));
- V_0 = V_0 + 1;
+ break;
}
- V_1 = this;
+ this.Append$1(value.charAt(V_0));
+ V_0 = V_0 + 1;
}
- return V_1;
+ return this;
};
-$Class(null, 'System', 'String_FormatSpecifier');
+$Class(null, 'System', 'String_FormatSpecifier', { str: null, ptr: 0, n: 0, width: 0, left_align: 0, format: null });
System.String_FormatSpecifier.prototype.ParseDecimal = function() {
var V_0 = this.ptr;
@@ -185,13 +177,10 @@ System.String_FormatSpecifier.prototype.ParseDecimal = function() {
}
V_4 = V_0 != this.ptr;
if (!V_4) {
- var V_3 = -1;
- }
- else {
- this.ptr = V_0;
- V_3 = V_1;
+ return -1;
}
- return V_3;
+ this.ptr = V_0;
+ return V_1;
};
System.String_FormatSpecifier.prototype.IsWhiteSpace = function() {
@@ -239,12 +228,9 @@ String.prototype._Substring$1 = function(startIndex, length) {
}
V_1 = R_1;
if (!V_1) {
- var V_0 = this;
+ return this;
}
- else {
- V_0 = this.substring(startIndex, startIndex + length);
- }
- return V_0;
+ return this.substring(startIndex, startIndex + length);
};
$Class(System.SystemException, 'System', 'IndexOutOfRangeException');
@@ -439,7 +425,7 @@ String.formatHelper = function(result, format, args) {
};
String.format$0 = function(format, arg0) {
- var V_2 = new Array(1);
+ var V_2 = $Array(1, null);
V_2[0] = arg0;
var V_0 = String.formatHelper(null, format, V_2);
return V_0.toString();
@@ -467,12 +453,9 @@ System.ArgumentException.prototype.get_Message = function() {
}
var V_2 = R_1;
if (!V_2) {
- var V_1 = V_0 + "\nParameter name: " + this.get_ParamName();
+ return V_0 + "\nParameter name: " + this.get_ParamName();
}
- else {
- V_1 = V_0;
- }
- return V_1;
+ return V_0;
};
System.ArgumentOutOfRangeException.prototype.get_ActualValue = function() {
@@ -483,19 +466,14 @@ System.ArgumentOutOfRangeException.prototype.get_Message = function() {
var V_0 = this.$super.get_Message();
var V_3 = this.get_ActualValue() != null;
if (!V_3) {
- var V_2 = V_0;
+ return V_0;
}
- else {
- var V_1 = "Actual value was " + this.get_ActualValue().toString();
- V_3 = V_0 != null;
- if (!V_3) {
- V_2 = V_1;
- }
- else {
- V_2 = V_0 + "\n" + V_1;
- }
+ var V_1 = "Actual value was " + this.get_ActualValue().toString();
+ V_3 = V_0 != null;
+ if (!V_3) {
+ return V_1;
}
- return V_2;
+ return V_0 + "\n" + V_1;
};
$Class(null, 'System', 'Console');
@@ -504,7 +482,7 @@ System.Console.WriteLine$1 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.ArgumentException = function() {
try {
View
6 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CallDerived.js
@@ -1,6 +1,6 @@
-$Class(null, 'H8', 'Base');
+$Class(null, 'H8', 'Base', { _X_k__BackingField: 0 });
-$Class(H8.Base, 'H8', 'Derived');
+$Class(H8.Base, 'H8', 'Derived', { id: 0 });
(function() {
H8.Derived.counter = 0;
@@ -29,7 +29,7 @@ H8.Derived.prototype.DerviedMethod = function() {
this.BaseMethod();
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CallDerived = function() {
var derived = new H8.Derived().$ctor$0();
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CallTakeParameters.js
@@ -4,7 +4,7 @@ System.Console.WriteLine$1 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.TakeParameters = function(str, value, rad, flag) {
System.Console.WriteLine$1(str);
@@ -17,7 +17,7 @@ System.Console.WriteLine$0 = function(value) {
};
H8.GeneralTests.prototype.CallTakeParameters = function() {
- var CS$0$0000 = new Array(2);
+ var CS$0$0000 = $Array(2, 0);
CS$0$0000[0] = 1;
CS$0$0000[1] = 2;
var result = this.TakeParameters("Hi", 1, CS$0$0000, true);
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Callback.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -23,7 +23,7 @@ System.NotImplementedException.prototype.$ctor$0 = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.SourceTests_SimpleEvent = function() {
throw new System.NotImplementedException().$ctor$0();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ClientScript.js
@@ -25,7 +25,7 @@ H8.GeneralTests_ClientScriptClass.prototype.$ctor = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.ClientScript = function() {
new H8.GeneralTests_ClientScriptClass().$ctor();
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CreateInnerObject.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests_InnerClassTest');
+$Class(null, 'H8', 'GeneralTests_InnerClassTest', { _Text_k__BackingField: null, _Value_k__BackingField: 0 });
H8.GeneralTests_InnerClassTest.prototype.set_Text = function(value) {
this._Text_k__BackingField = value;
@@ -36,7 +36,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CreateInnerObject = function() {
var test1 = new H8.GeneralTests_InnerClassTest().$ctor$1("Test1", 1);
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/CreateOuterObject.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'OuterClassTest');
+$Class(null, 'H8', 'OuterClassTest', { m_value: 0, _Text_k__BackingField: null });
H8.OuterClassTest.prototype.set_Text = function(value) {
this._Text_k__BackingField = value;
@@ -36,7 +36,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CreateOuterObject = function() {
var test1 = new H8.OuterClassTest().$ctor$1("Test1", 1);
View
10 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ExpectExceptionTest.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -16,14 +16,14 @@ System.SystemException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.SystemException, 'System', 'ArgumentException');
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
System.ArgumentException.prototype.$ctor$1 = function(message) {
this.$super.$ctor$1(message);
return this;
};
-$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException');
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
(function() {
System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
@@ -34,7 +34,7 @@ System.ArgumentOutOfRangeException.prototype.$ctor$0 = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._ExpectExceptionTest_b__4 = function() {
throw new System.ArgumentOutOfRangeException().$ctor$0();
@@ -71,8 +71,8 @@ H8.GeneralTests.prototype.ExpectException = function(name, action) {
};
H8.GeneralTests.prototype.ExpectExceptionTest = function() {
- var R_1 = this;
var R_2 = "System.ArgumentOutOfRangeException";
+ var R_1 = this;
if (!H8.GeneralTests.CS$__9__CachedAnonymousMethodDelegate5) {
H8.GeneralTests.CS$__9__CachedAnonymousMethodDelegate5 = $Delegate(H8.GeneralTests, H8.GeneralTests._ExpectExceptionTest_b__4);
}
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/GitHub_Issue4.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._GitHub_Issue4_b__2 = function() {
$wnd.alert("test");
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/GitHub_Issue5.js
@@ -17,7 +17,7 @@ GitHub_Issue5.Class1.prototype.$ctor = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.GitHub_Issue5 = function() {
new GitHub_Issue5.Class1().$ctor();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Indexer.js
@@ -10,7 +10,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.Indexer = function() {
var indexer = new H8.IndexerTest().$ctor();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/Linq.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._Linq_b__2 = function(ch /*System.Char*/) {
return System.Char.IsDigit(ch);
View
7 test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/ParseDecimal.js
@@ -19,10 +19,7 @@
}
CS$4$0001 = p != ptr;
if (!CS$4$0001) {
- var CS$1$0000 = -1;
+ return -1;
}
- else {
- CS$1$0000 = n;
- }
- return CS$1$0000;
+ return n;
};
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Debug/TestGenericNested.js
@@ -51,7 +51,7 @@ H8.Generic$1.prototype.Foo = function() {
y.Foo();
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.TestGenericNested = function() {
var x = new H8.Generic$1().$ctor();
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/AnonymousType.js
@@ -1,4 +1,4 @@
-$Class(null, '', '__f__AnonymousType0$2');
+$Class(null, '', '__f__AnonymousType0$2', { _Key_i__Field: null, _Value_i__Field: null });
__f__AnonymousType0$2.prototype.$ctor = function(Key, Value) {
this._Key_i__Field = Key;
@@ -20,7 +20,7 @@ __f__AnonymousType0$2.prototype.get_Value = function() {
return this._Value_i__Field;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.AnonymousType = function() {
var value = new __f__AnonymousType0$2().$ctor("Hi", 1);
View
110 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ArgumentException.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -16,14 +16,14 @@ System.SystemException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.SystemException, 'System', 'ArgumentException');
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
System.ArgumentException.prototype.$ctor$0 = function() {
this.$super.$ctor$1("Value does not fall within the expected range.");
return this;
};
-$Class(null, 'System.Text', 'StringBuilder');
+$Class(null, 'System.Text', 'StringBuilder', { value: null });
System.Text.StringBuilder.prototype.$ctor = function() {
this.value = "";
@@ -44,20 +44,15 @@ System.Text.StringBuilder.prototype.toString = function() {
System.Text.StringBuilder.prototype.Append$0 = function(value) {
var V_1 = value != null;
if (!V_1) {
- var V_0 = this;
+ return this;
}
- else {
- V_1 = value.length != 0;
- if (!V_1) {
- this.value = value;
- V_0 = this;
- }
- else {
- this.value = this.value + value;
- V_0 = this;
- }
+ V_1 = value.length != 0;
+ if (!V_1) {
+ this.value = value;
+ return this;
}
- return V_0;
+ this.value = this.value + value;
+ return this;
};
System.Exception.prototype.get_InnerException = function() {
@@ -90,7 +85,7 @@ System.ArgumentException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException');
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
(function() {
System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
@@ -135,34 +130,31 @@ System.Text.StringBuilder.prototype.Append$5 = function(value, startIndex, count
if (!V_2) {
throw new System.ArgumentNullException().$ctor$1("value");
}
- var V_1 = this;
+ return this;
+ }
+ if ((count >= 0) && (startIndex >= 0)) {
+ R_1 = startIndex <= (value.length - count);
}
else {
- if ((count >= 0) && (startIndex >= 0)) {
- R_1 = startIndex <= (value.length - count);
- }
- else {
- R_1 = 0;
- }
- V_2 = R_1;
+ R_1 = 0;
+ }
+ V_2 = R_1;
+ if (!V_2) {
+ throw new System.ArgumentOutOfRangeException().$ctor$0();
+ }
+ var V_0 = startIndex;
+ while (true) {
+ V_2 = V_0 < (startIndex + count);
if (!V_2) {
- throw new System.ArgumentOutOfRangeException().$ctor$0();
- }
- var V_0 = startIndex;
- while (true) {
- V_2 = V_0 < (startIndex + count);
- if (!V_2) {
- break;
- }
- this.Append$1(value.charAt(V_0));
- V_0 = V_0 + 1;
+ break;
}
- V_1 = this;
+ this.Append$1(value.charAt(V_0));
+ V_0 = V_0 + 1;
}
- return V_1;
+ return this;
};
-$Class(null, 'System', 'String_FormatSpecifier');
+$Class(null, 'System', 'String_FormatSpecifier', { str: null, ptr: 0, n: 0, width: 0, left_align: 0, format: null });
System.String_FormatSpecifier.prototype.ParseDecimal = function() {
var V_0 = this.ptr;
@@ -185,13 +177,10 @@ System.String_FormatSpecifier.prototype.ParseDecimal = function() {
}
V_4 = V_0 != this.ptr;
if (!V_4) {
- var V_3 = -1;
- }
- else {
- this.ptr = V_0;
- V_3 = V_1;
+ return -1;
}
- return V_3;
+ this.ptr = V_0;
+ return V_1;
};
System.String_FormatSpecifier.prototype.IsWhiteSpace = function() {
@@ -239,12 +228,9 @@ String.prototype._Substring$1 = function(startIndex, length) {
}
V_1 = R_1;
if (!V_1) {
- var V_0 = this;
+ return this;
}
- else {
- V_0 = this.substring(startIndex, startIndex + length);
- }
- return V_0;
+ return this.substring(startIndex, startIndex + length);
};
$Class(System.SystemException, 'System', 'IndexOutOfRangeException');
@@ -439,7 +425,7 @@ String.formatHelper = function(result, format, args) {
};
String.format$0 = function(format, arg0) {
- var V_2 = new Array(1);
+ var V_2 = $Array(1, null);
V_2[0] = arg0;
var V_0 = String.formatHelper(null, format, V_2);
return V_0.toString();
@@ -467,12 +453,9 @@ System.ArgumentException.prototype.get_Message = function() {
}
var V_2 = R_1;
if (!V_2) {
- var V_1 = V_0 + "\nParameter name: " + this.get_ParamName();
+ return V_0 + "\nParameter name: " + this.get_ParamName();
}
- else {
- V_1 = V_0;
- }
- return V_1;
+ return V_0;
};
System.ArgumentOutOfRangeException.prototype.get_ActualValue = function() {
@@ -483,19 +466,14 @@ System.ArgumentOutOfRangeException.prototype.get_Message = function() {
var V_0 = this.$super.get_Message();
var V_3 = this.get_ActualValue() != null;
if (!V_3) {
- var V_2 = V_0;
+ return V_0;
}
- else {
- var V_1 = "Actual value was " + this.get_ActualValue().toString();
- V_3 = V_0 != null;
- if (!V_3) {
- V_2 = V_1;
- }
- else {
- V_2 = V_0 + "\n" + V_1;
- }
+ var V_1 = "Actual value was " + this.get_ActualValue().toString();
+ V_3 = V_0 != null;
+ if (!V_3) {
+ return V_1;
}
- return V_2;
+ return V_0 + "\n" + V_1;
};
$Class(null, 'System', 'Console');
@@ -504,7 +482,7 @@ System.Console.WriteLine$1 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.ArgumentException = function() {
try {
View
6 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CallDerived.js
@@ -1,6 +1,6 @@
-$Class(null, 'H8', 'Base');
+$Class(null, 'H8', 'Base', { _X_k__BackingField: 0 });
-$Class(H8.Base, 'H8', 'Derived');
+$Class(H8.Base, 'H8', 'Derived', { id: 0 });
(function() {
H8.Derived.counter = 0;
@@ -29,7 +29,7 @@ H8.Derived.prototype.DerviedMethod = function() {
this.BaseMethod();
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CallDerived = function() {
var derived = new H8.Derived().$ctor$0();
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CallTakeParameters.js
@@ -4,7 +4,7 @@ System.Console.WriteLine$1 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.TakeParameters = function(str, value, rad, flag) {
System.Console.WriteLine$1(str);
@@ -17,7 +17,7 @@ System.Console.WriteLine$0 = function(value) {
};
H8.GeneralTests.prototype.CallTakeParameters = function() {
- var CS$0$0000 = new Array(2);
+ var CS$0$0000 = $Array(2, 0);
CS$0$0000[0] = 1;
CS$0$0000[1] = 2;
var result = this.TakeParameters("Hi", 1, CS$0$0000, true);
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Callback.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -23,7 +23,7 @@ System.NotImplementedException.prototype.$ctor$0 = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.SourceTests_SimpleEvent = function() {
throw new System.NotImplementedException().$ctor$0();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ClientScript.js
@@ -25,7 +25,7 @@ H8.GeneralTests_ClientScriptClass.prototype.$ctor = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.ClientScript = function() {
new H8.GeneralTests_ClientScriptClass().$ctor();
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CreateInnerObject.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests_InnerClassTest');
+$Class(null, 'H8', 'GeneralTests_InnerClassTest', { _Text_k__BackingField: null, _Value_k__BackingField: 0 });
H8.GeneralTests_InnerClassTest.prototype.set_Text = function(value) {
this._Text_k__BackingField = value;
@@ -36,7 +36,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CreateInnerObject = function() {
var test1 = new H8.GeneralTests_InnerClassTest().$ctor$1("Test1", 1);
View
4 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/CreateOuterObject.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'OuterClassTest');
+$Class(null, 'H8', 'OuterClassTest', { m_value: 0, _Text_k__BackingField: null });
H8.OuterClassTest.prototype.set_Text = function(value) {
this._Text_k__BackingField = value;
@@ -36,7 +36,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.CreateOuterObject = function() {
var test1 = new H8.OuterClassTest().$ctor$1("Test1", 1);
View
10 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/ExpectExceptionTest.js
@@ -1,4 +1,4 @@
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -16,14 +16,14 @@ System.SystemException.prototype.$ctor$1 = function(message) {
return this;
};
-$Class(System.SystemException, 'System', 'ArgumentException');
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
System.ArgumentException.prototype.$ctor$1 = function(message) {
this.$super.$ctor$1(message);
return this;
};
-$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException');
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
(function() {
System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
@@ -34,7 +34,7 @@ System.ArgumentOutOfRangeException.prototype.$ctor$0 = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._ExpectExceptionTest_b__4 = function() {
throw new System.ArgumentOutOfRangeException().$ctor$0();
@@ -70,8 +70,8 @@ H8.GeneralTests.prototype.ExpectException = function(name, action) {
};
H8.GeneralTests.prototype.ExpectExceptionTest = function() {
- var R_1 = this;
var R_2 = "System.ArgumentOutOfRangeException";
+ var R_1 = this;
if (!H8.GeneralTests.CS$__9__CachedAnonymousMethodDelegate5) {
H8.GeneralTests.CS$__9__CachedAnonymousMethodDelegate5 = $Delegate(H8.GeneralTests, H8.GeneralTests._ExpectExceptionTest_b__4);
}
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/GitHub_Issue4.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._GitHub_Issue4_b__2 = function() {
$wnd.alert("test");
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/GitHub_Issue5.js
@@ -17,7 +17,7 @@ GitHub_Issue5.Class1.prototype.$ctor = function() {
return this;
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.GitHub_Issue5 = function() {
new GitHub_Issue5.Class1().$ctor();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Indexer.js
@@ -10,7 +10,7 @@ System.Console.WriteLine$0 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.Indexer = function() {
var indexer = new H8.IndexerTest().$ctor();
View
2  test/DotWeb.Translator.Test/Expected/GeneralTests/Release/Linq.js
@@ -1,4 +1,4 @@
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests._Linq_b__2 = function(ch /*System.Char*/) {
return System.Char.IsDigit(ch);
View
86 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/StringFormat.js
@@ -1,11 +1,11 @@
-$Class(null, 'System.Text', 'StringBuilder');
+$Class(null, 'System.Text', 'StringBuilder', { value: null });
System.Text.StringBuilder.prototype.$ctor = function() {
this.value = "";
return this;
};
-$Class(null, 'System', 'Exception');
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
System.Exception.prototype.set_Message = function(value) {
this.message = value;
@@ -37,20 +37,15 @@ System.Text.StringBuilder.prototype.toString = function() {
System.Text.StringBuilder.prototype.Append$0 = function(value) {
var V_1 = value != null;
if (!V_1) {
- var V_0 = this;
+ return this;
}
- else {
- V_1 = value.length != 0;
- if (!V_1) {
- this.value = value;
- V_0 = this;
- }
- else {
- this.value = this.value + value;
- V_0 = this;
- }
+ V_1 = value.length != 0;
+ if (!V_1) {
+ this.value = value;
+ return this;
}
- return V_0;
+ this.value = this.value + value;
+ return this;
};
System.Exception.prototype.get_Message = function() {
@@ -86,14 +81,14 @@ System.Text.StringBuilder.prototype.Append$1 = function(value) {
return this.Append$0(value.toString());
};
-$Class(System.SystemException, 'System', 'ArgumentException');
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
System.ArgumentException.prototype.$ctor$1 = function(message) {
this.$super.$ctor$1(message);
return this;
};
-$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException');
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
(function() {
System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
@@ -138,34 +133,31 @@ System.Text.StringBuilder.prototype.Append$5 = function(value, startIndex, count
if (!V_2) {
throw new System.ArgumentNullException().$ctor$1("value");
}
- var V_1 = this;
+ return this;
+ }
+ if ((count >= 0) && (startIndex >= 0)) {
+ R_1 = startIndex <= (value.length - count);
}
else {
- if ((count >= 0) && (startIndex >= 0)) {
- R_1 = startIndex <= (value.length - count);
- }
- else {
- R_1 = 0;
- }
- V_2 = R_1;
+ R_1 = 0;
+ }
+ V_2 = R_1;
+ if (!V_2) {
+ throw new System.ArgumentOutOfRangeException().$ctor$0();
+ }
+ var V_0 = startIndex;
+ while (true) {
+ V_2 = V_0 < (startIndex + count);
if (!V_2) {
- throw new System.ArgumentOutOfRangeException().$ctor$0();
- }
- var V_0 = startIndex;
- while (true) {
- V_2 = V_0 < (startIndex + count);
- if (!V_2) {
- break;
- }
- this.Append$1(value.charAt(V_0));
- V_0 = V_0 + 1;
+ break;
}
- V_1 = this;
+ this.Append$1(value.charAt(V_0));
+ V_0 = V_0 + 1;
}
- return V_1;
+ return this;
};
-$Class(null, 'System', 'String_FormatSpecifier');
+$Class(null, 'System', 'String_FormatSpecifier', { str: null, ptr: 0, n: 0, width: 0, left_align: 0, format: null });
System.String_FormatSpecifier.prototype.ParseDecimal = function() {
var V_0 = this.ptr;
@@ -188,13 +180,10 @@ System.String_FormatSpecifier.prototype.ParseDecimal = function() {
}
V_4 = V_0 != this.ptr;
if (!V_4) {
- var V_3 = -1;
- }
- else {
- this.ptr = V_0;
- V_3 = V_1;
+ return -1;
}
- return V_3;
+ this.ptr = V_0;
+ return V_1;
};
System.String_FormatSpecifier.prototype.IsWhiteSpace = function() {
@@ -242,12 +231,9 @@ String.prototype._Substring$1 = function(startIndex, length) {
}
V_1 = R_1;
if (!V_1) {
- var V_0 = this;
- }
- else {
- V_0 = this.substring(startIndex, startIndex + length);
+ return this;
}
- return V_0;
+ return this.substring(startIndex, startIndex + length);
};
$Class(System.SystemException, 'System', 'IndexOutOfRangeException');
@@ -442,7 +428,7 @@ String.formatHelper = function(result, format, args) {
};
String.format$0 = function(format, arg0) {
- var V_2 = new Array(1);
+ var V_2 = $Array(1, null);
V_2[0] = arg0;
var V_0 = String.formatHelper(null, format, V_2);
return V_0.toString();
@@ -454,7 +440,7 @@ System.Console.WriteLine$1 = function(value) {
console.log(value);
};
-$Class(null, 'H8', 'GeneralTests');
+$Class(null, 'H8', 'GeneralTests', { SimpleEvent: null });
H8.GeneralTests.prototype.StringFormat = function() {
System.Console.WriteLine$1(String.format$0("Test: {0}", "arg0"));
View
716 test/DotWeb.Translator.Test/Expected/GeneralTests/Release/TestDictionaryEnumerator.js
@@ -0,0 +1,716 @@
+$Class(null, 'System.Collections.Generic', 'EqualityComparer$1');
+
+System.Collections.Generic.EqualityComparer$1.prototype.$ctor = function() {
+ return this;
+};
+
+$Class(System.Collections.Generic.EqualityComparer$1, 'System.Collections.Generic', 'EqualityComparer$1_DefaultComparer');
+
+System.Collections.Generic.EqualityComparer$1_DefaultComparer.prototype.$ctor = function() {
+ this.$super.$ctor();
+ return this;
+};
+
+System.Collections.Generic.EqualityComparer$1.get_Default = function() {
+ return new System.Collections.Generic.EqualityComparer$1_DefaultComparer().$ctor();
+};
+
+$Class(null, 'System.Collections.Generic', 'Dictionary$2', { table: 0, linkSlots: null, keySlots: null, valueSlots: null, touchedSlots: 0, emptySlot: 0, count: 0, threshold: 0, hcp: null, generation: 0 });
+
+(function() {
+ System.Collections.Generic.Dictionary$2.INITIAL_SIZE = 10;
+ System.Collections.Generic.Dictionary$2.DEFAULT_LOAD_FACTOR = 0.9;
+ System.Collections.Generic.Dictionary$2.NO_SLOT = -1;
+ System.Collections.Generic.Dictionary$2.HASH_FLAG = -2147483648;
+ var D_0 = [11, 19, 37, 73, 109, 163, 251, 367, 557, 823, 1237, 1861, 2777, 4177, 6247, 9371, 14057, 21089, 31627, 47431, 71143, 106721, 160073, 240101, 360163, 540217, 810343, 1215497, 1823231, 2734867, 4102283, 6153409, 9230113, 13845163];
+ System.Collections.Generic.Dictionary$2.primeTable = D_0;
+})();
+
+System.Collections.Generic.Dictionary$2.prototype.InitArrays = function(size) {
+ this.table = $Array(size, 0);
+ this.linkSlots = $Array(size, null);
+ this.emptySlot = -1;
+ this.keySlots = $Array(size, null);
+ this.valueSlots = $Array(size, null);
+ this.touchedSlots = 0;
+ this.threshold = Math.floor(this.table.length * 0.9);
+ if (!this.threshold) {
+ var R_1 = this.table.length <= 0;
+ }
+ else {
+ R_1 = 1;
+ }
+ var V_0 = R_1;
+ if (!V_0) {
+ this.threshold = 1;
+ }
+};
+
+$Class(null, 'System', 'Exception', { message: null, _InnerException_k__BackingField: null, _Source_k__BackingField: null, _StackTrace_k__BackingField: null });
+
+System.Exception.prototype.set_Message = function(value) {
+ this.message = value;
+};
+
+System.Exception.prototype.$ctor$1 = function(message) {
+ this.set_Message(message);
+ return this;
+};
+
+$Class(System.Exception, 'System', 'SystemException');
+
+System.SystemException.prototype.$ctor$1 = function(message) {
+ this.$super.$ctor$1(message);
+ return this;
+};
+
+$Class(System.SystemException, 'System', 'ArgumentException', { _ParamName_k__BackingField: null });
+
+System.ArgumentException.prototype.set_ParamName = function(value) {
+ this._ParamName_k__BackingField = value;
+};
+
+System.ArgumentException.prototype.$ctor$3 = function(message, paramName) {
+ this.$super.$ctor$1(message);
+ this.set_ParamName(paramName);
+ return this;
+};
+
+$Class(System.ArgumentException, 'System', 'ArgumentOutOfRangeException', { _ActualValue_k__BackingField: null });
+
+(function() {
+ System.ArgumentOutOfRangeException.RangeMessage = "Specified argument was out of the range of valid values.";
+})();
+
+System.ArgumentOutOfRangeException.prototype.$ctor$1 = function(paramName) {
+ this.$super.$ctor$3(System.ArgumentOutOfRangeException.RangeMessage, paramName);
+ return this;
+};
+
+System.Collections.Generic.Dictionary$2.prototype.Init = function(capacity, hcp) {
+ var V_0 = capacity >= 0;
+ if (!V_0) {
+ throw new System.ArgumentOutOfRangeException().$ctor$1("capacity");
+ }
+ var R_1 = this;
+ if (!hcp) {
+ var R_2 = System.Collections.Generic.EqualityComparer$1.get_Default();
+ }
+ else {
+ R_2 = hcp;
+ }
+ R_1.hcp = R_2;
+ V_0 = capacity != 0;
+ if (!V_0) {
+ capacity = 10;
+ }
+ capacity = Math.floor(capacity / 0.9) + 1;
+ this.InitArrays(capacity);
+ this.generation = 0;
+};
+
+System.Collections.Generic.Dictionary$2.prototype.$ctor$3 = function(capacity) {
+ this.Init(capacity, null);
+ return this;
+};
+
+$Class(null, 'System.Text', 'StringBuilder', { value: null });
+
+System.Text.StringBuilder.prototype.$ctor = function() {
+ this.value = "";
+ return this;
+};
+
+System.Text.StringBuilder.prototype.Append$0 = function(value) {
+ var V_1 = value != null;
+ if (!V_1) {
+ return this;
+ }
+ V_1 = value.length != 0;
+ if (!V_1) {
+ this.value = value;
+ return this;
+ }
+ this.value = this.value + value;
+ return this;
+};
+
+$Class(System.SystemException, 'System', 'FormatException');
+
+System.FormatException.prototype.$ctor$1 = function(message) {
+ this.$super.$ctor$1(message);
+ return this;
+};
+
+System.Text.StringBuilder.prototype.toString = function() {
+ return this.value;
+};
+
+$Class(null, 'System.Collections.Generic', 'Dictionary$2_Enumerator', { dictionary: null, next: 0, stamp: 0, current: null });
+
+System.Collections.Generic.Dictionary$2_Enumerator.prototype.$ctor = function(dictionary) {
+ this.dictionary = dictionary;
+ this.stamp = dictionary.generation;
+ return this;
+};
+
+System.Collections.Generic.Dictionary$2.prototype.GetEnumerator = function() {
+ return new System.Collections.Generic.Dictionary$2_Enumerator().$ctor(this);
+};
+
+$Class(System.SystemException, 'System', 'InvalidOperationException');
+
+System.InvalidOperationException.prototype.$ctor$1 = function(message) {
+ this.$super.$ctor$1(message);
+ return this;
+};
+
+System.Collections.Generic.Dictionary$2_Enumerator.prototype.VerifyState = function() {
+ var V_0 = this.dictionary.generation == this.stamp;
+ if (!V_0) {
+ throw new System.InvalidOperationException().$ctor$1("out of sync");
+ }
+};
+
+$Class(null, 'System.Collections.Generic', 'KeyValuePair$2', { _Key_k__BackingField: null, _Value_k__BackingField: null });
+
+System.Collections.Generic.KeyValuePair$2.prototype.set_Key = function(value) {
+ this._Key_k__BackingField = value;
+};
+
+System.Collections.Generic.KeyValuePair$2.prototype.set_Value = function(value) {
+ this._Value_k__BackingField = value;
+};
+
+System.Collections.Generic.KeyValuePair$2.prototype.$ctor = function(key, value) {
+ this.set_Key(key);
+ this.set_Value(value);
+ return this;
+};
+
+System.Collections.Generic.Dictionary$2_Enumerator.prototype.MoveNext = function() {
+ this.VerifyState();
+ var V_5 = this.next >= 0;
+ if (!V_5) {
+ return false;
+ }
+ while (true) {
+ V_5 = this.next < this.dictionary.touchedSlots;
+ if (!V_5) {
+ break;
+ }
+ var D_0 = this.next;
+ var V_6 = D_0;
+ this.next = D_0 + 1;
+ var V_0 = V_6;
+ var V_1 = this.dictionary.linkSlots[V_0];
+ V_5 = (V_1.HashCode & -2147483648) == 0;
+ if (!V_5) {
+ var V_2 = this.dictionary.keySlots[V_0];
+ var V_3 = this.dictionary.valueSlots[V_0];
+ this.current = new System.Collections.Generic.KeyValuePair$2().$ctor(V_2, V_3);
+ return true;
+ }
+ }
+ this.next = -1;
+ return false;
+};
+
+System.Collections.Generic.Dictionary$2_Enumerator.prototype.get_Current = function() {
+}
+
+System.Collections.Generic.KeyValuePair$2.prototype.get_Key = function() {
+ return this._Key_k__BackingField;
+};
+
+System.Collections.Generic.KeyValuePair$2.prototype.get_Value = function() {
+ return this._Value_k__BackingField;
+};
+
+System.Collections.Generic.KeyValuePair$2.prototype.toString = function() {
+ var V_1 = $Array(5, null);
+ V_1[0] = "[";
+ var R_2 = 1;
+ var R_1 = V_1;
+ if (!this.get_Key()) {
+ var R_3 = String.empty;
+ }
+ else {
+ var V_2 = this.get_Key();
+ R_3 = V_2.toString();
+ }
+ R_1[R_2] = R_3;
+ V_1[2] = ", ";
+ R_2 = 3;
+ R_1 = V_1;
+ if (!this.get_Value()) {
+ R_3 = String.empty;
+ }
+ else {
+ var V_3 = this.get_Value();
+ R_3 = V_3.toString();
+ }
+ R_1[R_2] = R_3;
+ V_1[4] = "]";
+ return V_1.join('');
+};
+
+System.Collections.Generic.Dictionary$2_Enumerator.prototype.Dispose = function() {
+ this.dictionary = null;
+};
+
+System.Collections.Generic.Dictionary$2.prototype.toString = function() {
+ var V_0 = new System.Text.StringBuilder().$ctor();
+ V_0.Append$0("{");
+ var V_1 = true;
+ var V_4 = this.GetEnumerator();
+ try {
+ while (true) {
+ var V_5 = V_4.MoveNext();
+ if (!V_5) {
+ break;
+ }
+ var V_2 = V_4.get_Current();
+ V_5 = !V_1;
+ if (!V_5) {
+ V_1 = false;
+ }
+ else {
+ V_0.Append$0(", ");
+ }
+ V_0.Append$1(V_2.get_Key());
+ V_0.Append$0(": ");
+ V_0.Append$1(V_2.get_Value());
+ }
+ }
+ finally {
+ V_5 = V_4 == null;
+ if (!V_5) {
+ V_4.Dispose();
+ }
+ }
+ V_0.Append$0("}");
+ return V_0.toString();
+};
+
+System.Text.StringBuilder.prototype.Append$1 = function(value) {
+ return this.Append$0(value.toString());
+};
+
+System.ArgumentException.prototype.$ctor$1 = function(message) {
+ this.$super.$ctor$1(message);
+ return this;
+};
+
+System.ArgumentOutOfRangeException.prototype.$ctor$0 = function() {
+ this.$super.$ctor$1(System.ArgumentOutOfRangeException.RangeMessage);
+ return this;
+};
+
+$Class(System.ArgumentException, 'System', 'ArgumentNullException');
+
+(function() {
+ System.ArgumentNullException.DefaultMessage = "Value cannot be null.";
+})();
+
+System.ArgumentNullException.prototype.$ctor$1 = function(paramName) {
+ this.$super.$ctor$3(System.ArgumentNullException.DefaultMessage, paramName);
+ return this;
+};
+
+System.Text.StringBuilder.prototype.Append$5 = function(value, startIndex, count) {
+ var V_2 = value != null;
+ if (!V_2) {
+ if (startIndex) {
+ var R_1 = count == 0;
+ }
+ else {
+ R_1 = 1;
+ }
+ V_2 = R_1;
+ if (!V_2) {
+ throw new System.ArgumentNullException().$ctor$1("value");
+ }
+ return this;
+ }
+ if ((count >= 0) && (startIndex >= 0)) {
+ R_1 = startIndex <= (value.length - count);
+ }
+ else {
+ R_1 = 0;
+ }
+ V_2 = R_1;
+ if (!V_2) {
+ throw new System.ArgumentOutOfRangeException().$ctor$0();
+ }
+ var V_0 = startIndex;
+ while (true) {
+ V_2 = V_0 < (startIndex + count);
+ if (!V_2) {
+ break;
+ }
+ this.Append$1(value.charAt(V_0));
+ V_0 = V_0 + 1;
+ }
+ return this;
+};
+
+$Class(null, 'System', 'String_FormatSpecifier', { str: null, ptr: 0, n: 0, width: 0, left_align: 0, format: null });
+
+System.String_FormatSpecifier.prototype.ParseDecimal = function() {
+ var V_0 = this.ptr;
+ var V_1 = 0;
+ while (true) {
+ var V_4 = true;
+ var V_2 = this.str.charCodeAt(V_0);
+ if (V_2 >= 48) {
+ var R_1 = 57 >= V_2;
+ }
+ else {
+ R_1 = 0;
+ }
+ V_4 = R_1;
+ if (!V_4) {
+ break;
+ }
+ V_1 = ((V_1 * 10) + V_2) - 48;
+ V_0 = V_0 + 1;
+ }
+ V_4 = V_0 != this.ptr;
+ if (!V_4) {
+ return -1;
+ }
+ this.ptr = V_0;
+ return V_1;
+};
+
+System.String_FormatSpecifier.prototype.IsWhiteSpace = function() {
+ var V_0 = this.str.charCodeAt(this.ptr);
+ if ((((V_0 < 9) || (V_0 > 13)) && (V_0 != 32)) && (V_0 != 133)) {
+ var R_1 = V_0 == 8287;
+ }
+ else {
+ R_1 = 1;
+ }
+ return R_1;
+};
+
+System.ArgumentOutOfRangeException.prototype.$ctor$3 = function(paramName, message) {
+ this.$super.$ctor$3(message, paramName);
+ return this;
+};
+
+(function() {
+ String.empty = "";
+})();
+
+String.prototype._Substring$1 = function(startIndex, length) {
+ var V_1 = length >= 0;
+ if (!V_1) {
+ throw new System.ArgumentOutOfRangeException().$ctor$3("length", "Cannot be negative.");
+ }
+ V_1 = startIndex >= 0;
+ if (!V_1) {
+ throw new System.ArgumentOutOfRangeException().$ctor$3("startIndex", "Cannot be negative.");
+ }
+ V_1 = startIndex <= this.length;
+ if (!V_1) {
+ throw new System.ArgumentOutOfRangeException().$ctor$3("startIndex", "Cannot exceed length of string.");
+ }
+ V_1 = startIndex <= (this.length - length);
+ if (!V_1) {
+ throw new System.ArgumentOutOfRangeException().$ctor$3("length", "startIndex + length > this.length");
+ }
+ if (!startIndex) {
+ var R_1 = length != this.length;
+ }
+ else {
+ R_1 = 1;
+ }
+ V_1 = R_1;
+ if (!V_1) {
+ return this;
+ }
+ return this.substring(startIndex, startIndex + length);
+};
+
+$Class(System.SystemException, 'System', 'IndexOutOfRangeException');
+
+System.IndexOutOfRangeException.prototype.$ctor$0 = function() {
+ this.$super.$ctor$1("Array index is out of range.");
+ return this;
+};
+
+System.String_FormatSpecifier.prototype.ParseFormatSpecifier = function() {
+ try {
+ this.n = this.ParseDecimal();
+ var V_2 = this.n >= 0;
+ if (!V_2) {
+ throw new System.FormatException().$ctor$1("Invalid argument specifier.");
+ }
+ V_2 = this.str.charAt(this.ptr) != ',';
+ if (!V_2) {
+ this.ptr = this.ptr + 1;
+ while (true) {
+ V_2 = this.IsWhiteSpace();
+ if (!V_2) {
+ break;
+ }
+ this.ptr = this.ptr + 1;
+ }
+ var V_0 = this.ptr;
+ var V_1 = this.ptr - V_0;
+ this.format = this.str._Substring$1(V_0, V_1);
+ this.left_align = this.str.charAt(this.ptr) == '-';
+ V_2 = !this.left_align;
+ if (!V_2) {
+ this.ptr = this.ptr + 1;
+ }
+ this.width = this.ParseDecimal();
+ V_2 = this.width >= 0;
+ if (!V_2) {
+ throw new System.FormatException().$ctor$1("Invalid width specifier.");
+ }
+ }
+ else {
+ this.width = 0;
+ this.left_align = false;
+ this.format = "";
+ }
+ V_2 = this.str.charAt(this.ptr) != ':';
+ if (!V_2) {
+ var D_0 = this.ptr + 1;
+ var V_3 = D_0;
+ this.ptr = D_0;
+ V_0 = V_3;
+ while (true) {
+ V_2 = this.str.charAt(this.ptr) != '}';
+ if (!V_2) {
+ break;
+ }
+ this.ptr = this.ptr + 1;
+ }
+ this.format = this.format + this.str._Substring$1(V_0, this.ptr - V_0);
+ }
+ else {
+ this.format = null;
+ }
+ var D_1 = this.ptr;
+ V_3 = D_1;
+ this.ptr = D_1 + 1;
+ V_2 = this.str.charAt(V_3) == '}';
+ if (!V_2) {
+ throw new System.FormatException().$ctor$1("Missing end characeter.");
+ }
+ }
+ catch (__ex__) {
+ if (__ex__ instanceof System.IndexOutOfRangeException) {
+ throw new System.FormatException().$ctor$1("Input string was not in a correct format.");
+ }
+ else {
+ throw __ex__;
+ }
+ }
+};
+
+System.String_FormatSpecifier.prototype.$ctor = function(str, ptr) {
+ this.str = str;
+ this.ptr = ptr;
+ this.ParseFormatSpecifier();
+ return this;
+};
+
+System.Text.StringBuilder.prototype.Append$3 = function(value, repeatCount) {
+ var V_0 = 0;
+ while (true) {
+ var V_2 = V_0 < repeatCount;
+ if (!V_2) {
+ break;
+ }
+ this.Append$1(value);
+ V_0 = V_0 + 1;
+ }
+ return this;
+};
+
+String.formatHelper = function(result, format, args) {
+ var V_8 = format != null;
+ if (!V_8) {
+ throw new System.ArgumentNullException().$ctor$1("format");
+ }
+ V_8 = args != null;
+ if (!V_8) {
+ throw new System.ArgumentNullException().$ctor$1("args");
+ }
+ V_8 = result != null;
+ if (!V_8) {
+ result = new System.Text.StringBuilder().$ctor();
+ }
+ var V_0 = 0;
+ var V_1 = V_0;
+ while (true) {
+ V_8 = V_0 < format.length;
+ if (!V_8) {
+ break;
+ }
+ var D_0 = V_0;
+ V_0 = D_0 + 1;
+ var V_2 = format.charAt(D_0);
+ V_8 = V_2 != '{';
+ if (!V_8) {
+ result.Append$5(format, V_1, (V_0 - V_1) - 1);
+ V_8 = format.charAt(V_0) != '{';
+ if (!V_8) {
+ var D_2 = V_0;
+ V_0 = D_2 + 1;
+ V_1 = D_2;
+ continue;
+ }
+ var V_3 = new System.String_FormatSpecifier().$ctor(format, V_0);
+ V_0 = V_3.ptr;
+ V_8 = V_3.n < args.length;
+ if (!V_8) {
+ throw new System.FormatException().$ctor$1("Index (zero based) must be greater than or equal to zero and less than the size of the argument list.");
+ }
+ var V_4 = args[V_3.n];
+ V_8 = V_4 != null;
+ if (!V_8) {
+ var V_5 = "";
+ }
+ V_5 = V_4.toString();
+ V_8 = V_3.width <= V_5.length;
+ if (!V_8) {
+ var V_6 = V_3.width - V_5.length;
+ V_8 = !V_3.left_align;
+ if (!V_8) {
+ result.Append$0(V_5);
+ result.Append$3(' ', V_6);
+ }
+ else {
+ result.Append$3(' ', V_6);
+ result.Append$0(V_5);
+ }
+ }
+ else {
+ result.Append$0(V_5);
+ }
+ V_1 = V_0;
+ V_8 = R_1;
+ if (!V_8) {
+ result.Append$5(format, V_1, (V_0 - V_1) - 1);
+ var D_1 = V_0;
+ V_0 = D_1 + 1;
+ V_1 = D_1;
+ }
+ else {
+ V_8 = V_2 != '}';
+ if (!V_8) {
+ throw new System.FormatException().$ctor$1("Input string was not in a correct format.");
+ }
+ }
+ }
+ else {
+ if ((V_2 == '}') && (V_0 < format.length)) {
+ var R_1 = format.charAt(V_0) != '}';
+ }
+ else {
+ R_1 = 1;
+ }
+ }
+ }
+ V_8 = V_1 >= format.length;
+ if (!V_8) {
+ result.Append$5(format, V_1, format.length - V_1);
+ }
+ return result;
+};
+
+String.format$0 = function(format, arg0) {
+ var V_2 = $Array(1, null);
+ V_2[0] = arg0;
+ var V_0 = String.formatHelper(null, format, V_2);
+ return V_0.toString();
+};
+
+System.Exception.prototype.get_Message = function() {
+ var V_1 = this.message != null;
+ if (!V_1) {
+ this.message = String.format$0("Exception of type '{0}' was thrown.", this.$typename);
+ }
+ return this.message;
+};
+
+System.ArgumentException.prototype.get_ParamName = function() {
+ return this._ParamName_k__BackingField;
+};
+
+System.ArgumentException.prototype.get_Message = function() {
+ var V_0 = this.$super.get_Message();
+ if (this.get_ParamName()) {
+ var R_1 = this.get_ParamName().length == 0;
+ }
+ else {
+ R_1 = 1;
+ }
+ var V_2 = R_1;
+ if (!V_2) {
+ return V_0 + "\nParameter name: " + this.get_ParamName();
+ }
+ return V_0;
+};
+
+System.ArgumentOutOfRangeException.prototype.get_ActualValue = function() {
+ return this._ActualValue_k__BackingField;
+};
+
+System.ArgumentOutOfRangeException.prototype.get_Message = function() {
+ var V_0 = this.$super.get_Message();
+ var V_3 = this.get_ActualValue() != null;
+ if (!V_3) {
+ return V_0;
+ }
+ var V_1 = "Actual value was " + this.get_ActualValue().toString();
+ V_3 = V_0 != null;
+ if (!V_3) {
+ return V_1;
+ }
+ return V_0 + "\n" + V_1;
+};
+
+System.Exception.prototype.get_InnerException = function() {
+ return this._InnerException_k__BackingField;
+};