resin 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. data/amber/css/amber-normalize.css +73 -73
  2. data/amber/css/amber-normalize.less +1 -1
  3. data/amber/css/amber.css +106 -106
  4. data/amber/css/helios.css +242 -0
  5. data/amber/images/hsplitter.png +0 -0
  6. data/amber/images/vsplitter.png +0 -0
  7. data/amber/js/Benchfib.deploy.js +116 -38
  8. data/amber/js/Benchfib.js +120 -42
  9. data/amber/js/Canvas.deploy.js +674 -403
  10. data/amber/js/Canvas.js +682 -411
  11. data/amber/js/Compiler-AST.deploy.js +1150 -0
  12. data/amber/js/Compiler-AST.js +1591 -0
  13. data/amber/js/Compiler-Core.deploy.js +1562 -0
  14. data/amber/js/Compiler-Core.js +1972 -0
  15. data/amber/js/Compiler-Exceptions.deploy.js +114 -0
  16. data/amber/js/Compiler-Exceptions.js +161 -0
  17. data/amber/js/Compiler-IR.deploy.js +2326 -0
  18. data/amber/js/Compiler-IR.js +3146 -0
  19. data/amber/js/Compiler-Inlining.deploy.js +1147 -0
  20. data/amber/js/Compiler-Inlining.js +1514 -0
  21. data/amber/js/Compiler-Semantic.deploy.js +1207 -0
  22. data/amber/js/Compiler-Semantic.js +1628 -0
  23. data/amber/js/Compiler-Tests.deploy.js +646 -60
  24. data/amber/js/Compiler-Tests.js +843 -82
  25. data/amber/js/Compiler.deploy.js +1097 -159
  26. data/amber/js/Compiler.js +1414 -161
  27. data/amber/js/Examples.deploy.js +31 -15
  28. data/amber/js/Examples.js +33 -17
  29. data/amber/js/Helios-Announcements.deploy.js +127 -0
  30. data/amber/js/Helios-Announcements.js +157 -0
  31. data/amber/js/Helios-Browser.deploy.js +1473 -0
  32. data/amber/js/Helios-Browser.js +1953 -0
  33. data/amber/js/Helios-Commands.deploy.js +403 -0
  34. data/amber/js/Helios-Commands.js +563 -0
  35. data/amber/js/Helios-Core.deploy.js +1070 -0
  36. data/amber/js/Helios-Core.js +1445 -0
  37. data/amber/js/Helios-Environments.deploy.js +132 -0
  38. data/amber/js/Helios-Environments.js +179 -0
  39. data/amber/js/Helios-Inspector.deploy.js +855 -0
  40. data/amber/js/Helios-Inspector.js +1155 -0
  41. data/amber/js/Helios-KeyBindings.deploy.js +753 -0
  42. data/amber/js/Helios-KeyBindings.js +1023 -0
  43. data/amber/js/Helios-Layout.deploy.js +383 -0
  44. data/amber/js/Helios-Layout.js +523 -0
  45. data/amber/js/Helios-Workspace.deploy.js +799 -0
  46. data/amber/js/Helios-Workspace.js +1074 -0
  47. data/amber/js/IDE.deploy.js +2541 -1490
  48. data/amber/js/IDE.js +2721 -1660
  49. data/amber/js/Importer-Exporter.deploy.js +671 -0
  50. data/amber/js/Importer-Exporter.js +816 -0
  51. data/amber/js/Kernel-Announcements.deploy.js +137 -20
  52. data/amber/js/Kernel-Announcements.js +176 -22
  53. data/amber/js/Kernel-Classes.deploy.js +555 -168
  54. data/amber/js/Kernel-Classes.js +662 -205
  55. data/amber/js/Kernel-Collections.deploy.js +1403 -618
  56. data/amber/js/Kernel-Collections.js +1545 -690
  57. data/amber/js/Kernel-Exceptions.deploy.js +109 -45
  58. data/amber/js/Kernel-Exceptions.js +123 -49
  59. data/amber/js/Kernel-Methods.deploy.js +196 -81
  60. data/amber/js/Kernel-Methods.js +214 -89
  61. data/amber/js/Kernel-Objects.deploy.js +1542 -1117
  62. data/amber/js/Kernel-Objects.js +1593 -1148
  63. data/amber/js/Kernel-Tests.deploy.js +1725 -772
  64. data/amber/js/Kernel-Tests.js +2301 -1123
  65. data/amber/js/Kernel-Transcript.deploy.js +23 -25
  66. data/amber/js/Kernel-Transcript.js +24 -26
  67. data/amber/js/SUnit.deploy.js +204 -131
  68. data/amber/js/SUnit.js +222 -139
  69. data/amber/js/Spaces.deploy.js +240 -0
  70. data/amber/js/Spaces.js +326 -0
  71. data/amber/js/amber.js +26 -7
  72. data/amber/js/boot.js +65 -47
  73. data/amber/js/init.js +1 -1
  74. data/amber/js/lib/CodeMirror/amber.css +21 -21
  75. data/amber/js/lib/CodeMirror/codemirror.css +119 -13
  76. data/amber/js/lib/CodeMirror/codemirror.js +2219 -1220
  77. data/amber/js/lib/CodeMirror/smalltalk.js +134 -129
  78. data/amber/js/lib/bootstrap/css/bootstrap.css +5837 -0
  79. data/amber/js/lib/bootstrap/css/bootstrap.min.css +841 -0
  80. data/amber/js/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
  81. data/amber/js/lib/bootstrap/img/glyphicons-halflings.png +0 -0
  82. data/amber/js/lib/bootstrap/js/bootstrap.js +2038 -0
  83. data/amber/js/lib/bootstrap/js/bootstrap.min.js +7 -0
  84. data/amber/js/lib/jQuery/jquery-1.8.2.min.js +2 -0
  85. data/amber/js/lib/jQuery/jquery-ui-1.8.24.custom.min.js +125 -0
  86. data/amber/st/Compiler-AST.st +505 -0
  87. data/amber/st/Compiler-Core.st +835 -0
  88. data/amber/st/Compiler-Exceptions.st +87 -0
  89. data/amber/st/Compiler-IR.st +1097 -0
  90. data/amber/st/Compiler-Inlining.st +650 -0
  91. data/amber/st/Compiler-Semantic.st +558 -0
  92. data/amber/st/Compiler-Tests.st +285 -381
  93. data/amber/st/Compiler.st +725 -2
  94. data/amber/st/Helios-Announcements.st +104 -0
  95. data/amber/st/Helios-Browser.st +708 -0
  96. data/amber/st/Helios-Commands.st +223 -0
  97. data/amber/st/Helios-Core.st +532 -0
  98. data/amber/st/Helios-Environments.st +98 -0
  99. data/amber/st/Helios-Inspector.st +367 -0
  100. data/amber/st/Helios-KeyBindings.st +337 -0
  101. data/amber/st/Helios-Layout.st +199 -0
  102. data/amber/st/Helios-Workspace.st +367 -0
  103. data/amber/st/IDE.st +75 -53
  104. data/amber/st/Importer-Exporter.st +386 -0
  105. data/amber/st/Kernel-Announcements.st +92 -0
  106. data/amber/st/Kernel-Classes.st +137 -15
  107. data/amber/st/Kernel-Collections.st +137 -47
  108. data/amber/st/Kernel-Exceptions.st +14 -0
  109. data/amber/st/Kernel-Methods.st +9 -1
  110. data/amber/st/Kernel-Objects.st +29 -5
  111. data/amber/st/Kernel-Tests.st +545 -199
  112. data/amber/st/SUnit.st +10 -0
  113. data/amber/st/Spaces.st +142 -0
  114. data/lib/resin/app.rb +1 -1
  115. metadata +86 -31
  116. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +0 -167
  117. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +0 -4
@@ -4,10 +4,12 @@ smalltalk.addMethod(
4
4
  "__minus_gt",
5
5
  smalltalk.method({
6
6
  selector: "->",
7
- fn: function (anObject){
8
- var self=this;
9
- return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
10
- return self;}
7
+ fn: function (anObject) {
8
+ var self = this;
9
+ var $1;
10
+ $1 = smalltalk.send(smalltalk.Association || Association, "_key_value_", [self, anObject]);
11
+ return $1;
12
+ }
11
13
  }),
12
14
  smalltalk.Object);
13
15
 
@@ -15,10 +17,12 @@ smalltalk.addMethod(
15
17
  "__eq",
16
18
  smalltalk.method({
17
19
  selector: "=",
18
- fn: function (anObject){
19
- var self=this;
20
- return smalltalk.send(self, "__eq_eq", [anObject]);
21
- return self;}
20
+ fn: function (anObject) {
21
+ var self = this;
22
+ var $1;
23
+ $1 = smalltalk.send(self, "__eq_eq", [anObject]);
24
+ return $1;
25
+ }
22
26
  }),
23
27
  smalltalk.Object);
24
28
 
@@ -26,10 +30,12 @@ smalltalk.addMethod(
26
30
  "__eq_eq",
27
31
  smalltalk.method({
28
32
  selector: "==",
29
- fn: function (anObject){
30
- var self=this;
31
- return smalltalk.send(smalltalk.send(self, "_identityHash", []), "__eq", [smalltalk.send(anObject, "_identityHash", [])]);
32
- return self;}
33
+ fn: function (anObject) {
34
+ var self = this;
35
+ var $1;
36
+ $1 = smalltalk.send(smalltalk.send(self, "_identityHash", []), "__eq", [smalltalk.send(anObject, "_identityHash", [])]);
37
+ return $1;
38
+ }
33
39
  }),
34
40
  smalltalk.Object);
35
41
 
@@ -37,13 +43,13 @@ smalltalk.addMethod(
37
43
  "_asJSON",
38
44
  smalltalk.method({
39
45
  selector: "asJSON",
40
- fn: function (){
41
- var self=this;
42
- var variables=nil;
43
- (variables=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []));
44
- smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSON", [])]);})]);
45
- return variables;
46
- return self;}
46
+ fn: function () {
47
+ var self = this;
48
+ var variables;
49
+ variables = smalltalk.send(smalltalk.HashedCollection || HashedCollection, "_new", []);
50
+ smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [function (each) {return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSON", [])]);}]);
51
+ return variables;
52
+ }
47
53
  }),
48
54
  smalltalk.Object);
49
55
 
@@ -51,10 +57,12 @@ smalltalk.addMethod(
51
57
  "_asJSONString",
52
58
  smalltalk.method({
53
59
  selector: "asJSONString",
54
- fn: function (){
55
- var self=this;
56
- return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [smalltalk.send(self, "_asJSON", [])]);
57
- return self;}
60
+ fn: function () {
61
+ var self = this;
62
+ var $1;
63
+ $1 = smalltalk.send(smalltalk.JSON || JSON, "_stringify_", [smalltalk.send(self, "_asJSON", [])]);
64
+ return $1;
65
+ }
58
66
  }),
59
67
  smalltalk.Object);
60
68
 
@@ -62,10 +70,12 @@ smalltalk.addMethod(
62
70
  "_asJavascript",
63
71
  smalltalk.method({
64
72
  selector: "asJavascript",
65
- fn: function (){
66
- var self=this;
67
- return smalltalk.send(self, "_asString", []);
68
- return self;}
73
+ fn: function () {
74
+ var self = this;
75
+ var $1;
76
+ $1 = smalltalk.send(self, "_asString", []);
77
+ return $1;
78
+ }
69
79
  }),
70
80
  smalltalk.Object);
71
81
 
@@ -73,10 +83,12 @@ smalltalk.addMethod(
73
83
  "_asString",
74
84
  smalltalk.method({
75
85
  selector: "asString",
76
- fn: function (){
77
- var self=this;
78
- return smalltalk.send(self, "_printString", []);
79
- return self;}
86
+ fn: function () {
87
+ var self = this;
88
+ var $1;
89
+ $1 = smalltalk.send(self, "_printString", []);
90
+ return $1;
91
+ }
80
92
  }),
81
93
  smalltalk.Object);
82
94
 
@@ -84,10 +96,11 @@ smalltalk.addMethod(
84
96
  "_basicAt_",
85
97
  smalltalk.method({
86
98
  selector: "basicAt:",
87
- fn: function (aString){
88
- var self=this;
89
- return self[aString];
90
- return self;}
99
+ fn: function (aString) {
100
+ var self = this;
101
+ return self[aString];
102
+ return self;
103
+ }
91
104
  }),
92
105
  smalltalk.Object);
93
106
 
@@ -95,10 +108,11 @@ smalltalk.addMethod(
95
108
  "_basicAt_put_",
96
109
  smalltalk.method({
97
110
  selector: "basicAt:put:",
98
- fn: function (aString, anObject){
99
- var self=this;
100
- return self[aString] = anObject;
101
- return self;}
111
+ fn: function (aString, anObject) {
112
+ var self = this;
113
+ return self[aString] = anObject;
114
+ return self;
115
+ }
102
116
  }),
103
117
  smalltalk.Object);
104
118
 
@@ -106,10 +120,12 @@ smalltalk.addMethod(
106
120
  "_basicDelete_",
107
121
  smalltalk.method({
108
122
  selector: "basicDelete:",
109
- fn: function (aString){
110
- var self=this;
111
- delete self[aString]; return aString;
112
- return self;}
123
+ fn: function (aString) {
124
+ var self = this;
125
+ delete self[aString];
126
+ return aString;
127
+ return self;
128
+ }
113
129
  }),
114
130
  smalltalk.Object);
115
131
 
@@ -117,10 +133,12 @@ smalltalk.addMethod(
117
133
  "_basicPerform_",
118
134
  smalltalk.method({
119
135
  selector: "basicPerform:",
120
- fn: function (aSymbol){
121
- var self=this;
122
- return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
123
- return self;}
136
+ fn: function (aSymbol) {
137
+ var self = this;
138
+ var $1;
139
+ $1 = smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
140
+ return $1;
141
+ }
124
142
  }),
125
143
  smalltalk.Object);
126
144
 
@@ -128,10 +146,11 @@ smalltalk.addMethod(
128
146
  "_basicPerform_withArguments_",
129
147
  smalltalk.method({
130
148
  selector: "basicPerform:withArguments:",
131
- fn: function (aSymbol, aCollection){
132
- var self=this;
133
- return self[aSymbol].apply(self, aCollection);;
134
- return self;}
149
+ fn: function (aSymbol, aCollection) {
150
+ var self = this;
151
+ return self[aSymbol].apply(self, aCollection);
152
+ return self;
153
+ }
135
154
  }),
136
155
  smalltalk.Object);
137
156
 
@@ -139,10 +158,11 @@ smalltalk.addMethod(
139
158
  "_class",
140
159
  smalltalk.method({
141
160
  selector: "class",
142
- fn: function (){
143
- var self=this;
144
- return self.klass;
145
- return self;}
161
+ fn: function () {
162
+ var self = this;
163
+ return self.klass;
164
+ return self;
165
+ }
146
166
  }),
147
167
  smalltalk.Object);
148
168
 
@@ -150,10 +170,12 @@ smalltalk.addMethod(
150
170
  "_copy",
151
171
  smalltalk.method({
152
172
  selector: "copy",
153
- fn: function (){
154
- var self=this;
155
- return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
156
- return self;}
173
+ fn: function () {
174
+ var self = this;
175
+ var $1;
176
+ $1 = smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
177
+ return $1;
178
+ }
157
179
  }),
158
180
  smalltalk.Object);
159
181
 
@@ -161,18 +183,17 @@ smalltalk.addMethod(
161
183
  "_deepCopy",
162
184
  smalltalk.method({
163
185
  selector: "deepCopy",
164
- fn: function (){
165
- var self=this;
166
-
167
- var copy = self.klass._new();
168
- for(var i in self) {
169
- if(/^@.+/.test(i)) {
170
- copy[i] = self[i]._deepCopy();
171
- }
172
- }
173
- return copy;
174
- ;
175
- return self;}
186
+ fn: function () {
187
+ var self = this;
188
+ var copy = self.klass._new();
189
+ for (var i in self) {
190
+ if (/^@.+/.test(i)) {
191
+ copy[i] = self[i]._deepCopy();
192
+ }
193
+ }
194
+ return copy;
195
+ return self;
196
+ }
176
197
  }),
177
198
  smalltalk.Object);
178
199
 
@@ -180,10 +201,11 @@ smalltalk.addMethod(
180
201
  "_deprecatedAPI",
181
202
  smalltalk.method({
182
203
  selector: "deprecatedAPI",
183
- fn: function (){
184
- var self=this;
185
- smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [" is deprecated! (in "]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_home", []), "_asString", [])]), "__comma", [")"])]);
186
- return self;}
204
+ fn: function () {
205
+ var self = this;
206
+ smalltalk.send(console, "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(thisContext, "_home", []), "_asString", []), "__comma", [" is deprecated! (in "]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(thisContext, "_home", []), "_home", []), "_asString", [])]), "__comma", [")"])]);
207
+ return self;
208
+ }
187
209
  }),
188
210
  smalltalk.Object);
189
211
 
@@ -191,10 +213,15 @@ smalltalk.addMethod(
191
213
  "_doesNotUnderstand_",
192
214
  smalltalk.method({
193
215
  selector: "doesNotUnderstand:",
194
- fn: function (aMessage){
195
- var self=this;
196
- (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
197
- return self;}
216
+ fn: function (aMessage) {
217
+ var self = this;
218
+ var $1, $2;
219
+ $1 = smalltalk.send(smalltalk.MessageNotUnderstood || MessageNotUnderstood, "_new", []);
220
+ smalltalk.send($1, "_receiver_", [self]);
221
+ smalltalk.send($1, "_message_", [aMessage]);
222
+ $2 = smalltalk.send($1, "_signal", []);
223
+ return self;
224
+ }
198
225
  }),
199
226
  smalltalk.Object);
200
227
 
@@ -202,10 +229,11 @@ smalltalk.addMethod(
202
229
  "_error_",
203
230
  smalltalk.method({
204
231
  selector: "error:",
205
- fn: function (aString){
206
- var self=this;
207
- smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
208
- return self;}
232
+ fn: function (aString) {
233
+ var self = this;
234
+ smalltalk.send(smalltalk.Error || Error, "_signal_", [aString]);
235
+ return self;
236
+ }
209
237
  }),
210
238
  smalltalk.Object);
211
239
 
@@ -213,10 +241,11 @@ smalltalk.addMethod(
213
241
  "_halt",
214
242
  smalltalk.method({
215
243
  selector: "halt",
216
- fn: function (){
217
- var self=this;
218
- smalltalk.send(self, "_error_", ["Halt encountered"]);
219
- return self;}
244
+ fn: function () {
245
+ var self = this;
246
+ smalltalk.send(self, "_error_", ["Halt encountered"]);
247
+ return self;
248
+ }
220
249
  }),
221
250
  smalltalk.Object);
222
251
 
@@ -224,16 +253,17 @@ smalltalk.addMethod(
224
253
  "_identityHash",
225
254
  smalltalk.method({
226
255
  selector: "identityHash",
227
- fn: function (){
228
- var self=this;
229
-
230
- var hash=self.identityHash;
231
- if (hash) return hash;
232
- hash=smalltalk.nextId();
233
- Object.defineProperty(self, 'identityHash', {value:hash});
234
- return hash;
235
- ;
236
- return self;}
256
+ fn: function () {
257
+ var self = this;
258
+ var hash = self.identityHash;
259
+ if (hash) {
260
+ return hash;
261
+ }
262
+ hash = smalltalk.nextId();
263
+ Object.defineProperty(self, "identityHash", {value: hash});
264
+ return hash;
265
+ return self;
266
+ }
237
267
  }),
238
268
  smalltalk.Object);
239
269
 
@@ -241,10 +271,10 @@ smalltalk.addMethod(
241
271
  "_ifNil_",
242
272
  smalltalk.method({
243
273
  selector: "ifNil:",
244
- fn: function (aBlock){
245
- var self=this;
246
- return self;
247
- return self;}
274
+ fn: function (aBlock) {
275
+ var self = this;
276
+ return self;
277
+ }
248
278
  }),
249
279
  smalltalk.Object);
250
280
 
@@ -252,10 +282,12 @@ smalltalk.addMethod(
252
282
  "_ifNil_ifNotNil_",
253
283
  smalltalk.method({
254
284
  selector: "ifNil:ifNotNil:",
255
- fn: function (aBlock, anotherBlock){
256
- var self=this;
257
- return smalltalk.send(anotherBlock, "_value", []);
258
- return self;}
285
+ fn: function (aBlock, anotherBlock) {
286
+ var self = this;
287
+ var $1;
288
+ $1 = smalltalk.send(anotherBlock, "_value", []);
289
+ return $1;
290
+ }
259
291
  }),
260
292
  smalltalk.Object);
261
293
 
@@ -263,10 +295,12 @@ smalltalk.addMethod(
263
295
  "_ifNotNil_",
264
296
  smalltalk.method({
265
297
  selector: "ifNotNil:",
266
- fn: function (aBlock){
267
- var self=this;
268
- return smalltalk.send(aBlock, "_value", []);
269
- return self;}
298
+ fn: function (aBlock) {
299
+ var self = this;
300
+ var $1;
301
+ $1 = smalltalk.send(aBlock, "_value", []);
302
+ return $1;
303
+ }
270
304
  }),
271
305
  smalltalk.Object);
272
306
 
@@ -274,10 +308,12 @@ smalltalk.addMethod(
274
308
  "_ifNotNil_ifNil_",
275
309
  smalltalk.method({
276
310
  selector: "ifNotNil:ifNil:",
277
- fn: function (aBlock, anotherBlock){
278
- var self=this;
279
- return smalltalk.send(aBlock, "_value", []);
280
- return self;}
311
+ fn: function (aBlock, anotherBlock) {
312
+ var self = this;
313
+ var $1;
314
+ $1 = smalltalk.send(aBlock, "_value", []);
315
+ return $1;
316
+ }
281
317
  }),
282
318
  smalltalk.Object);
283
319
 
@@ -285,10 +321,10 @@ smalltalk.addMethod(
285
321
  "_initialize",
286
322
  smalltalk.method({
287
323
  selector: "initialize",
288
- fn: function (){
289
- var self=this;
290
-
291
- return self;}
324
+ fn: function () {
325
+ var self = this;
326
+ return self;
327
+ }
292
328
  }),
293
329
  smalltalk.Object);
294
330
 
@@ -296,12 +332,13 @@ smalltalk.addMethod(
296
332
  "_instVarAt_",
297
333
  smalltalk.method({
298
334
  selector: "instVarAt:",
299
- fn: function (aSymbol){
300
- var self=this;
301
- var varname=nil;
302
- (varname=smalltalk.send(aSymbol, "_asString", []));
303
- return self['@'+varname];
304
- return self;}
335
+ fn: function (aSymbol) {
336
+ var self = this;
337
+ var varname;
338
+ varname = smalltalk.send(aSymbol, "_asString", []);
339
+ return self["@" + varname];
340
+ return self;
341
+ }
305
342
  }),
306
343
  smalltalk.Object);
307
344
 
@@ -309,12 +346,13 @@ smalltalk.addMethod(
309
346
  "_instVarAt_put_",
310
347
  smalltalk.method({
311
348
  selector: "instVarAt:put:",
312
- fn: function (aSymbol, anObject){
313
- var self=this;
314
- var varname=nil;
315
- (varname=smalltalk.send(aSymbol, "_asString", []));
316
- self['@' + varname] = anObject;
317
- return self;}
349
+ fn: function (aSymbol, anObject) {
350
+ var self = this;
351
+ var varname;
352
+ varname = smalltalk.send(aSymbol, "_asString", []);
353
+ self["@" + varname] = anObject;
354
+ return self;
355
+ }
318
356
  }),
319
357
  smalltalk.Object);
320
358
 
@@ -322,10 +360,10 @@ smalltalk.addMethod(
322
360
  "_isClass",
323
361
  smalltalk.method({
324
362
  selector: "isClass",
325
- fn: function (){
326
- var self=this;
327
- return false;
328
- return self;}
363
+ fn: function () {
364
+ var self = this;
365
+ return false;
366
+ }
329
367
  }),
330
368
  smalltalk.Object);
331
369
 
@@ -333,10 +371,17 @@ smalltalk.addMethod(
333
371
  "_isKindOf_",
334
372
  smalltalk.method({
335
373
  selector: "isKindOf:",
336
- fn: function (aClass){
337
- var self=this;
338
- return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
339
- return self;}
374
+ fn: function (aClass) {
375
+ var self = this;
376
+ var $2, $1;
377
+ $2 = smalltalk.send(self, "_isMemberOf_", [aClass]);
378
+ if (smalltalk.assert($2)) {
379
+ $1 = true;
380
+ } else {
381
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);
382
+ }
383
+ return $1;
384
+ }
340
385
  }),
341
386
  smalltalk.Object);
342
387
 
@@ -344,10 +389,12 @@ smalltalk.addMethod(
344
389
  "_isMemberOf_",
345
390
  smalltalk.method({
346
391
  selector: "isMemberOf:",
347
- fn: function (aClass){
348
- var self=this;
349
- return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
350
- return self;}
392
+ fn: function (aClass) {
393
+ var self = this;
394
+ var $1;
395
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
396
+ return $1;
397
+ }
351
398
  }),
352
399
  smalltalk.Object);
353
400
 
@@ -355,10 +402,10 @@ smalltalk.addMethod(
355
402
  "_isMetaclass",
356
403
  smalltalk.method({
357
404
  selector: "isMetaclass",
358
- fn: function (){
359
- var self=this;
360
- return false;
361
- return self;}
405
+ fn: function () {
406
+ var self = this;
407
+ return false;
408
+ }
362
409
  }),
363
410
  smalltalk.Object);
364
411
 
@@ -366,10 +413,10 @@ smalltalk.addMethod(
366
413
  "_isNil",
367
414
  smalltalk.method({
368
415
  selector: "isNil",
369
- fn: function (){
370
- var self=this;
371
- return false;
372
- return self;}
416
+ fn: function () {
417
+ var self = this;
418
+ return false;
419
+ }
373
420
  }),
374
421
  smalltalk.Object);
375
422
 
@@ -377,10 +424,10 @@ smalltalk.addMethod(
377
424
  "_isNumber",
378
425
  smalltalk.method({
379
426
  selector: "isNumber",
380
- fn: function (){
381
- var self=this;
382
- return false;
383
- return self;}
427
+ fn: function () {
428
+ var self = this;
429
+ return false;
430
+ }
384
431
  }),
385
432
  smalltalk.Object);
386
433
 
@@ -388,10 +435,10 @@ smalltalk.addMethod(
388
435
  "_isParseFailure",
389
436
  smalltalk.method({
390
437
  selector: "isParseFailure",
391
- fn: function (){
392
- var self=this;
393
- return false;
394
- return self;}
438
+ fn: function () {
439
+ var self = this;
440
+ return false;
441
+ }
395
442
  }),
396
443
  smalltalk.Object);
397
444
 
@@ -399,10 +446,10 @@ smalltalk.addMethod(
399
446
  "_isString",
400
447
  smalltalk.method({
401
448
  selector: "isString",
402
- fn: function (){
403
- var self=this;
404
- return false;
405
- return self;}
449
+ fn: function () {
450
+ var self = this;
451
+ return false;
452
+ }
406
453
  }),
407
454
  smalltalk.Object);
408
455
 
@@ -410,10 +457,10 @@ smalltalk.addMethod(
410
457
  "_isSymbol",
411
458
  smalltalk.method({
412
459
  selector: "isSymbol",
413
- fn: function (){
414
- var self=this;
415
- return false;
416
- return self;}
460
+ fn: function () {
461
+ var self = this;
462
+ return false;
463
+ }
417
464
  }),
418
465
  smalltalk.Object);
419
466
 
@@ -421,12 +468,12 @@ smalltalk.addMethod(
421
468
  "_log_block_",
422
469
  smalltalk.method({
423
470
  selector: "log:block:",
424
- fn: function (aString, aBlock){
425
- var self=this;
426
- var result=nil;
427
- smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (result=smalltalk.send(aBlock, "_value", []));})]), "_printString", [])])]);
428
- return result;
429
- return self;}
471
+ fn: function (aString, aBlock) {
472
+ var self = this;
473
+ var result;
474
+ smalltalk.send(console, "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.Date || Date, "_millisecondsToRun_", [function () {result = smalltalk.send(aBlock, "_value", []);return result;}]), "_printString", [])])]);
475
+ return result;
476
+ }
430
477
  }),
431
478
  smalltalk.Object);
432
479
 
@@ -434,10 +481,12 @@ smalltalk.addMethod(
434
481
  "_notNil",
435
482
  smalltalk.method({
436
483
  selector: "notNil",
437
- fn: function (){
438
- var self=this;
439
- return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
440
- return self;}
484
+ fn: function () {
485
+ var self = this;
486
+ var $1;
487
+ $1 = smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
488
+ return $1;
489
+ }
441
490
  }),
442
491
  smalltalk.Object);
443
492
 
@@ -445,10 +494,12 @@ smalltalk.addMethod(
445
494
  "_perform_",
446
495
  smalltalk.method({
447
496
  selector: "perform:",
448
- fn: function (aSymbol){
449
- var self=this;
450
- return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
451
- return self;}
497
+ fn: function (aSymbol) {
498
+ var self = this;
499
+ var $1;
500
+ $1 = smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
501
+ return $1;
502
+ }
452
503
  }),
453
504
  smalltalk.Object);
454
505
 
@@ -456,12 +507,13 @@ smalltalk.addMethod(
456
507
  "_perform_withArguments_",
457
508
  smalltalk.method({
458
509
  selector: "perform:withArguments:",
459
- fn: function (aSymbol, aCollection){
460
- var self=this;
461
- var selector=nil;
462
- (selector=smalltalk.send(aSymbol, "_asSelector", []));
463
- return smalltalk.send(self, selector, aCollection);
464
- return self;}
510
+ fn: function (aSymbol, aCollection) {
511
+ var self = this;
512
+ var selector;
513
+ selector = smalltalk.send(aSymbol, "_asSelector", []);
514
+ return smalltalk.send(self, selector, aCollection);
515
+ return self;
516
+ }
465
517
  }),
466
518
  smalltalk.Object);
467
519
 
@@ -469,10 +521,10 @@ smalltalk.addMethod(
469
521
  "_postCopy",
470
522
  smalltalk.method({
471
523
  selector: "postCopy",
472
- fn: function (){
473
- var self=this;
474
-
475
- return self;}
524
+ fn: function () {
525
+ var self = this;
526
+ return self;
527
+ }
476
528
  }),
477
529
  smalltalk.Object);
478
530
 
@@ -480,10 +532,11 @@ smalltalk.addMethod(
480
532
  "_printNl",
481
533
  smalltalk.method({
482
534
  selector: "printNl",
483
- fn: function (){
484
- var self=this;
485
- console.log(self);
486
- return self;}
535
+ fn: function () {
536
+ var self = this;
537
+ console.log(self);
538
+ return self;
539
+ }
487
540
  }),
488
541
  smalltalk.Object);
489
542
 
@@ -491,10 +544,12 @@ smalltalk.addMethod(
491
544
  "_printString",
492
545
  smalltalk.method({
493
546
  selector: "printString",
494
- fn: function (){
495
- var self=this;
496
- return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
497
- return self;}
547
+ fn: function () {
548
+ var self = this;
549
+ var $1;
550
+ $1 = smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
551
+ return $1;
552
+ }
498
553
  }),
499
554
  smalltalk.Object);
500
555
 
@@ -502,10 +557,12 @@ smalltalk.addMethod(
502
557
  "_respondsTo_",
503
558
  smalltalk.method({
504
559
  selector: "respondsTo:",
505
- fn: function (aSelector){
506
- var self=this;
507
- return smalltalk.send(smalltalk.send(self, "_class", []), "_canUnderstand_", [aSelector]);
508
- return self;}
560
+ fn: function (aSelector) {
561
+ var self = this;
562
+ var $1;
563
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "_canUnderstand_", [aSelector]);
564
+ return $1;
565
+ }
509
566
  }),
510
567
  smalltalk.Object);
511
568
 
@@ -513,18 +570,17 @@ smalltalk.addMethod(
513
570
  "_shallowCopy",
514
571
  smalltalk.method({
515
572
  selector: "shallowCopy",
516
- fn: function (){
517
- var self=this;
518
-
519
- var copy = self.klass._new();
520
- for(var i in self) {
521
- if(/^@.+/.test(i)) {
522
- copy[i] = self[i];
523
- }
524
- }
525
- return copy;
526
- ;
527
- return self;}
573
+ fn: function () {
574
+ var self = this;
575
+ var copy = self.klass._new();
576
+ for (var i in self) {
577
+ if (/^@.+/.test(i)) {
578
+ copy[i] = self[i];
579
+ }
580
+ }
581
+ return copy;
582
+ return self;
583
+ }
528
584
  }),
529
585
  smalltalk.Object);
530
586
 
@@ -532,10 +588,11 @@ smalltalk.addMethod(
532
588
  "_shouldNotImplement",
533
589
  smalltalk.method({
534
590
  selector: "shouldNotImplement",
535
- fn: function (){
536
- var self=this;
537
- smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
538
- return self;}
591
+ fn: function () {
592
+ var self = this;
593
+ smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
594
+ return self;
595
+ }
539
596
  }),
540
597
  smalltalk.Object);
541
598
 
@@ -543,10 +600,11 @@ smalltalk.addMethod(
543
600
  "_size",
544
601
  smalltalk.method({
545
602
  selector: "size",
546
- fn: function (){
547
- var self=this;
548
- smalltalk.send(self, "_error_", ["Object not indexable"]);
549
- return self;}
603
+ fn: function () {
604
+ var self = this;
605
+ smalltalk.send(self, "_error_", ["Object not indexable"]);
606
+ return self;
607
+ }
550
608
  }),
551
609
  smalltalk.Object);
552
610
 
@@ -554,10 +612,11 @@ smalltalk.addMethod(
554
612
  "_storeOn_",
555
613
  smalltalk.method({
556
614
  selector: "storeOn:",
557
- fn: function (aStream){
558
- var self=this;
559
- smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
560
- return self;}
615
+ fn: function (aStream) {
616
+ var self = this;
617
+ smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
618
+ return self;
619
+ }
561
620
  }),
562
621
  smalltalk.Object);
563
622
 
@@ -565,10 +624,12 @@ smalltalk.addMethod(
565
624
  "_storeString",
566
625
  smalltalk.method({
567
626
  selector: "storeString",
568
- fn: function (){
569
- var self=this;
570
- return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
571
- return self;}
627
+ fn: function () {
628
+ var self = this;
629
+ var $1;
630
+ $1 = smalltalk.send(smalltalk.String || String, "_streamContents_", [function (s) {return smalltalk.send(self, "_storeOn_", [s]);}]);
631
+ return $1;
632
+ }
572
633
  }),
573
634
  smalltalk.Object);
574
635
 
@@ -576,10 +637,23 @@ smalltalk.addMethod(
576
637
  "_subclassResponsibility",
577
638
  smalltalk.method({
578
639
  selector: "subclassResponsibility",
579
- fn: function (){
580
- var self=this;
581
- smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
582
- return self;}
640
+ fn: function () {
641
+ var self = this;
642
+ smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
643
+ return self;
644
+ }
645
+ }),
646
+ smalltalk.Object);
647
+
648
+ smalltalk.addMethod(
649
+ "_throw_",
650
+ smalltalk.method({
651
+ selector: "throw:",
652
+ fn: function (anObject) {
653
+ var self = this;
654
+ throw anObject;
655
+ return self;
656
+ }
583
657
  }),
584
658
  smalltalk.Object);
585
659
 
@@ -587,11 +661,27 @@ smalltalk.addMethod(
587
661
  "_try_catch_",
588
662
  smalltalk.method({
589
663
  selector: "try:catch:",
590
- fn: function (aBlock, anotherBlock){
591
- var self=this;
592
- try{result = aBlock()} catch(e) {result = anotherBlock(e)};
593
- return result;;
594
- return self;}
664
+ fn: function (aBlock, anotherBlock) {
665
+ var self = this;
666
+ try {
667
+ result = aBlock();
668
+ } catch (e) {
669
+ result = anotherBlock(e);
670
+ }
671
+ return result;
672
+ return self;
673
+ }
674
+ }),
675
+ smalltalk.Object);
676
+
677
+ smalltalk.addMethod(
678
+ "_value",
679
+ smalltalk.method({
680
+ selector: "value",
681
+ fn: function () {
682
+ var self = this;
683
+ return self;
684
+ }
595
685
  }),
596
686
  smalltalk.Object);
597
687
 
@@ -599,10 +689,10 @@ smalltalk.addMethod(
599
689
  "_yourself",
600
690
  smalltalk.method({
601
691
  selector: "yourself",
602
- fn: function (){
603
- var self=this;
604
- return self;
605
- return self;}
692
+ fn: function () {
693
+ var self = this;
694
+ return self;
695
+ }
606
696
  }),
607
697
  smalltalk.Object);
608
698
 
@@ -610,10 +700,12 @@ smalltalk.addMethod(
610
700
  "_~_eq",
611
701
  smalltalk.method({
612
702
  selector: "~=",
613
- fn: function (anObject){
614
- var self=this;
615
- return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
616
- return self;}
703
+ fn: function (anObject) {
704
+ var self = this;
705
+ var $1;
706
+ $1 = smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
707
+ return $1;
708
+ }
617
709
  }),
618
710
  smalltalk.Object);
619
711
 
@@ -621,10 +713,12 @@ smalltalk.addMethod(
621
713
  "_~~",
622
714
  smalltalk.method({
623
715
  selector: "~~",
624
- fn: function (anObject){
625
- var self=this;
626
- return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
627
- return self;}
716
+ fn: function (anObject) {
717
+ var self = this;
718
+ var $1;
719
+ $1 = smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
720
+ return $1;
721
+ }
628
722
  }),
629
723
  smalltalk.Object);
630
724
 
@@ -633,10 +727,10 @@ smalltalk.addMethod(
633
727
  "_initialize",
634
728
  smalltalk.method({
635
729
  selector: "initialize",
636
- fn: function (){
637
- var self=this;
638
-
639
- return self;}
730
+ fn: function () {
731
+ var self = this;
732
+ return self;
733
+ }
640
734
  }),
641
735
  smalltalk.Object.klass);
642
736
 
@@ -646,16 +740,15 @@ smalltalk.addMethod(
646
740
  "_&",
647
741
  smalltalk.method({
648
742
  selector: "&",
649
- fn: function (aBoolean){
650
- var self=this;
651
-
652
- if(self == true) {
653
- return aBoolean;
654
- } else {
655
- return false;
656
- }
657
- ;
658
- return self;}
743
+ fn: function (aBoolean) {
744
+ var self = this;
745
+ if (self == true) {
746
+ return aBoolean;
747
+ } else {
748
+ return false;
749
+ }
750
+ return self;
751
+ }
659
752
  }),
660
753
  smalltalk.Boolean);
661
754
 
@@ -663,13 +756,16 @@ smalltalk.addMethod(
663
756
  "__eq",
664
757
  smalltalk.method({
665
758
  selector: "=",
666
- fn: function (aBoolean){
667
- var self=this;
668
- var $early={};
669
- try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
670
- return Boolean(self == true) == aBoolean;
671
- return self;
672
- } catch(e) {if(e===$early)return e[0]; throw e}}
759
+ fn: function (aBoolean) {
760
+ var self = this;
761
+ var $1;
762
+ $1 = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]);
763
+ if (!smalltalk.assert($1)) {
764
+ return false;
765
+ }
766
+ return Boolean(self == true) == aBoolean;
767
+ return self;
768
+ }
673
769
  }),
674
770
  smalltalk.Boolean);
675
771
 
@@ -677,10 +773,12 @@ smalltalk.addMethod(
677
773
  "__eq_eq",
678
774
  smalltalk.method({
679
775
  selector: "==",
680
- fn: function (aBoolean){
681
- var self=this;
682
- return smalltalk.send(self, "__eq", [aBoolean]);
683
- return self;}
776
+ fn: function (aBoolean) {
777
+ var self = this;
778
+ var $1;
779
+ $1 = smalltalk.send(self, "__eq", [aBoolean]);
780
+ return $1;
781
+ }
684
782
  }),
685
783
  smalltalk.Boolean);
686
784
 
@@ -688,10 +786,13 @@ smalltalk.addMethod(
688
786
  "_and_",
689
787
  smalltalk.method({
690
788
  selector: "and:",
691
- fn: function (aBlock){
692
- var self=this;
693
- return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
694
- return self;}
789
+ fn: function (aBlock) {
790
+ var self = this;
791
+ var $2, $1;
792
+ $2 = smalltalk.send(self, "__eq", [true]);
793
+ $1 = smalltalk.send($2, "_ifTrue_ifFalse_", [aBlock, function () {return false;}]);
794
+ return $1;
795
+ }
695
796
  }),
696
797
  smalltalk.Boolean);
697
798
 
@@ -699,10 +800,10 @@ smalltalk.addMethod(
699
800
  "_asJSON",
700
801
  smalltalk.method({
701
802
  selector: "asJSON",
702
- fn: function (){
703
- var self=this;
704
- return self;
705
- return self;}
803
+ fn: function () {
804
+ var self = this;
805
+ return self;
806
+ }
706
807
  }),
707
808
  smalltalk.Boolean);
708
809
 
@@ -710,10 +811,10 @@ smalltalk.addMethod(
710
811
  "_deepCopy",
711
812
  smalltalk.method({
712
813
  selector: "deepCopy",
713
- fn: function (){
714
- var self=this;
715
- return self;
716
- return self;}
814
+ fn: function () {
815
+ var self = this;
816
+ return self;
817
+ }
717
818
  }),
718
819
  smalltalk.Boolean);
719
820
 
@@ -721,10 +822,12 @@ smalltalk.addMethod(
721
822
  "_ifFalse_",
722
823
  smalltalk.method({
723
824
  selector: "ifFalse:",
724
- fn: function (aBlock){
725
- var self=this;
726
- return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
727
- return self;}
825
+ fn: function (aBlock) {
826
+ var self = this;
827
+ var $1;
828
+ $1 = smalltalk.send(self, "_ifTrue_ifFalse_", [function () {}, aBlock]);
829
+ return $1;
830
+ }
728
831
  }),
729
832
  smalltalk.Boolean);
730
833
 
@@ -732,10 +835,12 @@ smalltalk.addMethod(
732
835
  "_ifFalse_ifTrue_",
733
836
  smalltalk.method({
734
837
  selector: "ifFalse:ifTrue:",
735
- fn: function (aBlock, anotherBlock){
736
- var self=this;
737
- return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
738
- return self;}
838
+ fn: function (aBlock, anotherBlock) {
839
+ var self = this;
840
+ var $1;
841
+ $1 = smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
842
+ return $1;
843
+ }
739
844
  }),
740
845
  smalltalk.Boolean);
741
846
 
@@ -743,10 +848,12 @@ smalltalk.addMethod(
743
848
  "_ifTrue_",
744
849
  smalltalk.method({
745
850
  selector: "ifTrue:",
746
- fn: function (aBlock){
747
- var self=this;
748
- return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
749
- return self;}
851
+ fn: function (aBlock) {
852
+ var self = this;
853
+ var $1;
854
+ $1 = smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, function () {}]);
855
+ return $1;
856
+ }
750
857
  }),
751
858
  smalltalk.Boolean);
752
859
 
@@ -754,16 +861,15 @@ smalltalk.addMethod(
754
861
  "_ifTrue_ifFalse_",
755
862
  smalltalk.method({
756
863
  selector: "ifTrue:ifFalse:",
757
- fn: function (aBlock, anotherBlock){
758
- var self=this;
759
-
760
- if(self == true) {
761
- return aBlock();
762
- } else {
763
- return anotherBlock();
764
- }
765
- ;
766
- return self;}
864
+ fn: function (aBlock, anotherBlock) {
865
+ var self = this;
866
+ if (self == true) {
867
+ return aBlock();
868
+ } else {
869
+ return anotherBlock();
870
+ }
871
+ return self;
872
+ }
767
873
  }),
768
874
  smalltalk.Boolean);
769
875
 
@@ -771,10 +877,12 @@ smalltalk.addMethod(
771
877
  "_not",
772
878
  smalltalk.method({
773
879
  selector: "not",
774
- fn: function (){
775
- var self=this;
776
- return smalltalk.send(self, "__eq", [false]);
777
- return self;}
880
+ fn: function () {
881
+ var self = this;
882
+ var $1;
883
+ $1 = smalltalk.send(self, "__eq", [false]);
884
+ return $1;
885
+ }
778
886
  }),
779
887
  smalltalk.Boolean);
780
888
 
@@ -782,10 +890,13 @@ smalltalk.addMethod(
782
890
  "_or_",
783
891
  smalltalk.method({
784
892
  selector: "or:",
785
- fn: function (aBlock){
786
- var self=this;
787
- return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
788
- return self;}
893
+ fn: function (aBlock) {
894
+ var self = this;
895
+ var $2, $1;
896
+ $2 = smalltalk.send(self, "__eq", [true]);
897
+ $1 = smalltalk.send($2, "_ifTrue_ifFalse_", [function () {return true;}, aBlock]);
898
+ return $1;
899
+ }
789
900
  }),
790
901
  smalltalk.Boolean);
791
902
 
@@ -793,10 +904,11 @@ smalltalk.addMethod(
793
904
  "_printString",
794
905
  smalltalk.method({
795
906
  selector: "printString",
796
- fn: function (){
797
- var self=this;
798
- return self.toString();
799
- return self;}
907
+ fn: function () {
908
+ var self = this;
909
+ return self.toString();
910
+ return self;
911
+ }
800
912
  }),
801
913
  smalltalk.Boolean);
802
914
 
@@ -804,10 +916,10 @@ smalltalk.addMethod(
804
916
  "_shallowCopy",
805
917
  smalltalk.method({
806
918
  selector: "shallowCopy",
807
- fn: function (){
808
- var self=this;
809
- return self;
810
- return self;}
919
+ fn: function () {
920
+ var self = this;
921
+ return self;
922
+ }
811
923
  }),
812
924
  smalltalk.Boolean);
813
925
 
@@ -815,16 +927,15 @@ smalltalk.addMethod(
815
927
  "_|",
816
928
  smalltalk.method({
817
929
  selector: "|",
818
- fn: function (aBoolean){
819
- var self=this;
820
-
821
- if(self == true) {
822
- return true;
823
- } else {
824
- return aBoolean;
825
- }
826
- ;
827
- return self;}
930
+ fn: function (aBoolean) {
931
+ var self = this;
932
+ if (self == true) {
933
+ return true;
934
+ } else {
935
+ return aBoolean;
936
+ }
937
+ return self;
938
+ }
828
939
  }),
829
940
  smalltalk.Boolean);
830
941
 
@@ -835,10 +946,11 @@ smalltalk.addMethod(
835
946
  "__plus",
836
947
  smalltalk.method({
837
948
  selector: "+",
838
- fn: function (aDate){
839
- var self=this;
840
- return self + aDate;
841
- return self;}
949
+ fn: function (aDate) {
950
+ var self = this;
951
+ return self + aDate;
952
+ return self;
953
+ }
842
954
  }),
843
955
  smalltalk.Date);
844
956
 
@@ -846,10 +958,11 @@ smalltalk.addMethod(
846
958
  "__minus",
847
959
  smalltalk.method({
848
960
  selector: "-",
849
- fn: function (aDate){
850
- var self=this;
851
- return self - aDate;
852
- return self;}
961
+ fn: function (aDate) {
962
+ var self = this;
963
+ return self - aDate;
964
+ return self;
965
+ }
853
966
  }),
854
967
  smalltalk.Date);
855
968
 
@@ -857,10 +970,11 @@ smalltalk.addMethod(
857
970
  "__lt",
858
971
  smalltalk.method({
859
972
  selector: "<",
860
- fn: function (aDate){
861
- var self=this;
862
- return self < aDate;
863
- return self;}
973
+ fn: function (aDate) {
974
+ var self = this;
975
+ return self < aDate;
976
+ return self;
977
+ }
864
978
  }),
865
979
  smalltalk.Date);
866
980
 
@@ -868,10 +982,11 @@ smalltalk.addMethod(
868
982
  "__lt_eq",
869
983
  smalltalk.method({
870
984
  selector: "<=",
871
- fn: function (aDate){
872
- var self=this;
873
- return self <= aDate;
874
- return self;}
985
+ fn: function (aDate) {
986
+ var self = this;
987
+ return self <= aDate;
988
+ return self;
989
+ }
875
990
  }),
876
991
  smalltalk.Date);
877
992
 
@@ -879,10 +994,11 @@ smalltalk.addMethod(
879
994
  "__gt",
880
995
  smalltalk.method({
881
996
  selector: ">",
882
- fn: function (aDate){
883
- var self=this;
884
- return self > aDate;
885
- return self;}
997
+ fn: function (aDate) {
998
+ var self = this;
999
+ return self > aDate;
1000
+ return self;
1001
+ }
886
1002
  }),
887
1003
  smalltalk.Date);
888
1004
 
@@ -890,10 +1006,11 @@ smalltalk.addMethod(
890
1006
  "__gt_eq",
891
1007
  smalltalk.method({
892
1008
  selector: ">=",
893
- fn: function (aDate){
894
- var self=this;
895
- return self >= aDate;
896
- return self;}
1009
+ fn: function (aDate) {
1010
+ var self = this;
1011
+ return self >= aDate;
1012
+ return self;
1013
+ }
897
1014
  }),
898
1015
  smalltalk.Date);
899
1016
 
@@ -901,10 +1018,11 @@ smalltalk.addMethod(
901
1018
  "_asDateString",
902
1019
  smalltalk.method({
903
1020
  selector: "asDateString",
904
- fn: function (){
905
- var self=this;
906
- return self.toDateString();
907
- return self;}
1021
+ fn: function () {
1022
+ var self = this;
1023
+ return self.toDateString();
1024
+ return self;
1025
+ }
908
1026
  }),
909
1027
  smalltalk.Date);
910
1028
 
@@ -912,10 +1030,11 @@ smalltalk.addMethod(
912
1030
  "_asLocaleString",
913
1031
  smalltalk.method({
914
1032
  selector: "asLocaleString",
915
- fn: function (){
916
- var self=this;
917
- return self.toLocaleString();
918
- return self;}
1033
+ fn: function () {
1034
+ var self = this;
1035
+ return self.toLocaleString();
1036
+ return self;
1037
+ }
919
1038
  }),
920
1039
  smalltalk.Date);
921
1040
 
@@ -923,10 +1042,12 @@ smalltalk.addMethod(
923
1042
  "_asMilliseconds",
924
1043
  smalltalk.method({
925
1044
  selector: "asMilliseconds",
926
- fn: function (){
927
- var self=this;
928
- return smalltalk.send(self, "_time", []);
929
- return self;}
1045
+ fn: function () {
1046
+ var self = this;
1047
+ var $1;
1048
+ $1 = smalltalk.send(self, "_time", []);
1049
+ return $1;
1050
+ }
930
1051
  }),
931
1052
  smalltalk.Date);
932
1053
 
@@ -934,10 +1055,12 @@ smalltalk.addMethod(
934
1055
  "_asNumber",
935
1056
  smalltalk.method({
936
1057
  selector: "asNumber",
937
- fn: function (){
938
- var self=this;
939
- return smalltalk.send(self, "_asMilliseconds", []);
940
- return self;}
1058
+ fn: function () {
1059
+ var self = this;
1060
+ var $1;
1061
+ $1 = smalltalk.send(self, "_asMilliseconds", []);
1062
+ return $1;
1063
+ }
941
1064
  }),
942
1065
  smalltalk.Date);
943
1066
 
@@ -945,10 +1068,11 @@ smalltalk.addMethod(
945
1068
  "_asString",
946
1069
  smalltalk.method({
947
1070
  selector: "asString",
948
- fn: function (){
949
- var self=this;
950
- return self.toString();
951
- return self;}
1071
+ fn: function () {
1072
+ var self = this;
1073
+ return self.toString();
1074
+ return self;
1075
+ }
952
1076
  }),
953
1077
  smalltalk.Date);
954
1078
 
@@ -956,10 +1080,11 @@ smalltalk.addMethod(
956
1080
  "_asTimeString",
957
1081
  smalltalk.method({
958
1082
  selector: "asTimeString",
959
- fn: function (){
960
- var self=this;
961
- return self.toTimeString();
962
- return self;}
1083
+ fn: function () {
1084
+ var self = this;
1085
+ return self.toTimeString();
1086
+ return self;
1087
+ }
963
1088
  }),
964
1089
  smalltalk.Date);
965
1090
 
@@ -967,10 +1092,12 @@ smalltalk.addMethod(
967
1092
  "_day",
968
1093
  smalltalk.method({
969
1094
  selector: "day",
970
- fn: function (){
971
- var self=this;
972
- return smalltalk.send(self, "_dayOfWeek", []);
973
- return self;}
1095
+ fn: function () {
1096
+ var self = this;
1097
+ var $1;
1098
+ $1 = smalltalk.send(self, "_dayOfWeek", []);
1099
+ return $1;
1100
+ }
974
1101
  }),
975
1102
  smalltalk.Date);
976
1103
 
@@ -978,10 +1105,11 @@ smalltalk.addMethod(
978
1105
  "_day_",
979
1106
  smalltalk.method({
980
1107
  selector: "day:",
981
- fn: function (aNumber){
982
- var self=this;
983
- smalltalk.send(self, "_dayOfWeek_", [aNumber]);
984
- return self;}
1108
+ fn: function (aNumber) {
1109
+ var self = this;
1110
+ smalltalk.send(self, "_dayOfWeek_", [aNumber]);
1111
+ return self;
1112
+ }
985
1113
  }),
986
1114
  smalltalk.Date);
987
1115
 
@@ -989,10 +1117,11 @@ smalltalk.addMethod(
989
1117
  "_dayOfMonth",
990
1118
  smalltalk.method({
991
1119
  selector: "dayOfMonth",
992
- fn: function (){
993
- var self=this;
994
- return self.getDate();
995
- return self;}
1120
+ fn: function () {
1121
+ var self = this;
1122
+ return self.getDate();
1123
+ return self;
1124
+ }
996
1125
  }),
997
1126
  smalltalk.Date);
998
1127
 
@@ -1000,10 +1129,11 @@ smalltalk.addMethod(
1000
1129
  "_dayOfMonth_",
1001
1130
  smalltalk.method({
1002
1131
  selector: "dayOfMonth:",
1003
- fn: function (aNumber){
1004
- var self=this;
1005
- self.setDate(aNumber);
1006
- return self;}
1132
+ fn: function (aNumber) {
1133
+ var self = this;
1134
+ self.setDate(aNumber);
1135
+ return self;
1136
+ }
1007
1137
  }),
1008
1138
  smalltalk.Date);
1009
1139
 
@@ -1011,10 +1141,11 @@ smalltalk.addMethod(
1011
1141
  "_dayOfWeek",
1012
1142
  smalltalk.method({
1013
1143
  selector: "dayOfWeek",
1014
- fn: function (){
1015
- var self=this;
1016
- return self.getDay() + 1;
1017
- return self;}
1144
+ fn: function () {
1145
+ var self = this;
1146
+ return self.getDay() + 1;
1147
+ return self;
1148
+ }
1018
1149
  }),
1019
1150
  smalltalk.Date);
1020
1151
 
@@ -1022,10 +1153,11 @@ smalltalk.addMethod(
1022
1153
  "_dayOfWeek_",
1023
1154
  smalltalk.method({
1024
1155
  selector: "dayOfWeek:",
1025
- fn: function (aNumber){
1026
- var self=this;
1027
- return self.setDay(aNumber - 1);
1028
- return self;}
1156
+ fn: function (aNumber) {
1157
+ var self = this;
1158
+ return self.setDay(aNumber - 1);
1159
+ return self;
1160
+ }
1029
1161
  }),
1030
1162
  smalltalk.Date);
1031
1163
 
@@ -1033,10 +1165,11 @@ smalltalk.addMethod(
1033
1165
  "_hours",
1034
1166
  smalltalk.method({
1035
1167
  selector: "hours",
1036
- fn: function (){
1037
- var self=this;
1038
- return self.getHours();
1039
- return self;}
1168
+ fn: function () {
1169
+ var self = this;
1170
+ return self.getHours();
1171
+ return self;
1172
+ }
1040
1173
  }),
1041
1174
  smalltalk.Date);
1042
1175
 
@@ -1044,10 +1177,11 @@ smalltalk.addMethod(
1044
1177
  "_hours_",
1045
1178
  smalltalk.method({
1046
1179
  selector: "hours:",
1047
- fn: function (aNumber){
1048
- var self=this;
1049
- self.setHours(aNumber);
1050
- return self;}
1180
+ fn: function (aNumber) {
1181
+ var self = this;
1182
+ self.setHours(aNumber);
1183
+ return self;
1184
+ }
1051
1185
  }),
1052
1186
  smalltalk.Date);
1053
1187
 
@@ -1055,10 +1189,11 @@ smalltalk.addMethod(
1055
1189
  "_milliseconds",
1056
1190
  smalltalk.method({
1057
1191
  selector: "milliseconds",
1058
- fn: function (){
1059
- var self=this;
1060
- return self.getMilliseconds();
1061
- return self;}
1192
+ fn: function () {
1193
+ var self = this;
1194
+ return self.getMilliseconds();
1195
+ return self;
1196
+ }
1062
1197
  }),
1063
1198
  smalltalk.Date);
1064
1199
 
@@ -1066,10 +1201,11 @@ smalltalk.addMethod(
1066
1201
  "_milliseconds_",
1067
1202
  smalltalk.method({
1068
1203
  selector: "milliseconds:",
1069
- fn: function (aNumber){
1070
- var self=this;
1071
- self.setMilliseconds(aNumber);
1072
- return self;}
1204
+ fn: function (aNumber) {
1205
+ var self = this;
1206
+ self.setMilliseconds(aNumber);
1207
+ return self;
1208
+ }
1073
1209
  }),
1074
1210
  smalltalk.Date);
1075
1211
 
@@ -1077,10 +1213,11 @@ smalltalk.addMethod(
1077
1213
  "_minutes",
1078
1214
  smalltalk.method({
1079
1215
  selector: "minutes",
1080
- fn: function (){
1081
- var self=this;
1082
- return self.getMinutes();
1083
- return self;}
1216
+ fn: function () {
1217
+ var self = this;
1218
+ return self.getMinutes();
1219
+ return self;
1220
+ }
1084
1221
  }),
1085
1222
  smalltalk.Date);
1086
1223
 
@@ -1088,10 +1225,11 @@ smalltalk.addMethod(
1088
1225
  "_minutes_",
1089
1226
  smalltalk.method({
1090
1227
  selector: "minutes:",
1091
- fn: function (aNumber){
1092
- var self=this;
1093
- self.setMinutes(aNumber);
1094
- return self;}
1228
+ fn: function (aNumber) {
1229
+ var self = this;
1230
+ self.setMinutes(aNumber);
1231
+ return self;
1232
+ }
1095
1233
  }),
1096
1234
  smalltalk.Date);
1097
1235
 
@@ -1099,10 +1237,11 @@ smalltalk.addMethod(
1099
1237
  "_month",
1100
1238
  smalltalk.method({
1101
1239
  selector: "month",
1102
- fn: function (){
1103
- var self=this;
1104
- return self.getMonth() + 1;
1105
- return self;}
1240
+ fn: function () {
1241
+ var self = this;
1242
+ return self.getMonth() + 1;
1243
+ return self;
1244
+ }
1106
1245
  }),
1107
1246
  smalltalk.Date);
1108
1247
 
@@ -1110,10 +1249,11 @@ smalltalk.addMethod(
1110
1249
  "_month_",
1111
1250
  smalltalk.method({
1112
1251
  selector: "month:",
1113
- fn: function (aNumber){
1114
- var self=this;
1115
- self.setMonth(aNumber - 1);
1116
- return self;}
1252
+ fn: function (aNumber) {
1253
+ var self = this;
1254
+ self.setMonth(aNumber - 1);
1255
+ return self;
1256
+ }
1117
1257
  }),
1118
1258
  smalltalk.Date);
1119
1259
 
@@ -1121,10 +1261,12 @@ smalltalk.addMethod(
1121
1261
  "_printString",
1122
1262
  smalltalk.method({
1123
1263
  selector: "printString",
1124
- fn: function (){
1125
- var self=this;
1126
- return smalltalk.send(self, "_asString", []);
1127
- return self;}
1264
+ fn: function () {
1265
+ var self = this;
1266
+ var $1;
1267
+ $1 = smalltalk.send(self, "_asString", []);
1268
+ return $1;
1269
+ }
1128
1270
  }),
1129
1271
  smalltalk.Date);
1130
1272
 
@@ -1132,10 +1274,11 @@ smalltalk.addMethod(
1132
1274
  "_seconds",
1133
1275
  smalltalk.method({
1134
1276
  selector: "seconds",
1135
- fn: function (){
1136
- var self=this;
1137
- return self.getSeconds();
1138
- return self;}
1277
+ fn: function () {
1278
+ var self = this;
1279
+ return self.getSeconds();
1280
+ return self;
1281
+ }
1139
1282
  }),
1140
1283
  smalltalk.Date);
1141
1284
 
@@ -1143,10 +1286,11 @@ smalltalk.addMethod(
1143
1286
  "_seconds_",
1144
1287
  smalltalk.method({
1145
1288
  selector: "seconds:",
1146
- fn: function (aNumber){
1147
- var self=this;
1148
- self.setSeconds(aNumber);
1149
- return self;}
1289
+ fn: function (aNumber) {
1290
+ var self = this;
1291
+ self.setSeconds(aNumber);
1292
+ return self;
1293
+ }
1150
1294
  }),
1151
1295
  smalltalk.Date);
1152
1296
 
@@ -1154,10 +1298,11 @@ smalltalk.addMethod(
1154
1298
  "_time",
1155
1299
  smalltalk.method({
1156
1300
  selector: "time",
1157
- fn: function (){
1158
- var self=this;
1159
- return self.getTime();
1160
- return self;}
1301
+ fn: function () {
1302
+ var self = this;
1303
+ return self.getTime();
1304
+ return self;
1305
+ }
1161
1306
  }),
1162
1307
  smalltalk.Date);
1163
1308
 
@@ -1165,10 +1310,11 @@ smalltalk.addMethod(
1165
1310
  "_time_",
1166
1311
  smalltalk.method({
1167
1312
  selector: "time:",
1168
- fn: function (aNumber){
1169
- var self=this;
1170
- self.setTime(aNumber);
1171
- return self;}
1313
+ fn: function (aNumber) {
1314
+ var self = this;
1315
+ self.setTime(aNumber);
1316
+ return self;
1317
+ }
1172
1318
  }),
1173
1319
  smalltalk.Date);
1174
1320
 
@@ -1176,10 +1322,11 @@ smalltalk.addMethod(
1176
1322
  "_year",
1177
1323
  smalltalk.method({
1178
1324
  selector: "year",
1179
- fn: function (){
1180
- var self=this;
1181
- return self.getFullYear();
1182
- return self;}
1325
+ fn: function () {
1326
+ var self = this;
1327
+ return self.getFullYear();
1328
+ return self;
1329
+ }
1183
1330
  }),
1184
1331
  smalltalk.Date);
1185
1332
 
@@ -1187,10 +1334,11 @@ smalltalk.addMethod(
1187
1334
  "_year_",
1188
1335
  smalltalk.method({
1189
1336
  selector: "year:",
1190
- fn: function (aNumber){
1191
- var self=this;
1192
- self.setFullYear(aNumber);
1193
- return self;}
1337
+ fn: function (aNumber) {
1338
+ var self = this;
1339
+ self.setFullYear(aNumber);
1340
+ return self;
1341
+ }
1194
1342
  }),
1195
1343
  smalltalk.Date);
1196
1344
 
@@ -1199,10 +1347,12 @@ smalltalk.addMethod(
1199
1347
  "_fromMilliseconds_",
1200
1348
  smalltalk.method({
1201
1349
  selector: "fromMilliseconds:",
1202
- fn: function (aNumber){
1203
- var self=this;
1204
- return smalltalk.send(self, "_new_", [aNumber]);
1205
- return self;}
1350
+ fn: function (aNumber) {
1351
+ var self = this;
1352
+ var $1;
1353
+ $1 = smalltalk.send(self, "_new_", [aNumber]);
1354
+ return $1;
1355
+ }
1206
1356
  }),
1207
1357
  smalltalk.Date.klass);
1208
1358
 
@@ -1210,10 +1360,12 @@ smalltalk.addMethod(
1210
1360
  "_fromSeconds_",
1211
1361
  smalltalk.method({
1212
1362
  selector: "fromSeconds:",
1213
- fn: function (aNumber){
1214
- var self=this;
1215
- return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
1216
- return self;}
1363
+ fn: function (aNumber) {
1364
+ var self = this;
1365
+ var $1;
1366
+ $1 = smalltalk.send(self, "_fromMilliseconds_", [smalltalk.send(aNumber, "__star", [1000])]);
1367
+ return $1;
1368
+ }
1217
1369
  }),
1218
1370
  smalltalk.Date.klass);
1219
1371
 
@@ -1221,10 +1373,12 @@ smalltalk.addMethod(
1221
1373
  "_fromString_",
1222
1374
  smalltalk.method({
1223
1375
  selector: "fromString:",
1224
- fn: function (aString){
1225
- var self=this;
1226
- return smalltalk.send(self, "_new_", [aString]);
1227
- return self;}
1376
+ fn: function (aString) {
1377
+ var self = this;
1378
+ var $1;
1379
+ $1 = smalltalk.send(self, "_new_", [aString]);
1380
+ return $1;
1381
+ }
1228
1382
  }),
1229
1383
  smalltalk.Date.klass);
1230
1384
 
@@ -1232,13 +1386,15 @@ smalltalk.addMethod(
1232
1386
  "_millisecondsToRun_",
1233
1387
  smalltalk.method({
1234
1388
  selector: "millisecondsToRun:",
1235
- fn: function (aBlock){
1236
- var self=this;
1237
- var t=nil;
1238
- (t=smalltalk.send((smalltalk.Date || Date), "_now", []));
1239
- smalltalk.send(aBlock, "_value", []);
1240
- return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
1241
- return self;}
1389
+ fn: function (aBlock) {
1390
+ var self = this;
1391
+ var $1;
1392
+ var t;
1393
+ t = smalltalk.send(smalltalk.Date || Date, "_now", []);
1394
+ smalltalk.send(aBlock, "_value", []);
1395
+ $1 = smalltalk.send(smalltalk.send(smalltalk.Date || Date, "_now", []), "__minus", [t]);
1396
+ return $1;
1397
+ }
1242
1398
  }),
1243
1399
  smalltalk.Date.klass);
1244
1400
 
@@ -1246,10 +1402,11 @@ smalltalk.addMethod(
1246
1402
  "_new_",
1247
1403
  smalltalk.method({
1248
1404
  selector: "new:",
1249
- fn: function (anObject){
1250
- var self=this;
1251
- return new Date(anObject);
1252
- return self;}
1405
+ fn: function (anObject) {
1406
+ var self = this;
1407
+ return new Date(anObject);
1408
+ return self;
1409
+ }
1253
1410
  }),
1254
1411
  smalltalk.Date.klass);
1255
1412
 
@@ -1257,10 +1414,12 @@ smalltalk.addMethod(
1257
1414
  "_now",
1258
1415
  smalltalk.method({
1259
1416
  selector: "now",
1260
- fn: function (){
1261
- var self=this;
1262
- return smalltalk.send(self, "_today", []);
1263
- return self;}
1417
+ fn: function () {
1418
+ var self = this;
1419
+ var $1;
1420
+ $1 = smalltalk.send(self, "_today", []);
1421
+ return $1;
1422
+ }
1264
1423
  }),
1265
1424
  smalltalk.Date.klass);
1266
1425
 
@@ -1268,10 +1427,12 @@ smalltalk.addMethod(
1268
1427
  "_today",
1269
1428
  smalltalk.method({
1270
1429
  selector: "today",
1271
- fn: function (){
1272
- var self=this;
1273
- return smalltalk.send(self, "_new", []);
1274
- return self;}
1430
+ fn: function () {
1431
+ var self = this;
1432
+ var $1;
1433
+ $1 = smalltalk.send(self, "_new", []);
1434
+ return $1;
1435
+ }
1275
1436
  }),
1276
1437
  smalltalk.Date.klass);
1277
1438
 
@@ -1281,12 +1442,13 @@ smalltalk.addMethod(
1281
1442
  "_at_",
1282
1443
  smalltalk.method({
1283
1444
  selector: "at:",
1284
- fn: function (aSymbol){
1285
- var self=this;
1286
- var attr=nil;
1287
- (attr=smalltalk.send(aSymbol, "_asString", []));
1288
- return self['@jsObject'][attr];
1289
- return self;}
1445
+ fn: function (aSymbol) {
1446
+ var self = this;
1447
+ var attr;
1448
+ attr = smalltalk.send(aSymbol, "_asString", []);
1449
+ return self['@jsObject'][attr];
1450
+ return self;
1451
+ }
1290
1452
  }),
1291
1453
  smalltalk.JSObjectProxy);
1292
1454
 
@@ -1294,12 +1456,13 @@ smalltalk.addMethod(
1294
1456
  "_at_put_",
1295
1457
  smalltalk.method({
1296
1458
  selector: "at:put:",
1297
- fn: function (aSymbol, anObject){
1298
- var self=this;
1299
- var attr=nil;
1300
- (attr=smalltalk.send(aSymbol, "_asString", []));
1301
- self['@jsObject'][attr] = anObject;
1302
- return self;}
1459
+ fn: function (aSymbol, anObject) {
1460
+ var self = this;
1461
+ var attr;
1462
+ attr = smalltalk.send(aSymbol, "_asString", []);
1463
+ self['@jsObject'][attr] = anObject;
1464
+ return self;
1465
+ }
1303
1466
  }),
1304
1467
  smalltalk.JSObjectProxy);
1305
1468
 
@@ -1307,19 +1470,22 @@ smalltalk.addMethod(
1307
1470
  "_doesNotUnderstand_",
1308
1471
  smalltalk.method({
1309
1472
  selector: "doesNotUnderstand:",
1310
- fn: function (aMessage){
1311
- var self=this;
1312
- var obj=nil;
1313
- var selector=nil;
1314
- var jsSelector=nil;
1315
- var arguments=nil;
1316
- (obj=smalltalk.send(self, "_jsObject", []));
1317
- (selector=smalltalk.send(aMessage, "_selector", []));
1318
- (jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []));
1319
- (arguments=smalltalk.send(aMessage, "_arguments", []));
1320
- if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
1321
- smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.JSObjectProxy.superclass || nil);
1322
- return self;}
1473
+ fn: function (aMessage) {
1474
+ var self = this;
1475
+ var obj;
1476
+ var selector;
1477
+ var jsSelector;
1478
+ var arguments;
1479
+ obj = smalltalk.send(self, "_jsObject", []);
1480
+ selector = smalltalk.send(aMessage, "_selector", []);
1481
+ jsSelector = smalltalk.send(selector, "_asJavaScriptSelector", []);
1482
+ arguments = smalltalk.send(aMessage, "_arguments", []);
1483
+ if (obj[jsSelector] != undefined) {
1484
+ return smalltalk.send(obj, jsSelector, arguments);
1485
+ }
1486
+ smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
1487
+ return self;
1488
+ }
1323
1489
  }),
1324
1490
  smalltalk.JSObjectProxy);
1325
1491
 
@@ -1327,17 +1493,18 @@ smalltalk.addMethod(
1327
1493
  "_inspectOn_",
1328
1494
  smalltalk.method({
1329
1495
  selector: "inspectOn:",
1330
- fn: function (anInspector){
1331
- var self=this;
1332
- var variables=nil;
1333
- (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
1334
- smalltalk.send(variables, "_at_put_", ["#self", smalltalk.send(self, "_jsObject", [])]);
1335
- smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
1336
- for(var i in self['@jsObject']) {
1337
- variables._at_put_(i, self['@jsObject'][i]);
1338
- };
1339
- smalltalk.send(anInspector, "_setVariables_", [variables]);
1340
- return self;}
1496
+ fn: function (anInspector) {
1497
+ var self = this;
1498
+ var variables;
1499
+ variables = smalltalk.send(smalltalk.Dictionary || Dictionary, "_new", []);
1500
+ smalltalk.send(variables, "_at_put_", ["#self", smalltalk.send(self, "_jsObject", [])]);
1501
+ smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
1502
+ for (var i in self['@jsObject']) {
1503
+ variables._at_put_(i, self['@jsObject'][i]);
1504
+ }
1505
+ smalltalk.send(anInspector, "_setVariables_", [variables]);
1506
+ return self;
1507
+ }
1341
1508
  }),
1342
1509
  smalltalk.JSObjectProxy);
1343
1510
 
@@ -1345,10 +1512,10 @@ smalltalk.addMethod(
1345
1512
  "_jsObject",
1346
1513
  smalltalk.method({
1347
1514
  selector: "jsObject",
1348
- fn: function (){
1349
- var self=this;
1350
- return self['@jsObject'];
1351
- return self;}
1515
+ fn: function () {
1516
+ var self = this;
1517
+ return self['@jsObject'];
1518
+ }
1352
1519
  }),
1353
1520
  smalltalk.JSObjectProxy);
1354
1521
 
@@ -1356,10 +1523,11 @@ smalltalk.addMethod(
1356
1523
  "_jsObject_",
1357
1524
  smalltalk.method({
1358
1525
  selector: "jsObject:",
1359
- fn: function (aJSObject){
1360
- var self=this;
1361
- (self['@jsObject']=aJSObject);
1362
- return self;}
1526
+ fn: function (aJSObject) {
1527
+ var self = this;
1528
+ self['@jsObject'] = aJSObject;
1529
+ return self;
1530
+ }
1363
1531
  }),
1364
1532
  smalltalk.JSObjectProxy);
1365
1533
 
@@ -1367,10 +1535,12 @@ smalltalk.addMethod(
1367
1535
  "_printString",
1368
1536
  smalltalk.method({
1369
1537
  selector: "printString",
1370
- fn: function (){
1371
- var self=this;
1372
- return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
1373
- return self;}
1538
+ fn: function () {
1539
+ var self = this;
1540
+ var $1;
1541
+ $1 = smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
1542
+ return $1;
1543
+ }
1374
1544
  }),
1375
1545
  smalltalk.JSObjectProxy);
1376
1546
 
@@ -1379,10 +1549,15 @@ smalltalk.addMethod(
1379
1549
  "_on_",
1380
1550
  smalltalk.method({
1381
1551
  selector: "on:",
1382
- fn: function (aJSObject){
1383
- var self=this;
1384
- return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
1385
- return self;}
1552
+ fn: function (aJSObject) {
1553
+ var self = this;
1554
+ var $2, $3, $1;
1555
+ $2 = smalltalk.send(self, "_new", []);
1556
+ smalltalk.send($2, "_jsObject_", [aJSObject]);
1557
+ $3 = smalltalk.send($2, "_yourself", []);
1558
+ $1 = $3;
1559
+ return $1;
1560
+ }
1386
1561
  }),
1387
1562
  smalltalk.JSObjectProxy.klass);
1388
1563
 
@@ -1392,10 +1567,11 @@ smalltalk.addMethod(
1392
1567
  "_&",
1393
1568
  smalltalk.method({
1394
1569
  selector: "&",
1395
- fn: function (aNumber){
1396
- var self=this;
1397
- return self & aNumber;
1398
- return self;}
1570
+ fn: function (aNumber) {
1571
+ var self = this;
1572
+ return self & aNumber;
1573
+ return self;
1574
+ }
1399
1575
  }),
1400
1576
  smalltalk.Number);
1401
1577
 
@@ -1403,10 +1579,11 @@ smalltalk.addMethod(
1403
1579
  "__star",
1404
1580
  smalltalk.method({
1405
1581
  selector: "*",
1406
- fn: function (aNumber){
1407
- var self=this;
1408
- return self * aNumber;
1409
- return self;}
1582
+ fn: function (aNumber) {
1583
+ var self = this;
1584
+ return self * aNumber;
1585
+ return self;
1586
+ }
1410
1587
  }),
1411
1588
  smalltalk.Number);
1412
1589
 
@@ -1414,10 +1591,11 @@ smalltalk.addMethod(
1414
1591
  "__plus",
1415
1592
  smalltalk.method({
1416
1593
  selector: "+",
1417
- fn: function (aNumber){
1418
- var self=this;
1419
- return self + aNumber;
1420
- return self;}
1594
+ fn: function (aNumber) {
1595
+ var self = this;
1596
+ return self + aNumber;
1597
+ return self;
1598
+ }
1421
1599
  }),
1422
1600
  smalltalk.Number);
1423
1601
 
@@ -1425,10 +1603,11 @@ smalltalk.addMethod(
1425
1603
  "__minus",
1426
1604
  smalltalk.method({
1427
1605
  selector: "-",
1428
- fn: function (aNumber){
1429
- var self=this;
1430
- return self - aNumber;
1431
- return self;}
1606
+ fn: function (aNumber) {
1607
+ var self = this;
1608
+ return self - aNumber;
1609
+ return self;
1610
+ }
1432
1611
  }),
1433
1612
  smalltalk.Number);
1434
1613
 
@@ -1436,10 +1615,11 @@ smalltalk.addMethod(
1436
1615
  "__slash",
1437
1616
  smalltalk.method({
1438
1617
  selector: "/",
1439
- fn: function (aNumber){
1440
- var self=this;
1441
- return self / aNumber;
1442
- return self;}
1618
+ fn: function (aNumber) {
1619
+ var self = this;
1620
+ return self / aNumber;
1621
+ return self;
1622
+ }
1443
1623
  }),
1444
1624
  smalltalk.Number);
1445
1625
 
@@ -1447,10 +1627,11 @@ smalltalk.addMethod(
1447
1627
  "__lt",
1448
1628
  smalltalk.method({
1449
1629
  selector: "<",
1450
- fn: function (aNumber){
1451
- var self=this;
1452
- return self < aNumber;
1453
- return self;}
1630
+ fn: function (aNumber) {
1631
+ var self = this;
1632
+ return self < aNumber;
1633
+ return self;
1634
+ }
1454
1635
  }),
1455
1636
  smalltalk.Number);
1456
1637
 
@@ -1458,10 +1639,11 @@ smalltalk.addMethod(
1458
1639
  "__lt_eq",
1459
1640
  smalltalk.method({
1460
1641
  selector: "<=",
1461
- fn: function (aNumber){
1462
- var self=this;
1463
- return self <= aNumber;
1464
- return self;}
1642
+ fn: function (aNumber) {
1643
+ var self = this;
1644
+ return self <= aNumber;
1645
+ return self;
1646
+ }
1465
1647
  }),
1466
1648
  smalltalk.Number);
1467
1649
 
@@ -1469,13 +1651,16 @@ smalltalk.addMethod(
1469
1651
  "__eq",
1470
1652
  smalltalk.method({
1471
1653
  selector: "=",
1472
- fn: function (aNumber){
1473
- var self=this;
1474
- var $early={};
1475
- try{((($receiver = smalltalk.send(aNumber, "_isNumber", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
1476
- return Number(self) == aNumber;
1477
- return self;
1478
- } catch(e) {if(e===$early)return e[0]; throw e}}
1654
+ fn: function (aNumber) {
1655
+ var self = this;
1656
+ var $1;
1657
+ $1 = smalltalk.send(aNumber, "_isNumber", []);
1658
+ if (!smalltalk.assert($1)) {
1659
+ return false;
1660
+ }
1661
+ return Number(self) == aNumber;
1662
+ return self;
1663
+ }
1479
1664
  }),
1480
1665
  smalltalk.Number);
1481
1666
 
@@ -1483,10 +1668,11 @@ smalltalk.addMethod(
1483
1668
  "__gt",
1484
1669
  smalltalk.method({
1485
1670
  selector: ">",
1486
- fn: function (aNumber){
1487
- var self=this;
1488
- return self > aNumber;
1489
- return self;}
1671
+ fn: function (aNumber) {
1672
+ var self = this;
1673
+ return self > aNumber;
1674
+ return self;
1675
+ }
1490
1676
  }),
1491
1677
  smalltalk.Number);
1492
1678
 
@@ -1494,10 +1680,11 @@ smalltalk.addMethod(
1494
1680
  "__gt_eq",
1495
1681
  smalltalk.method({
1496
1682
  selector: ">=",
1497
- fn: function (aNumber){
1498
- var self=this;
1499
- return self >= aNumber;
1500
- return self;}
1683
+ fn: function (aNumber) {
1684
+ var self = this;
1685
+ return self >= aNumber;
1686
+ return self;
1687
+ }
1501
1688
  }),
1502
1689
  smalltalk.Number);
1503
1690
 
@@ -1505,10 +1692,12 @@ smalltalk.addMethod(
1505
1692
  "__at",
1506
1693
  smalltalk.method({
1507
1694
  selector: "@",
1508
- fn: function (aNumber){
1509
- var self=this;
1510
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
1511
- return self;}
1695
+ fn: function (aNumber) {
1696
+ var self = this;
1697
+ var $1;
1698
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [self, aNumber]);
1699
+ return $1;
1700
+ }
1512
1701
  }),
1513
1702
  smalltalk.Number);
1514
1703
 
@@ -1516,10 +1705,24 @@ smalltalk.addMethod(
1516
1705
  "_\x5c\x5c",
1517
1706
  smalltalk.method({
1518
1707
  selector: "\x5c\x5c",
1519
- fn: function (aNumber){
1520
- var self=this;
1521
- return self % aNumber;
1522
- return self;}
1708
+ fn: function (aNumber) {
1709
+ var self = this;
1710
+ return self % aNumber;
1711
+ return self;
1712
+ }
1713
+ }),
1714
+ smalltalk.Number);
1715
+
1716
+ smalltalk.addMethod(
1717
+ "_abs",
1718
+ smalltalk.method({
1719
+ selector: "abs",
1720
+ fn: function () {
1721
+ var self = this;
1722
+ var $1;
1723
+ $1 = Math.abs(self);
1724
+ return $1;
1725
+ }
1523
1726
  }),
1524
1727
  smalltalk.Number);
1525
1728
 
@@ -1527,10 +1730,10 @@ smalltalk.addMethod(
1527
1730
  "_asJSON",
1528
1731
  smalltalk.method({
1529
1732
  selector: "asJSON",
1530
- fn: function (){
1531
- var self=this;
1532
- return self;
1533
- return self;}
1733
+ fn: function () {
1734
+ var self = this;
1735
+ return self;
1736
+ }
1534
1737
  }),
1535
1738
  smalltalk.Number);
1536
1739
 
@@ -1538,10 +1741,12 @@ smalltalk.addMethod(
1538
1741
  "_asJavascript",
1539
1742
  smalltalk.method({
1540
1743
  selector: "asJavascript",
1541
- fn: function (){
1542
- var self=this;
1543
- return smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [")"]);
1544
- return self;}
1744
+ fn: function () {
1745
+ var self = this;
1746
+ var $1;
1747
+ $1 = smalltalk.send(smalltalk.send("(", "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [")"]);
1748
+ return $1;
1749
+ }
1545
1750
  }),
1546
1751
  smalltalk.Number);
1547
1752
 
@@ -1549,10 +1754,12 @@ smalltalk.addMethod(
1549
1754
  "_asPoint",
1550
1755
  smalltalk.method({
1551
1756
  selector: "asPoint",
1552
- fn: function (){
1553
- var self=this;
1554
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
1555
- return self;}
1757
+ fn: function () {
1758
+ var self = this;
1759
+ var $1;
1760
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [self, self]);
1761
+ return $1;
1762
+ }
1556
1763
  }),
1557
1764
  smalltalk.Number);
1558
1765
 
@@ -1560,10 +1767,12 @@ smalltalk.addMethod(
1560
1767
  "_asString",
1561
1768
  smalltalk.method({
1562
1769
  selector: "asString",
1563
- fn: function (){
1564
- var self=this;
1565
- return smalltalk.send(self, "_printString", []);
1566
- return self;}
1770
+ fn: function () {
1771
+ var self = this;
1772
+ var $1;
1773
+ $1 = smalltalk.send(self, "_printString", []);
1774
+ return $1;
1775
+ }
1567
1776
  }),
1568
1777
  smalltalk.Number);
1569
1778
 
@@ -1571,10 +1780,12 @@ smalltalk.addMethod(
1571
1780
  "_atRandom",
1572
1781
  smalltalk.method({
1573
1782
  selector: "atRandom",
1574
- fn: function (){
1575
- var self=this;
1576
- return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
1577
- return self;}
1783
+ fn: function () {
1784
+ var self = this;
1785
+ var $1;
1786
+ $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Random || Random, "_new", []), "_next", []), "__star", [self]), "_truncated", []), "__plus", [1]);
1787
+ return $1;
1788
+ }
1578
1789
  }),
1579
1790
  smalltalk.Number);
1580
1791
 
@@ -1582,10 +1793,11 @@ smalltalk.addMethod(
1582
1793
  "_clearInterval",
1583
1794
  smalltalk.method({
1584
1795
  selector: "clearInterval",
1585
- fn: function (){
1586
- var self=this;
1587
- clearInterval(Number(self));
1588
- return self;}
1796
+ fn: function () {
1797
+ var self = this;
1798
+ clearInterval(Number(self));
1799
+ return self;
1800
+ }
1589
1801
  }),
1590
1802
  smalltalk.Number);
1591
1803
 
@@ -1593,10 +1805,11 @@ smalltalk.addMethod(
1593
1805
  "_clearTimeout",
1594
1806
  smalltalk.method({
1595
1807
  selector: "clearTimeout",
1596
- fn: function (){
1597
- var self=this;
1598
- clearTimeout(Number(self));
1599
- return self;}
1808
+ fn: function () {
1809
+ var self = this;
1810
+ clearTimeout(Number(self));
1811
+ return self;
1812
+ }
1600
1813
  }),
1601
1814
  smalltalk.Number);
1602
1815
 
@@ -1604,10 +1817,10 @@ smalltalk.addMethod(
1604
1817
  "_copy",
1605
1818
  smalltalk.method({
1606
1819
  selector: "copy",
1607
- fn: function (){
1608
- var self=this;
1609
- return self;
1610
- return self;}
1820
+ fn: function () {
1821
+ var self = this;
1822
+ return self;
1823
+ }
1611
1824
  }),
1612
1825
  smalltalk.Number);
1613
1826
 
@@ -1615,10 +1828,12 @@ smalltalk.addMethod(
1615
1828
  "_deepCopy",
1616
1829
  smalltalk.method({
1617
1830
  selector: "deepCopy",
1618
- fn: function (){
1619
- var self=this;
1620
- return smalltalk.send(self, "_copy", []);
1621
- return self;}
1831
+ fn: function () {
1832
+ var self = this;
1833
+ var $1;
1834
+ $1 = smalltalk.send(self, "_copy", []);
1835
+ return $1;
1836
+ }
1622
1837
  }),
1623
1838
  smalltalk.Number);
1624
1839
 
@@ -1626,10 +1841,12 @@ smalltalk.addMethod(
1626
1841
  "_even",
1627
1842
  smalltalk.method({
1628
1843
  selector: "even",
1629
- fn: function (){
1630
- var self=this;
1631
- return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
1632
- return self;}
1844
+ fn: function () {
1845
+ var self = this;
1846
+ var $1;
1847
+ $1 = smalltalk.send(0, "__eq", [smalltalk.send(self, "_\\\\", [2])]);
1848
+ return $1;
1849
+ }
1633
1850
  }),
1634
1851
  smalltalk.Number);
1635
1852
 
@@ -1637,10 +1854,12 @@ smalltalk.addMethod(
1637
1854
  "_identityHash",
1638
1855
  smalltalk.method({
1639
1856
  selector: "identityHash",
1640
- fn: function (){
1641
- var self=this;
1642
- return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", ["n"]);
1643
- return self;}
1857
+ fn: function () {
1858
+ var self = this;
1859
+ var $1;
1860
+ $1 = smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", ["n"]);
1861
+ return $1;
1862
+ }
1644
1863
  }),
1645
1864
  smalltalk.Number);
1646
1865
 
@@ -1648,10 +1867,10 @@ smalltalk.addMethod(
1648
1867
  "_isNumber",
1649
1868
  smalltalk.method({
1650
1869
  selector: "isNumber",
1651
- fn: function (){
1652
- var self=this;
1653
- return true;
1654
- return self;}
1870
+ fn: function () {
1871
+ var self = this;
1872
+ return true;
1873
+ }
1655
1874
  }),
1656
1875
  smalltalk.Number);
1657
1876
 
@@ -1659,10 +1878,12 @@ smalltalk.addMethod(
1659
1878
  "_isZero",
1660
1879
  smalltalk.method({
1661
1880
  selector: "isZero",
1662
- fn: function (){
1663
- var self=this;
1664
- return smalltalk.send(self, "__eq", [(0)]);
1665
- return self;}
1881
+ fn: function () {
1882
+ var self = this;
1883
+ var $1;
1884
+ $1 = smalltalk.send(self, "__eq", [0]);
1885
+ return $1;
1886
+ }
1666
1887
  }),
1667
1888
  smalltalk.Number);
1668
1889
 
@@ -1670,10 +1891,11 @@ smalltalk.addMethod(
1670
1891
  "_max_",
1671
1892
  smalltalk.method({
1672
1893
  selector: "max:",
1673
- fn: function (aNumber){
1674
- var self=this;
1675
- return Math.max(self, aNumber);;
1676
- return self;}
1894
+ fn: function (aNumber) {
1895
+ var self = this;
1896
+ return Math.max(self, aNumber);
1897
+ return self;
1898
+ }
1677
1899
  }),
1678
1900
  smalltalk.Number);
1679
1901
 
@@ -1681,10 +1903,11 @@ smalltalk.addMethod(
1681
1903
  "_min_",
1682
1904
  smalltalk.method({
1683
1905
  selector: "min:",
1684
- fn: function (aNumber){
1685
- var self=this;
1686
- return Math.min(self, aNumber);;
1687
- return self;}
1906
+ fn: function (aNumber) {
1907
+ var self = this;
1908
+ return Math.min(self, aNumber);
1909
+ return self;
1910
+ }
1688
1911
  }),
1689
1912
  smalltalk.Number);
1690
1913
 
@@ -1692,10 +1915,12 @@ smalltalk.addMethod(
1692
1915
  "_negated",
1693
1916
  smalltalk.method({
1694
1917
  selector: "negated",
1695
- fn: function (){
1696
- var self=this;
1697
- return (0) - self;
1698
- return self;}
1918
+ fn: function () {
1919
+ var self = this;
1920
+ var $1;
1921
+ $1 = smalltalk.send(0, "__minus", [self]);
1922
+ return $1;
1923
+ }
1699
1924
  }),
1700
1925
  smalltalk.Number);
1701
1926
 
@@ -1703,10 +1928,12 @@ smalltalk.addMethod(
1703
1928
  "_negative",
1704
1929
  smalltalk.method({
1705
1930
  selector: "negative",
1706
- fn: function (){
1707
- var self=this;
1708
- return self < (0);
1709
- return self;}
1931
+ fn: function () {
1932
+ var self = this;
1933
+ var $1;
1934
+ $1 = smalltalk.send(self, "__lt", [0]);
1935
+ return $1;
1936
+ }
1710
1937
  }),
1711
1938
  smalltalk.Number);
1712
1939
 
@@ -1714,10 +1941,12 @@ smalltalk.addMethod(
1714
1941
  "_odd",
1715
1942
  smalltalk.method({
1716
1943
  selector: "odd",
1717
- fn: function (){
1718
- var self=this;
1719
- return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
1720
- return self;}
1944
+ fn: function () {
1945
+ var self = this;
1946
+ var $1;
1947
+ $1 = smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
1948
+ return $1;
1949
+ }
1721
1950
  }),
1722
1951
  smalltalk.Number);
1723
1952
 
@@ -1725,10 +1954,12 @@ smalltalk.addMethod(
1725
1954
  "_positive",
1726
1955
  smalltalk.method({
1727
1956
  selector: "positive",
1728
- fn: function (){
1729
- var self=this;
1730
- return self >= (0);
1731
- return self;}
1957
+ fn: function () {
1958
+ var self = this;
1959
+ var $1;
1960
+ $1 = smalltalk.send(self, "__gt_eq", [0]);
1961
+ return $1;
1962
+ }
1732
1963
  }),
1733
1964
  smalltalk.Number);
1734
1965
 
@@ -1736,10 +1967,11 @@ smalltalk.addMethod(
1736
1967
  "_printShowingDecimalPlaces_",
1737
1968
  smalltalk.method({
1738
1969
  selector: "printShowingDecimalPlaces:",
1739
- fn: function (placesDesired){
1740
- var self=this;
1741
- return self.toFixed(placesDesired);
1742
- return self;}
1970
+ fn: function (placesDesired) {
1971
+ var self = this;
1972
+ return self.toFixed(placesDesired);
1973
+ return self;
1974
+ }
1743
1975
  }),
1744
1976
  smalltalk.Number);
1745
1977
 
@@ -1747,10 +1979,11 @@ smalltalk.addMethod(
1747
1979
  "_printString",
1748
1980
  smalltalk.method({
1749
1981
  selector: "printString",
1750
- fn: function (){
1751
- var self=this;
1752
- return String(self);
1753
- return self;}
1982
+ fn: function () {
1983
+ var self = this;
1984
+ return String(self);
1985
+ return self;
1986
+ }
1754
1987
  }),
1755
1988
  smalltalk.Number);
1756
1989
 
@@ -1758,10 +1991,11 @@ smalltalk.addMethod(
1758
1991
  "_rounded",
1759
1992
  smalltalk.method({
1760
1993
  selector: "rounded",
1761
- fn: function (){
1762
- var self=this;
1763
- return Math.round(self);;
1764
- return self;}
1994
+ fn: function () {
1995
+ var self = this;
1996
+ return Math.round(self);
1997
+ return self;
1998
+ }
1765
1999
  }),
1766
2000
  smalltalk.Number);
1767
2001
 
@@ -1769,10 +2003,11 @@ smalltalk.addMethod(
1769
2003
  "_sqrt",
1770
2004
  smalltalk.method({
1771
2005
  selector: "sqrt",
1772
- fn: function (){
1773
- var self=this;
1774
- return Math.sqrt(self);
1775
- return self;}
2006
+ fn: function () {
2007
+ var self = this;
2008
+ return Math.sqrt(self);
2009
+ return self;
2010
+ }
1776
2011
  }),
1777
2012
  smalltalk.Number);
1778
2013
 
@@ -1780,10 +2015,12 @@ smalltalk.addMethod(
1780
2015
  "_squared",
1781
2016
  smalltalk.method({
1782
2017
  selector: "squared",
1783
- fn: function (){
1784
- var self=this;
1785
- return self * self;
1786
- return self;}
2018
+ fn: function () {
2019
+ var self = this;
2020
+ var $1;
2021
+ $1 = smalltalk.send(self, "__star", [self]);
2022
+ return $1;
2023
+ }
1787
2024
  }),
1788
2025
  smalltalk.Number);
1789
2026
 
@@ -1791,14 +2028,15 @@ smalltalk.addMethod(
1791
2028
  "_timesRepeat_",
1792
2029
  smalltalk.method({
1793
2030
  selector: "timesRepeat:",
1794
- fn: function (aBlock){
1795
- var self=this;
1796
- var integer=nil;
1797
- var count=nil;
1798
- (integer=smalltalk.send(self, "_truncated", []));
1799
- (count=(1));
1800
- (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1801
- return self;}
2031
+ fn: function (aBlock) {
2032
+ var self = this;
2033
+ var integer;
2034
+ var count;
2035
+ integer = smalltalk.send(self, "_truncated", []);
2036
+ count = 1;
2037
+ smalltalk.send(function () {return smalltalk.send(count, "__gt", [self]);}, "_whileFalse_", [function () {smalltalk.send(aBlock, "_value", []);count = smalltalk.send(count, "__plus", [1]);return count;}]);
2038
+ return self;
2039
+ }
1802
2040
  }),
1803
2041
  smalltalk.Number);
1804
2042
 
@@ -1806,19 +2044,19 @@ smalltalk.addMethod(
1806
2044
  "_to_",
1807
2045
  smalltalk.method({
1808
2046
  selector: "to:",
1809
- fn: function (aNumber){
1810
- var self=this;
1811
- var array=nil;
1812
- var first=nil;
1813
- var last=nil;
1814
- var count=nil;
1815
- (first=smalltalk.send(self, "_truncated", []));
1816
- (last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
1817
- (count=(1));
1818
- (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1819
- smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);(count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})]);
1820
- return array;
1821
- return self;}
2047
+ fn: function (aNumber) {
2048
+ var self = this;
2049
+ var array;
2050
+ var first;
2051
+ var last;
2052
+ var count;
2053
+ first = smalltalk.send(self, "_truncated", []);
2054
+ last = smalltalk.send(smalltalk.send(aNumber, "_truncated", []), "__plus", [1]);
2055
+ count = 1;
2056
+ array = smalltalk.send(smalltalk.Array || Array, "_new", []);
2057
+ smalltalk.send(smalltalk.send(last, "__minus", [first]), "_timesRepeat_", [function () {smalltalk.send(array, "_at_put_", [count, first]);count = smalltalk.send(count, "__plus", [1]);count;first = smalltalk.send(first, "__plus", [1]);return first;}]);
2058
+ return array;
2059
+ }
1822
2060
  }),
1823
2061
  smalltalk.Number);
1824
2062
 
@@ -1826,18 +2064,27 @@ smalltalk.addMethod(
1826
2064
  "_to_by_",
1827
2065
  smalltalk.method({
1828
2066
  selector: "to:by:",
1829
- fn: function (stop, step){
1830
- var self=this;
1831
- var array=nil;
1832
- var value=nil;
1833
- var pos=nil;
1834
- (value=self);
1835
- (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1836
- (pos=(1));
1837
- ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", ["step must be non-zero"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", ["step must be non-zero"]);})]));
1838
- ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
1839
- return array;
1840
- return self;}
2067
+ fn: function (stop, step) {
2068
+ var self = this;
2069
+ var $1, $2;
2070
+ var array;
2071
+ var value;
2072
+ var pos;
2073
+ value = self;
2074
+ array = smalltalk.send(smalltalk.Array || Array, "_new", []);
2075
+ pos = 1;
2076
+ $1 = smalltalk.send(step, "__eq", [0]);
2077
+ if (smalltalk.assert($1)) {
2078
+ smalltalk.send(self, "_error_", ["step must be non-zero"]);
2079
+ }
2080
+ $2 = smalltalk.send(step, "__lt", [0]);
2081
+ if (smalltalk.assert($2)) {
2082
+ smalltalk.send(function () {return smalltalk.send(value, "__gt_eq", [stop]);}, "_whileTrue_", [function () {smalltalk.send(array, "_at_put_", [pos, value]);pos = smalltalk.send(pos, "__plus", [1]);pos;value = smalltalk.send(value, "__plus", [step]);return value;}]);
2083
+ } else {
2084
+ smalltalk.send(function () {return smalltalk.send(value, "__lt_eq", [stop]);}, "_whileTrue_", [function () {smalltalk.send(array, "_at_put_", [pos, value]);pos = smalltalk.send(pos, "__plus", [1]);pos;value = smalltalk.send(value, "__plus", [step]);return value;}]);
2085
+ }
2086
+ return array;
2087
+ }
1841
2088
  }),
1842
2089
  smalltalk.Number);
1843
2090
 
@@ -1845,13 +2092,23 @@ smalltalk.addMethod(
1845
2092
  "_to_by_do_",
1846
2093
  smalltalk.method({
1847
2094
  selector: "to:by:do:",
1848
- fn: function (stop, step, aBlock){
1849
- var self=this;
1850
- var value=nil;
1851
- (value=self);
1852
- ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", ["step must be non-zero"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", ["step must be non-zero"]);})]));
1853
- ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
1854
- return self;}
2095
+ fn: function (stop, step, aBlock) {
2096
+ var self = this;
2097
+ var $1, $2;
2098
+ var value;
2099
+ value = self;
2100
+ $1 = smalltalk.send(step, "__eq", [0]);
2101
+ if (smalltalk.assert($1)) {
2102
+ smalltalk.send(self, "_error_", ["step must be non-zero"]);
2103
+ }
2104
+ $2 = smalltalk.send(step, "__lt", [0]);
2105
+ if (smalltalk.assert($2)) {
2106
+ smalltalk.send(function () {return smalltalk.send(value, "__gt_eq", [stop]);}, "_whileTrue_", [function () {smalltalk.send(aBlock, "_value_", [value]);value = smalltalk.send(value, "__plus", [step]);return value;}]);
2107
+ } else {
2108
+ smalltalk.send(function () {return smalltalk.send(value, "__lt_eq", [stop]);}, "_whileTrue_", [function () {smalltalk.send(aBlock, "_value_", [value]);value = smalltalk.send(value, "__plus", [step]);return value;}]);
2109
+ }
2110
+ return self;
2111
+ }
1855
2112
  }),
1856
2113
  smalltalk.Number);
1857
2114
 
@@ -1859,12 +2116,13 @@ smalltalk.addMethod(
1859
2116
  "_to_do_",
1860
2117
  smalltalk.method({
1861
2118
  selector: "to:do:",
1862
- fn: function (stop, aBlock){
1863
- var self=this;
1864
- var nextValue=nil;
1865
- (nextValue=self);
1866
- (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return (nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1867
- return self;}
2119
+ fn: function (stop, aBlock) {
2120
+ var self = this;
2121
+ var nextValue;
2122
+ nextValue = self;
2123
+ smalltalk.send(function () {return smalltalk.send(nextValue, "__lt_eq", [stop]);}, "_whileTrue_", [function () {smalltalk.send(aBlock, "_value_", [nextValue]);nextValue = smalltalk.send(nextValue, "__plus", [1]);return nextValue;}]);
2124
+ return self;
2125
+ }
1868
2126
  }),
1869
2127
  smalltalk.Number);
1870
2128
 
@@ -1872,12 +2130,18 @@ smalltalk.addMethod(
1872
2130
  "_truncated",
1873
2131
  smalltalk.method({
1874
2132
  selector: "truncated",
1875
- fn: function (){
1876
- var self=this;
1877
- var result=nil;
1878
- ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
1879
- return result;
1880
- return self;}
2133
+ fn: function () {
2134
+ var self = this;
2135
+ var $1;
2136
+ var result;
2137
+ $1 = smalltalk.send(self, "__gt_eq", [0]);
2138
+ if (smalltalk.assert($1)) {
2139
+ result = Math.floor(self);
2140
+ } else {
2141
+ result = Math.floor(self * -1) * -1;
2142
+ }
2143
+ return result;
2144
+ }
1881
2145
  }),
1882
2146
  smalltalk.Number);
1883
2147
 
@@ -1885,10 +2149,11 @@ smalltalk.addMethod(
1885
2149
  "_|",
1886
2150
  smalltalk.method({
1887
2151
  selector: "|",
1888
- fn: function (aNumber){
1889
- var self=this;
1890
- return self | aNumber;
1891
- return self;}
2152
+ fn: function (aNumber) {
2153
+ var self = this;
2154
+ return self | aNumber;
2155
+ return self;
2156
+ }
1892
2157
  }),
1893
2158
  smalltalk.Number);
1894
2159
 
@@ -1897,10 +2162,11 @@ smalltalk.addMethod(
1897
2162
  "_pi",
1898
2163
  smalltalk.method({
1899
2164
  selector: "pi",
1900
- fn: function (){
1901
- var self=this;
1902
- return Math.PI;
1903
- return self;}
2165
+ fn: function () {
2166
+ var self = this;
2167
+ return Math.PI;
2168
+ return self;
2169
+ }
1904
2170
  }),
1905
2171
  smalltalk.Number.klass);
1906
2172
 
@@ -1910,10 +2176,12 @@ smalltalk.addMethod(
1910
2176
  "_classes",
1911
2177
  smalltalk.method({
1912
2178
  selector: "classes",
1913
- fn: function (){
1914
- var self=this;
1915
- return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
1916
- return self;}
2179
+ fn: function () {
2180
+ var self = this;
2181
+ var $1;
2182
+ $1 = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_classes", []), "_select_", [function (c) {return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);}]);
2183
+ return $1;
2184
+ }
1917
2185
  }),
1918
2186
  smalltalk.Package);
1919
2187
 
@@ -1921,10 +2189,17 @@ smalltalk.addMethod(
1921
2189
  "_commitPathJs",
1922
2190
  smalltalk.method({
1923
2191
  selector: "commitPathJs",
1924
- fn: function (){
1925
- var self=this;
1926
- return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
1927
- return self;}
2192
+ fn: function () {
2193
+ var self = this;
2194
+ var $1;
2195
+ if (($receiver = self['@commitPathJs']) == nil ||
2196
+ $receiver == undefined) {
2197
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);
2198
+ } else {
2199
+ $1 = self['@commitPathJs'];
2200
+ }
2201
+ return $1;
2202
+ }
1928
2203
  }),
1929
2204
  smalltalk.Package);
1930
2205
 
@@ -1932,10 +2207,11 @@ smalltalk.addMethod(
1932
2207
  "_commitPathJs_",
1933
2208
  smalltalk.method({
1934
2209
  selector: "commitPathJs:",
1935
- fn: function (aString){
1936
- var self=this;
1937
- (self['@commitPathJs']=aString);
1938
- return self;}
2210
+ fn: function (aString) {
2211
+ var self = this;
2212
+ self['@commitPathJs'] = aString;
2213
+ return self;
2214
+ }
1939
2215
  }),
1940
2216
  smalltalk.Package);
1941
2217
 
@@ -1943,10 +2219,17 @@ smalltalk.addMethod(
1943
2219
  "_commitPathSt",
1944
2220
  smalltalk.method({
1945
2221
  selector: "commitPathSt",
1946
- fn: function (){
1947
- var self=this;
1948
- return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
1949
- return self;}
2222
+ fn: function () {
2223
+ var self = this;
2224
+ var $1;
2225
+ if (($receiver = self['@commitPathSt']) == nil ||
2226
+ $receiver == undefined) {
2227
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);
2228
+ } else {
2229
+ $1 = self['@commitPathSt'];
2230
+ }
2231
+ return $1;
2232
+ }
1950
2233
  }),
1951
2234
  smalltalk.Package);
1952
2235
 
@@ -1954,10 +2237,11 @@ smalltalk.addMethod(
1954
2237
  "_commitPathSt_",
1955
2238
  smalltalk.method({
1956
2239
  selector: "commitPathSt:",
1957
- fn: function (aString){
1958
- var self=this;
1959
- (self['@commitPathSt']=aString);
1960
- return self;}
2240
+ fn: function (aString) {
2241
+ var self = this;
2242
+ self['@commitPathSt'] = aString;
2243
+ return self;
2244
+ }
1961
2245
  }),
1962
2246
  smalltalk.Package);
1963
2247
 
@@ -1965,10 +2249,12 @@ smalltalk.addMethod(
1965
2249
  "_dependencies",
1966
2250
  smalltalk.method({
1967
2251
  selector: "dependencies",
1968
- fn: function (){
1969
- var self=this;
1970
- return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
1971
- return self;}
2252
+ fn: function () {
2253
+ var self = this;
2254
+ var $1;
2255
+ $1 = smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", function () {return [];}]);
2256
+ return $1;
2257
+ }
1972
2258
  }),
1973
2259
  smalltalk.Package);
1974
2260
 
@@ -1976,10 +2262,12 @@ smalltalk.addMethod(
1976
2262
  "_dependencies_",
1977
2263
  smalltalk.method({
1978
2264
  selector: "dependencies:",
1979
- fn: function (anArray){
1980
- var self=this;
1981
- return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
1982
- return self;}
2265
+ fn: function (anArray) {
2266
+ var self = this;
2267
+ var $1;
2268
+ $1 = smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
2269
+ return $1;
2270
+ }
1983
2271
  }),
1984
2272
  smalltalk.Package);
1985
2273
 
@@ -1987,10 +2275,11 @@ smalltalk.addMethod(
1987
2275
  "_jsProperties",
1988
2276
  smalltalk.method({
1989
2277
  selector: "jsProperties",
1990
- fn: function (){
1991
- var self=this;
1992
- return self.properties;
1993
- return self;}
2278
+ fn: function () {
2279
+ var self = this;
2280
+ return self.properties;
2281
+ return self;
2282
+ }
1994
2283
  }),
1995
2284
  smalltalk.Package);
1996
2285
 
@@ -1998,10 +2287,11 @@ smalltalk.addMethod(
1998
2287
  "_jsProperties_",
1999
2288
  smalltalk.method({
2000
2289
  selector: "jsProperties:",
2001
- fn: function (aJSObject){
2002
- var self=this;
2003
- return self.properties = aJSObject;
2004
- return self;}
2290
+ fn: function (aJSObject) {
2291
+ var self = this;
2292
+ return self.properties = aJSObject;
2293
+ return self;
2294
+ }
2005
2295
  }),
2006
2296
  smalltalk.Package);
2007
2297
 
@@ -2009,10 +2299,11 @@ smalltalk.addMethod(
2009
2299
  "_name",
2010
2300
  smalltalk.method({
2011
2301
  selector: "name",
2012
- fn: function (){
2013
- var self=this;
2014
- return self.pkgName;
2015
- return self;}
2302
+ fn: function () {
2303
+ var self = this;
2304
+ return self.pkgName;
2305
+ return self;
2306
+ }
2016
2307
  }),
2017
2308
  smalltalk.Package);
2018
2309
 
@@ -2020,10 +2311,11 @@ smalltalk.addMethod(
2020
2311
  "_name_",
2021
2312
  smalltalk.method({
2022
2313
  selector: "name:",
2023
- fn: function (aString){
2024
- var self=this;
2025
- self.pkgName = aString;
2026
- return self;}
2314
+ fn: function (aString) {
2315
+ var self = this;
2316
+ self.pkgName = aString;
2317
+ return self;
2318
+ }
2027
2319
  }),
2028
2320
  smalltalk.Package);
2029
2321
 
@@ -2031,10 +2323,12 @@ smalltalk.addMethod(
2031
2323
  "_printString",
2032
2324
  smalltalk.method({
2033
2325
  selector: "printString",
2034
- fn: function (){
2035
- var self=this;
2036
- return smalltalk.send(self, "_name", []);
2037
- return self;}
2326
+ fn: function () {
2327
+ var self = this;
2328
+ var $1;
2329
+ $1 = smalltalk.send(self, "_name", []);
2330
+ return $1;
2331
+ }
2038
2332
  }),
2039
2333
  smalltalk.Package);
2040
2334
 
@@ -2042,10 +2336,12 @@ smalltalk.addMethod(
2042
2336
  "_properties",
2043
2337
  smalltalk.method({
2044
2338
  selector: "properties",
2045
- fn: function (){
2046
- var self=this;
2047
- return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
2048
- return self;}
2339
+ fn: function () {
2340
+ var self = this;
2341
+ var $1;
2342
+ $1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
2343
+ return $1;
2344
+ }
2049
2345
  }),
2050
2346
  smalltalk.Package);
2051
2347
 
@@ -2053,13 +2349,14 @@ smalltalk.addMethod(
2053
2349
  "_properties_",
2054
2350
  smalltalk.method({
2055
2351
  selector: "properties:",
2056
- fn: function (aDict){
2057
- var self=this;
2058
- var object=nil;
2059
- object = {};;
2060
- smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
2061
- return self.properties = object;
2062
- return self;}
2352
+ fn: function (aDict) {
2353
+ var self = this;
2354
+ var object;
2355
+ object = {};
2356
+ smalltalk.send(aDict, "_keysAndValuesDo_", [function (key, value) {return object[key] = value;}]);
2357
+ return self.properties = object;
2358
+ return self;
2359
+ }
2063
2360
  }),
2064
2361
  smalltalk.Package);
2065
2362
 
@@ -2067,10 +2364,11 @@ smalltalk.addMethod(
2067
2364
  "_propertiesAsJSON",
2068
2365
  smalltalk.method({
2069
2366
  selector: "propertiesAsJSON",
2070
- fn: function (){
2071
- var self=this;
2072
- return JSON.stringify(self.properties);
2073
- return self;}
2367
+ fn: function () {
2368
+ var self = this;
2369
+ return JSON.stringify(self.properties);
2370
+ return self;
2371
+ }
2074
2372
  }),
2075
2373
  smalltalk.Package);
2076
2374
 
@@ -2078,10 +2376,11 @@ smalltalk.addMethod(
2078
2376
  "_propertyAt_",
2079
2377
  smalltalk.method({
2080
2378
  selector: "propertyAt:",
2081
- fn: function (key){
2082
- var self=this;
2083
- return self.properties[key];
2084
- return self;}
2379
+ fn: function (key) {
2380
+ var self = this;
2381
+ return self.properties[key];
2382
+ return self;
2383
+ }
2085
2384
  }),
2086
2385
  smalltalk.Package);
2087
2386
 
@@ -2089,10 +2388,17 @@ smalltalk.addMethod(
2089
2388
  "_propertyAt_ifAbsent_",
2090
2389
  smalltalk.method({
2091
2390
  selector: "propertyAt:ifAbsent:",
2092
- fn: function (key, block){
2093
- var self=this;
2094
- return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
2095
- return self;}
2391
+ fn: function (key, block) {
2392
+ var self = this;
2393
+ var $2, $1;
2394
+ $2 = smalltalk.send(self, "_propertyAt_", [key]);
2395
+ if (($receiver = $2) == nil || $receiver == undefined) {
2396
+ $1 = smalltalk.send(block, "_value", []);
2397
+ } else {
2398
+ $1 = $2;
2399
+ }
2400
+ return $1;
2401
+ }
2096
2402
  }),
2097
2403
  smalltalk.Package);
2098
2404
 
@@ -2100,10 +2406,11 @@ smalltalk.addMethod(
2100
2406
  "_propertyAt_put_",
2101
2407
  smalltalk.method({
2102
2408
  selector: "propertyAt:put:",
2103
- fn: function (key, value){
2104
- var self=this;
2105
- return self.properties[key] = value;
2106
- return self;}
2409
+ fn: function (key, value) {
2410
+ var self = this;
2411
+ return self.properties[key] = value;
2412
+ return self;
2413
+ }
2107
2414
  }),
2108
2415
  smalltalk.Package);
2109
2416
 
@@ -2111,10 +2418,12 @@ smalltalk.addMethod(
2111
2418
  "_sortedClasses",
2112
2419
  smalltalk.method({
2113
2420
  selector: "sortedClasses",
2114
- fn: function (){
2115
- var self=this;
2116
- return smalltalk.send(smalltalk.send(self, "_class", []), "_sortedClasses_", [smalltalk.send(self, "_classes", [])]);
2117
- return self;}
2421
+ fn: function () {
2422
+ var self = this;
2423
+ var $1;
2424
+ $1 = smalltalk.send(smalltalk.send(self, "_class", []), "_sortedClasses_", [smalltalk.send(self, "_classes", [])]);
2425
+ return $1;
2426
+ }
2118
2427
  }),
2119
2428
  smalltalk.Package);
2120
2429
 
@@ -2124,14 +2433,15 @@ smalltalk.addMethod(
2124
2433
  "_commitToLocalStorage_",
2125
2434
  smalltalk.method({
2126
2435
  selector: "commitToLocalStorage:",
2127
- fn: function (aPackageName){
2128
- var self=this;
2129
- var key=nil;
2130
- var sourceCode=nil;
2131
- (key=smalltalk.send("smalltalk.packages.", "__comma", [aPackageName]));
2132
- (sourceCode=smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [aPackageName]));
2133
- localStorage[key] = escape(sourceCode);
2134
- return self;}
2436
+ fn: function (aPackageName) {
2437
+ var self = this;
2438
+ var key;
2439
+ var sourceCode;
2440
+ key = smalltalk.send("smalltalk.packages.", "__comma", [aPackageName]);
2441
+ sourceCode = smalltalk.send(smalltalk.send(smalltalk.Exporter || Exporter, "_new", []), "_exportPackage_", [aPackageName]);
2442
+ localStorage[key] = escape(sourceCode);
2443
+ return self;
2444
+ }
2135
2445
  }),
2136
2446
  smalltalk.Package.klass);
2137
2447
 
@@ -2139,10 +2449,18 @@ smalltalk.addMethod(
2139
2449
  "_defaultCommitPathJs",
2140
2450
  smalltalk.method({
2141
2451
  selector: "defaultCommitPathJs",
2142
- fn: function (){
2143
- var self=this;
2144
- return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathJs']="js");})() : $receiver;
2145
- return self;}
2452
+ fn: function () {
2453
+ var self = this;
2454
+ var $1;
2455
+ if (($receiver = self['@defaultCommitPathJs']) == nil ||
2456
+ $receiver == undefined) {
2457
+ self['@defaultCommitPathJs'] = "js";
2458
+ $1 = self['@defaultCommitPathJs'];
2459
+ } else {
2460
+ $1 = self['@defaultCommitPathJs'];
2461
+ }
2462
+ return $1;
2463
+ }
2146
2464
  }),
2147
2465
  smalltalk.Package.klass);
2148
2466
 
@@ -2150,10 +2468,11 @@ smalltalk.addMethod(
2150
2468
  "_defaultCommitPathJs_",
2151
2469
  smalltalk.method({
2152
2470
  selector: "defaultCommitPathJs:",
2153
- fn: function (aString){
2154
- var self=this;
2155
- (self['@defaultCommitPathJs']=aString);
2156
- return self;}
2471
+ fn: function (aString) {
2472
+ var self = this;
2473
+ self['@defaultCommitPathJs'] = aString;
2474
+ return self;
2475
+ }
2157
2476
  }),
2158
2477
  smalltalk.Package.klass);
2159
2478
 
@@ -2161,10 +2480,18 @@ smalltalk.addMethod(
2161
2480
  "_defaultCommitPathSt",
2162
2481
  smalltalk.method({
2163
2482
  selector: "defaultCommitPathSt",
2164
- fn: function (){
2165
- var self=this;
2166
- return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathSt']="st");})() : $receiver;
2167
- return self;}
2483
+ fn: function () {
2484
+ var self = this;
2485
+ var $1;
2486
+ if (($receiver = self['@defaultCommitPathSt']) == nil ||
2487
+ $receiver == undefined) {
2488
+ self['@defaultCommitPathSt'] = "st";
2489
+ $1 = self['@defaultCommitPathSt'];
2490
+ } else {
2491
+ $1 = self['@defaultCommitPathSt'];
2492
+ }
2493
+ return $1;
2494
+ }
2168
2495
  }),
2169
2496
  smalltalk.Package.klass);
2170
2497
 
@@ -2172,10 +2499,11 @@ smalltalk.addMethod(
2172
2499
  "_defaultCommitPathSt_",
2173
2500
  smalltalk.method({
2174
2501
  selector: "defaultCommitPathSt:",
2175
- fn: function (aString){
2176
- var self=this;
2177
- (self['@defaultCommitPathSt']=aString);
2178
- return self;}
2502
+ fn: function (aString) {
2503
+ var self = this;
2504
+ self['@defaultCommitPathSt'] = aString;
2505
+ return self;
2506
+ }
2179
2507
  }),
2180
2508
  smalltalk.Package.klass);
2181
2509
 
@@ -2183,10 +2511,11 @@ smalltalk.addMethod(
2183
2511
  "_fetch_",
2184
2512
  smalltalk.method({
2185
2513
  selector: "fetch:",
2186
- fn: function (aPackageName){
2187
- var self=this;
2188
- smalltalk.send(self, "_fetch_prefix_", [aPackageName, smalltalk.send(smalltalk.send(self, "_defaultCommitPathJs", []), "__comma", ["/"])]);
2189
- return self;}
2514
+ fn: function (aPackageName) {
2515
+ var self = this;
2516
+ smalltalk.send(self, "_fetch_prefix_", [aPackageName, smalltalk.send(smalltalk.send(self, "_defaultCommitPathJs", []), "__comma", ["/"])]);
2517
+ return self;
2518
+ }
2190
2519
  }),
2191
2520
  smalltalk.Package.klass);
2192
2521
 
@@ -2194,10 +2523,11 @@ smalltalk.addMethod(
2194
2523
  "_fetch_prefix_",
2195
2524
  smalltalk.method({
2196
2525
  selector: "fetch:prefix:",
2197
- fn: function (aPackageName, aPrefix){
2198
- var self=this;
2199
- smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_getScript_onSuccess_", [smalltalk.send(smalltalk.send(aPrefix, "__comma", [aPackageName]), "__comma", [".js"]), (function(){return smalltalk.send((smalltalk.Package || Package), "_init_", [aPackageName]);})]);
2200
- return self;}
2526
+ fn: function (aPackageName, aPrefix) {
2527
+ var self = this;
2528
+ smalltalk.send(jQuery, "_getScript_onSuccess_", [smalltalk.send(smalltalk.send(aPrefix, "__comma", [aPackageName]), "__comma", [".js"]), function () {return smalltalk.send(smalltalk.Package || Package, "_init_", [aPackageName]);}]);
2529
+ return self;
2530
+ }
2201
2531
  }),
2202
2532
  smalltalk.Package.klass);
2203
2533
 
@@ -2205,10 +2535,14 @@ smalltalk.addMethod(
2205
2535
  "_init_",
2206
2536
  smalltalk.method({
2207
2537
  selector: "init:",
2208
- fn: function (aPackageName){
2209
- var self=this;
2210
- (function($rec){smalltalk.send($rec, "_do_", [(function(each){return smalltalk.init(each);})]);return smalltalk.send($rec, "_do_", [(function(each){return smalltalk.send(each, "_initialize", []);})]);})(smalltalk.send(smalltalk.send((typeof smalltalk == 'undefined' ? nil : smalltalk), "_classes", []), "_select_", [(function(each){return each.pkg.pkgName == aPackageName;})]));
2211
- return self;}
2538
+ fn: function (aPackageName) {
2539
+ var self = this;
2540
+ var $1, $2;
2541
+ $1 = smalltalk.send(smalltalk.send(smalltalk, "_classes", []), "_select_", [function (each) {return each.pkg.pkgName == aPackageName;}]);
2542
+ smalltalk.send($1, "_do_", [function (each) {return smalltalk.init(each);}]);
2543
+ $2 = smalltalk.send($1, "_do_", [function (each) {return smalltalk.send(each, "_initialize", []);}]);
2544
+ return self;
2545
+ }
2212
2546
  }),
2213
2547
  smalltalk.Package.klass);
2214
2548
 
@@ -2216,10 +2550,12 @@ smalltalk.addMethod(
2216
2550
  "_named_",
2217
2551
  smalltalk.method({
2218
2552
  selector: "named:",
2219
- fn: function (aPackageName){
2220
- var self=this;
2221
- return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
2222
- return self;}
2553
+ fn: function (aPackageName) {
2554
+ var self = this;
2555
+ var $1;
2556
+ $1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_packageAt_", [aPackageName]);
2557
+ return $1;
2558
+ }
2223
2559
  }),
2224
2560
  smalltalk.Package.klass);
2225
2561
 
@@ -2227,10 +2563,12 @@ smalltalk.addMethod(
2227
2563
  "_named_ifAbsent_",
2228
2564
  smalltalk.method({
2229
2565
  selector: "named:ifAbsent:",
2230
- fn: function (aPackageName, aBlock){
2231
- var self=this;
2232
- return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
2233
- return self;}
2566
+ fn: function (aPackageName, aBlock) {
2567
+ var self = this;
2568
+ var $1;
2569
+ $1 = smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
2570
+ return $1;
2571
+ }
2234
2572
  }),
2235
2573
  smalltalk.Package.klass);
2236
2574
 
@@ -2238,11 +2576,12 @@ smalltalk.addMethod(
2238
2576
  "_resetCommitPaths",
2239
2577
  smalltalk.method({
2240
2578
  selector: "resetCommitPaths",
2241
- fn: function (){
2242
- var self=this;
2243
- (self['@defaultCommitPathJs']=nil);
2244
- (self['@defaultCommitPathSt']=nil);
2245
- return self;}
2579
+ fn: function () {
2580
+ var self = this;
2581
+ self['@defaultCommitPathJs'] = nil;
2582
+ self['@defaultCommitPathSt'] = nil;
2583
+ return self;
2584
+ }
2246
2585
  }),
2247
2586
  smalltalk.Package.klass);
2248
2587
 
@@ -2250,21 +2589,22 @@ smalltalk.addMethod(
2250
2589
  "_sortedClasses_",
2251
2590
  smalltalk.method({
2252
2591
  selector: "sortedClasses:",
2253
- fn: function (classes){
2254
- var self=this;
2255
- var children=nil;
2256
- var others=nil;
2257
- var nodes=nil;
2258
- var expandedClasses=nil;
2259
- (children=[]);
2260
- (others=[]);
2261
- smalltalk.send(classes, "_do_", [(function(each){return ((($receiver = smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(children, "_add_", [each]);})() : (function(){return smalltalk.send(others, "_add_", [each]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]));})]);
2262
- (nodes=smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassSorterNode || ClassSorterNode), "_on_classes_level_", [each, others, (0)]);})]));
2263
- (nodes=smalltalk.send(nodes, "_sorted_", [(function(a, b){return ((($receiver = smalltalk.send(smalltalk.send(a, "_theClass", []), "_name", [])).klass === smalltalk.Number) ? $receiver <=smalltalk.send(smalltalk.send(b, "_theClass", []), "_name", []) : smalltalk.send($receiver, "__lt_eq", [smalltalk.send(smalltalk.send(b, "_theClass", []), "_name", [])]));})]));
2264
- (expandedClasses=smalltalk.send((smalltalk.Array || Array), "_new", []));
2265
- smalltalk.send(nodes, "_do_", [(function(aNode){return smalltalk.send(aNode, "_traverseClassesWith_", [expandedClasses]);})]);
2266
- return expandedClasses;
2267
- return self;}
2592
+ fn: function (classes) {
2593
+ var self = this;
2594
+ var $1;
2595
+ var children;
2596
+ var others;
2597
+ var nodes;
2598
+ var expandedClasses;
2599
+ children = [];
2600
+ others = [];
2601
+ smalltalk.send(classes, "_do_", [function (each) {$1 = smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])]);if (smalltalk.assert($1)) {return smalltalk.send(others, "_add_", [each]);} else {return smalltalk.send(children, "_add_", [each]);}}]);
2602
+ nodes = smalltalk.send(children, "_collect_", [function (each) {return smalltalk.send(smalltalk.ClassSorterNode || ClassSorterNode, "_on_classes_level_", [each, others, 0]);}]);
2603
+ nodes = smalltalk.send(nodes, "_sorted_", [function (a, b) {return smalltalk.send(smalltalk.send(smalltalk.send(a, "_theClass", []), "_name", []), "__lt_eq", [smalltalk.send(smalltalk.send(b, "_theClass", []), "_name", [])]);}]);
2604
+ expandedClasses = smalltalk.send(smalltalk.Array || Array, "_new", []);
2605
+ smalltalk.send(nodes, "_do_", [function (aNode) {return smalltalk.send(aNode, "_traverseClassesWith_", [expandedClasses]);}]);
2606
+ return expandedClasses;
2607
+ }
2268
2608
  }),
2269
2609
  smalltalk.Package.klass);
2270
2610
 
@@ -2274,10 +2614,12 @@ smalltalk.addMethod(
2274
2614
  "__star",
2275
2615
  smalltalk.method({
2276
2616
  selector: "*",
2277
- fn: function (aPoint){
2278
- var self=this;
2279
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2280
- return self;}
2617
+ fn: function (aPoint) {
2618
+ var self = this;
2619
+ var $1;
2620
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
2621
+ return $1;
2622
+ }
2281
2623
  }),
2282
2624
  smalltalk.Point);
2283
2625
 
@@ -2285,10 +2627,12 @@ smalltalk.addMethod(
2285
2627
  "__plus",
2286
2628
  smalltalk.method({
2287
2629
  selector: "+",
2288
- fn: function (aPoint){
2289
- var self=this;
2290
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2291
- return self;}
2630
+ fn: function (aPoint) {
2631
+ var self = this;
2632
+ var $1;
2633
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
2634
+ return $1;
2635
+ }
2292
2636
  }),
2293
2637
  smalltalk.Point);
2294
2638
 
@@ -2296,10 +2640,12 @@ smalltalk.addMethod(
2296
2640
  "__minus",
2297
2641
  smalltalk.method({
2298
2642
  selector: "-",
2299
- fn: function (aPoint){
2300
- var self=this;
2301
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2302
- return self;}
2643
+ fn: function (aPoint) {
2644
+ var self = this;
2645
+ var $1;
2646
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
2647
+ return $1;
2648
+ }
2303
2649
  }),
2304
2650
  smalltalk.Point);
2305
2651
 
@@ -2307,10 +2653,12 @@ smalltalk.addMethod(
2307
2653
  "__slash",
2308
2654
  smalltalk.method({
2309
2655
  selector: "/",
2310
- fn: function (aPoint){
2311
- var self=this;
2312
- return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2313
- return self;}
2656
+ fn: function (aPoint) {
2657
+ var self = this;
2658
+ var $1;
2659
+ $1 = smalltalk.send(smalltalk.Point || Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
2660
+ return $1;
2661
+ }
2314
2662
  }),
2315
2663
  smalltalk.Point);
2316
2664
 
@@ -2318,10 +2666,12 @@ smalltalk.addMethod(
2318
2666
  "__eq",
2319
2667
  smalltalk.method({
2320
2668
  selector: "=",
2321
- fn: function (aPoint){
2322
- var self=this;
2323
- return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);})]);
2324
- return self;}
2669
+ fn: function (aPoint) {
2670
+ var self = this;
2671
+ var $1;
2672
+ $1 = smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [function () {return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);}]);
2673
+ return $1;
2674
+ }
2325
2675
  }),
2326
2676
  smalltalk.Point);
2327
2677
 
@@ -2329,10 +2679,10 @@ smalltalk.addMethod(
2329
2679
  "_asPoint",
2330
2680
  smalltalk.method({
2331
2681
  selector: "asPoint",
2332
- fn: function (){
2333
- var self=this;
2334
- return self;
2335
- return self;}
2682
+ fn: function () {
2683
+ var self = this;
2684
+ return self;
2685
+ }
2336
2686
  }),
2337
2687
  smalltalk.Point);
2338
2688
 
@@ -2340,10 +2690,12 @@ smalltalk.addMethod(
2340
2690
  "_printString",
2341
2691
  smalltalk.method({
2342
2692
  selector: "printString",
2343
- fn: function (){
2344
- var self=this;
2345
- return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@x'], "_printString", []), "__comma", ["@"])]);((($receiver = smalltalk.send(smalltalk.send(self['@y'], "_notNil", []), "_and_", [(function(){return smalltalk.send(self['@y'], "_negative", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_space", []);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_space", []);})]));return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self['@y'], "_printString", [])]);})]);
2346
- return self;}
2693
+ fn: function () {
2694
+ var self = this;
2695
+ var $2, $1;
2696
+ $1 = smalltalk.send(smalltalk.String || String, "_streamContents_", [function (stream) {smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@x'], "_printString", []), "__comma", ["@"])]);$2 = smalltalk.send(smalltalk.send(self['@y'], "_notNil", []), "_and_", [function () {return smalltalk.send(self['@y'], "_negative", []);}]);if (smalltalk.assert($2)) {smalltalk.send(stream, "_space", []);}return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self['@y'], "_printString", [])]);}]);
2697
+ return $1;
2698
+ }
2347
2699
  }),
2348
2700
  smalltalk.Point);
2349
2701
 
@@ -2351,10 +2703,12 @@ smalltalk.addMethod(
2351
2703
  "_translateBy_",
2352
2704
  smalltalk.method({
2353
2705
  selector: "translateBy:",
2354
- fn: function (delta){
2355
- var self=this;
2356
- return smalltalk.send(((($receiver = smalltalk.send(delta, "_x", [])).klass === smalltalk.Number) ? $receiver +self['@x'] : smalltalk.send($receiver, "__plus", [self['@x']])), "__at", [((($receiver = smalltalk.send(delta, "_y", [])).klass === smalltalk.Number) ? $receiver +self['@y'] : smalltalk.send($receiver, "__plus", [self['@y']]))]);
2357
- return self;}
2706
+ fn: function (delta) {
2707
+ var self = this;
2708
+ var $1;
2709
+ $1 = smalltalk.send(smalltalk.send(smalltalk.send(delta, "_x", []), "__plus", [self['@x']]), "__at", [smalltalk.send(smalltalk.send(delta, "_y", []), "__plus", [self['@y']])]);
2710
+ return $1;
2711
+ }
2358
2712
  }),
2359
2713
  smalltalk.Point);
2360
2714
 
@@ -2362,10 +2716,10 @@ smalltalk.addMethod(
2362
2716
  "_x",
2363
2717
  smalltalk.method({
2364
2718
  selector: "x",
2365
- fn: function (){
2366
- var self=this;
2367
- return self['@x'];
2368
- return self;}
2719
+ fn: function () {
2720
+ var self = this;
2721
+ return self['@x'];
2722
+ }
2369
2723
  }),
2370
2724
  smalltalk.Point);
2371
2725
 
@@ -2373,10 +2727,11 @@ smalltalk.addMethod(
2373
2727
  "_x_",
2374
2728
  smalltalk.method({
2375
2729
  selector: "x:",
2376
- fn: function (aNumber){
2377
- var self=this;
2378
- (self['@x']=aNumber);
2379
- return self;}
2730
+ fn: function (aNumber) {
2731
+ var self = this;
2732
+ self['@x'] = aNumber;
2733
+ return self;
2734
+ }
2380
2735
  }),
2381
2736
  smalltalk.Point);
2382
2737
 
@@ -2384,10 +2739,10 @@ smalltalk.addMethod(
2384
2739
  "_y",
2385
2740
  smalltalk.method({
2386
2741
  selector: "y",
2387
- fn: function (){
2388
- var self=this;
2389
- return self['@y'];
2390
- return self;}
2742
+ fn: function () {
2743
+ var self = this;
2744
+ return self['@y'];
2745
+ }
2391
2746
  }),
2392
2747
  smalltalk.Point);
2393
2748
 
@@ -2395,10 +2750,11 @@ smalltalk.addMethod(
2395
2750
  "_y_",
2396
2751
  smalltalk.method({
2397
2752
  selector: "y:",
2398
- fn: function (aNumber){
2399
- var self=this;
2400
- (self['@y']=aNumber);
2401
- return self;}
2753
+ fn: function (aNumber) {
2754
+ var self = this;
2755
+ self['@y'] = aNumber;
2756
+ return self;
2757
+ }
2402
2758
  }),
2403
2759
  smalltalk.Point);
2404
2760
 
@@ -2407,10 +2763,16 @@ smalltalk.addMethod(
2407
2763
  "_x_y_",
2408
2764
  smalltalk.method({
2409
2765
  selector: "x:y:",
2410
- fn: function (aNumber, anotherNumber){
2411
- var self=this;
2412
- return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
2413
- return self;}
2766
+ fn: function (aNumber, anotherNumber) {
2767
+ var self = this;
2768
+ var $2, $3, $1;
2769
+ $2 = smalltalk.send(self, "_new", []);
2770
+ smalltalk.send($2, "_x_", [aNumber]);
2771
+ smalltalk.send($2, "_y_", [anotherNumber]);
2772
+ $3 = smalltalk.send($2, "_yourself", []);
2773
+ $1 = $3;
2774
+ return $1;
2775
+ }
2414
2776
  }),
2415
2777
  smalltalk.Point.klass);
2416
2778
 
@@ -2420,10 +2782,11 @@ smalltalk.addMethod(
2420
2782
  "_next",
2421
2783
  smalltalk.method({
2422
2784
  selector: "next",
2423
- fn: function (){
2424
- var self=this;
2425
- return Math.random();
2426
- return self;}
2785
+ fn: function () {
2786
+ var self = this;
2787
+ return Math.random();
2788
+ return self;
2789
+ }
2427
2790
  }),
2428
2791
  smalltalk.Random);
2429
2792
 
@@ -2431,10 +2794,12 @@ smalltalk.addMethod(
2431
2794
  "_next_",
2432
2795
  smalltalk.method({
2433
2796
  selector: "next:",
2434
- fn: function (anInteger){
2435
- var self=this;
2436
- return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
2437
- return self;}
2797
+ fn: function (anInteger) {
2798
+ var self = this;
2799
+ var $1;
2800
+ $1 = smalltalk.send(smalltalk.send(1, "_to_", [anInteger]), "_collect_", [function (each) {return smalltalk.send(self, "_next", []);}]);
2801
+ return $1;
2802
+ }
2438
2803
  }),
2439
2804
  smalltalk.Random);
2440
2805
 
@@ -2445,10 +2810,11 @@ smalltalk.addMethod(
2445
2810
  "_at_",
2446
2811
  smalltalk.method({
2447
2812
  selector: "at:",
2448
- fn: function (aString){
2813
+ fn: function (aSymbol){
2449
2814
  var self=this;
2450
- return self[aString];
2451
- return self;}
2815
+ return self[aSymbol._asString()];
2816
+ ;
2817
+ return self}
2452
2818
  }),
2453
2819
  smalltalk.Smalltalk);
2454
2820
 
@@ -2456,10 +2822,11 @@ smalltalk.addMethod(
2456
2822
  "_basicParse_",
2457
2823
  smalltalk.method({
2458
2824
  selector: "basicParse:",
2459
- fn: function (aString){
2460
- var self=this;
2461
- return smalltalk.parser.parse(aString);
2462
- return self;}
2825
+ fn: function (aString) {
2826
+ var self = this;
2827
+ return smalltalk.parser.parse(aString);
2828
+ return self;
2829
+ }
2463
2830
  }),
2464
2831
  smalltalk.Smalltalk);
2465
2832
 
@@ -2467,10 +2834,11 @@ smalltalk.addMethod(
2467
2834
  "_classes",
2468
2835
  smalltalk.method({
2469
2836
  selector: "classes",
2470
- fn: function (){
2471
- var self=this;
2472
- return self.classes();
2473
- return self;}
2837
+ fn: function () {
2838
+ var self = this;
2839
+ return self.classes();
2840
+ return self;
2841
+ }
2474
2842
  }),
2475
2843
  smalltalk.Smalltalk);
2476
2844
 
@@ -2478,10 +2846,11 @@ smalltalk.addMethod(
2478
2846
  "_createPackage_",
2479
2847
  smalltalk.method({
2480
2848
  selector: "createPackage:",
2481
- fn: function (packageName){
2482
- var self=this;
2483
- return smalltalk.addPackage(packageName, nil);
2484
- return self;}
2849
+ fn: function (packageName) {
2850
+ var self = this;
2851
+ return smalltalk.addPackage(packageName, nil);
2852
+ return self;
2853
+ }
2485
2854
  }),
2486
2855
  smalltalk.Smalltalk);
2487
2856
 
@@ -2489,13 +2858,14 @@ smalltalk.addMethod(
2489
2858
  "_createPackage_properties_",
2490
2859
  smalltalk.method({
2491
2860
  selector: "createPackage:properties:",
2492
- fn: function (packageName, aDict){
2493
- var self=this;
2494
- var object=nil;
2495
- object = {};;
2496
- smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
2497
- return smalltalk.addPackage(packageName, object);
2498
- return self;}
2861
+ fn: function (packageName, aDict) {
2862
+ var self = this;
2863
+ var object;
2864
+ object = {};
2865
+ smalltalk.send(aDict, "_keysAndValuesDo_", [function (key, value) {return object[key] = value;}]);
2866
+ return smalltalk.addPackage(packageName, object);
2867
+ return self;
2868
+ }
2499
2869
  }),
2500
2870
  smalltalk.Smalltalk);
2501
2871
 
@@ -2503,10 +2873,11 @@ smalltalk.addMethod(
2503
2873
  "_deletePackage_",
2504
2874
  smalltalk.method({
2505
2875
  selector: "deletePackage:",
2506
- fn: function (packageName){
2507
- var self=this;
2508
- delete smalltalk.packages[packageName];
2509
- return self;}
2876
+ fn: function (packageName) {
2877
+ var self = this;
2878
+ delete smalltalk.packages[packageName];
2879
+ return self;
2880
+ }
2510
2881
  }),
2511
2882
  smalltalk.Smalltalk);
2512
2883
 
@@ -2514,10 +2885,11 @@ smalltalk.addMethod(
2514
2885
  "_packageAt_",
2515
2886
  smalltalk.method({
2516
2887
  selector: "packageAt:",
2517
- fn: function (packageName){
2518
- var self=this;
2519
- return self.packages[packageName];
2520
- return self;}
2888
+ fn: function (packageName) {
2889
+ var self = this;
2890
+ return self.packages[packageName];
2891
+ return self;
2892
+ }
2521
2893
  }),
2522
2894
  smalltalk.Smalltalk);
2523
2895
 
@@ -2525,10 +2897,13 @@ smalltalk.addMethod(
2525
2897
  "_packageAt_ifAbsent_",
2526
2898
  smalltalk.method({
2527
2899
  selector: "packageAt:ifAbsent:",
2528
- fn: function (packageName, aBlock){
2529
- var self=this;
2530
- return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
2531
- return self;}
2900
+ fn: function (packageName, aBlock) {
2901
+ var self = this;
2902
+ var $2, $1;
2903
+ $2 = smalltalk.send(self, "_packageAt_", [packageName]);
2904
+ $1 = smalltalk.send($2, "_ifNil_", [aBlock]);
2905
+ return $1;
2906
+ }
2532
2907
  }),
2533
2908
  smalltalk.Smalltalk);
2534
2909
 
@@ -2536,10 +2911,11 @@ smalltalk.addMethod(
2536
2911
  "_packages",
2537
2912
  smalltalk.method({
2538
2913
  selector: "packages",
2539
- fn: function (){
2540
- var self=this;
2541
- return self.packages.all();
2542
- return self;}
2914
+ fn: function () {
2915
+ var self = this;
2916
+ return self.packages.all();
2917
+ return self;
2918
+ }
2543
2919
  }),
2544
2920
  smalltalk.Smalltalk);
2545
2921
 
@@ -2547,12 +2923,12 @@ smalltalk.addMethod(
2547
2923
  "_parse_",
2548
2924
  smalltalk.method({
2549
2925
  selector: "parse:",
2550
- fn: function (aString){
2551
- var self=this;
2552
- var result=nil;
2553
- smalltalk.send(self, "_try_catch_", [(function(){return (result=smalltalk.send(self, "_basicParse_", [aString]));}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
2554
- return result;
2555
- return self;}
2926
+ fn: function (aString) {
2927
+ var self = this;
2928
+ var result;
2929
+ smalltalk.send(self, "_try_catch_", [function () {result = smalltalk.send(self, "_basicParse_", [aString]);return result;}, function (ex) {return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);}]);
2930
+ return result;
2931
+ }
2556
2932
  }),
2557
2933
  smalltalk.Smalltalk);
2558
2934
 
@@ -2560,24 +2936,37 @@ smalltalk.addMethod(
2560
2936
  "_parseError_parsing_",
2561
2937
  smalltalk.method({
2562
2938
  selector: "parseError:parsing:",
2563
- fn: function (anException, aString){
2939
+ fn: function (anException, aString) {
2940
+ var self = this;
2941
+ var $1;
2942
+ var row;
2943
+ var col;
2944
+ var message;
2945
+ var lines;
2946
+ var badLine;
2947
+ var code;
2948
+ row = anException.line;
2949
+ col = anException.column;
2950
+ message = anException.message;
2951
+ lines = smalltalk.send(aString, "_lines", []);
2952
+ badLine = smalltalk.send(lines, "_at_", [row]);
2953
+ badLine = smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [1, smalltalk.send(col, "__minus", [1])]), "__comma", [" ===>"]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]);
2954
+ smalltalk.send(lines, "_at_put_", [row, badLine]);
2955
+ code = smalltalk.send(smalltalk.String || String, "_streamContents_", [function (s) {return smalltalk.send(lines, "_withIndexDo_", [function (l, i) {return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send(smalltalk.String || String, "_lf", [])])]);}]);}]);
2956
+ $1 = smalltalk.send(smalltalk.send(smalltalk.ParseError || ParseError, "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [" Below is code with line numbers and ===> marker inserted:"]), "__comma", [smalltalk.send(smalltalk.String || String, "_lf", [])]), "__comma", [code])]);
2957
+ return $1;
2958
+ }
2959
+ }),
2960
+ smalltalk.Smalltalk);
2961
+
2962
+ smalltalk.addMethod(
2963
+ "_pseudoVariableNames",
2964
+ smalltalk.method({
2965
+ selector: "pseudoVariableNames",
2966
+ fn: function (){
2564
2967
  var self=this;
2565
- var row=nil;
2566
- var col=nil;
2567
- var message=nil;
2568
- var lines=nil;
2569
- var badLine=nil;
2570
- var code=nil;
2571
- row = anException.line;
2572
- col = anException.column;
2573
- message = anException.message;;
2574
- (lines=smalltalk.send(aString, "_lines", []));
2575
- (badLine=smalltalk.send(lines, "_at_", [row]));
2576
- (badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [" ===>"]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]));
2577
- smalltalk.send(lines, "_at_put_", [row, badLine]);
2578
- (code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]));
2579
- return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [" Below is code with line numbers and ===> marker inserted:"]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
2580
- return self;}
2968
+ return ["self", "super", "nil", "true", "false", "thisContext"];
2969
+ }
2581
2970
  }),
2582
2971
  smalltalk.Smalltalk);
2583
2972
 
@@ -2585,10 +2974,11 @@ smalltalk.addMethod(
2585
2974
  "_readJSObject_",
2586
2975
  smalltalk.method({
2587
2976
  selector: "readJSObject:",
2588
- fn: function (anObject){
2589
- var self=this;
2590
- return self.readJSObject(anObject);
2591
- return self;}
2977
+ fn: function (anObject) {
2978
+ var self = this;
2979
+ return self.readJSObject(anObject);
2980
+ return self;
2981
+ }
2592
2982
  }),
2593
2983
  smalltalk.Smalltalk);
2594
2984
 
@@ -2598,11 +2988,23 @@ smalltalk.method({
2598
2988
  selector: "removeClass:",
2599
2989
  fn: function (aClass){
2600
2990
  var self=this;
2601
- ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [" is a Metaclass and cannot be removed!"])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [" is a Metaclass and cannot be removed!"])]);})]));
2602
- smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
2603
- smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
2604
- smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
2605
- return self;}
2991
+ var $1,$2,$3;
2992
+ $1=smalltalk.send(aClass,"_isMetaclass",[]);
2993
+ if(smalltalk.assert($1)){
2994
+ smalltalk.send(self,"_error_",[smalltalk.send(smalltalk.send(aClass,"_asString",[]),"__comma",[" is a Metaclass and cannot be removed!"])]);
2995
+ };
2996
+ smalltalk.send(smalltalk.send(smalltalk.send(aClass,"_methodDictionary",[]),"_values",[]),"_do_",[(function(each){
2997
+ return smalltalk.send(aClass,"_removeCompiledMethod_",[each]);
2998
+ })]);
2999
+ smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass,"_class",[]),"_methodDictionary",[]),"_values",[]),"_do_",[(function(each){
3000
+ return smalltalk.send(smalltalk.send(aClass,"_class",[]),"_removeCompiledMethod_",[each]);
3001
+ })]);
3002
+ smalltalk.send(self,"_basicDelete_",[smalltalk.send(aClass,"_name",[])]);
3003
+ $2=smalltalk.send((smalltalk.ClassRemoved || ClassRemoved),"_new",[]);
3004
+ smalltalk.send($2,"_theClass_",[aClass]);
3005
+ $3=smalltalk.send($2,"_yourself",[]);
3006
+ smalltalk.send(smalltalk.send((smalltalk.SystemAnnouncer || SystemAnnouncer),"_current",[]),"_announce_",[$3]);
3007
+ return self}
2606
3008
  }),
2607
3009
  smalltalk.Smalltalk);
2608
3010
 
@@ -2610,13 +3012,14 @@ smalltalk.addMethod(
2610
3012
  "_removePackage_",
2611
3013
  smalltalk.method({
2612
3014
  selector: "removePackage:",
2613
- fn: function (packageName){
2614
- var self=this;
2615
- var pkg=nil;
2616
- (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
2617
- smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
2618
- smalltalk.send(self, "_deletePackage_", [packageName]);
2619
- return self;}
3015
+ fn: function (packageName) {
3016
+ var self = this;
3017
+ var pkg;
3018
+ pkg = smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, function () {return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);}]);
3019
+ smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [function (each) {return smalltalk.send(self, "_removeClass_", [each]);}]);
3020
+ smalltalk.send(self, "_deletePackage_", [packageName]);
3021
+ return self;
3022
+ }
2620
3023
  }),
2621
3024
  smalltalk.Smalltalk);
2622
3025
 
@@ -2624,15 +3027,21 @@ smalltalk.addMethod(
2624
3027
  "_renamePackage_to_",
2625
3028
  smalltalk.method({
2626
3029
  selector: "renamePackage:to:",
2627
- fn: function (packageName, newName){
2628
- var self=this;
2629
- var pkg=nil;
2630
- (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
2631
- (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
2632
- smalltalk.packages[newName] = smalltalk.packages[packageName];
2633
- smalltalk.send(pkg, "_name_", [newName]);
2634
- smalltalk.send(self, "_deletePackage_", [packageName]);
2635
- return self;}
3030
+ fn: function (packageName, newName) {
3031
+ var self = this;
3032
+ var $1;
3033
+ var pkg;
3034
+ pkg = smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, function () {return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);}]);
3035
+ $1 = smalltalk.send(self, "_packageAt_", [newName]);
3036
+ if (($receiver = $1) == nil || $receiver == undefined) {
3037
+ } else {
3038
+ smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);
3039
+ }
3040
+ smalltalk.packages[newName] = smalltalk.packages[packageName];
3041
+ smalltalk.send(pkg, "_name_", [newName]);
3042
+ smalltalk.send(self, "_deletePackage_", [packageName]);
3043
+ return self;
3044
+ }
2636
3045
  }),
2637
3046
  smalltalk.Smalltalk);
2638
3047
 
@@ -2640,10 +3049,11 @@ smalltalk.addMethod(
2640
3049
  "_reservedWords",
2641
3050
  smalltalk.method({
2642
3051
  selector: "reservedWords",
2643
- fn: function (){
2644
- var self=this;
2645
- return self.reservedWords;
2646
- return self;}
3052
+ fn: function () {
3053
+ var self = this;
3054
+ return self.reservedWords;
3055
+ return self;
3056
+ }
2647
3057
  }),
2648
3058
  smalltalk.Smalltalk);
2649
3059
 
@@ -2651,12 +3061,13 @@ smalltalk.addMethod(
2651
3061
  "_send_to_arguments_",
2652
3062
  smalltalk.method({
2653
3063
  selector: "send:to:arguments:",
2654
- fn: function (aSelector, anObject, aCollection){
2655
- var self=this;
2656
- var selector=nil;
2657
- (selector=smalltalk.send(smalltalk.send(aSelector, "_asString", []), "_asSelector", []));
2658
- self.send(anObject, selector, aCollection);
2659
- return self;}
3064
+ fn: function (aSelector, anObject, aCollection) {
3065
+ var self = this;
3066
+ var selector;
3067
+ selector = smalltalk.send(smalltalk.send(aSelector, "_asString", []), "_asSelector", []);
3068
+ return self.send(anObject, selector, aCollection);
3069
+ return self;
3070
+ }
2660
3071
  }),
2661
3072
  smalltalk.Smalltalk);
2662
3073
 
@@ -2666,10 +3077,11 @@ smalltalk.addMethod(
2666
3077
  "_current",
2667
3078
  smalltalk.method({
2668
3079
  selector: "current",
2669
- fn: function (){
2670
- var self=this;
2671
- return smalltalk;
2672
- return self;}
3080
+ fn: function () {
3081
+ var self = this;
3082
+ return smalltalk;
3083
+ return self;
3084
+ }
2673
3085
  }),
2674
3086
  smalltalk.Smalltalk.klass);
2675
3087
 
@@ -2679,10 +3091,10 @@ smalltalk.addMethod(
2679
3091
  "_asJSON",
2680
3092
  smalltalk.method({
2681
3093
  selector: "asJSON",
2682
- fn: function (){
2683
- var self=this;
2684
- return (typeof null == 'undefined' ? nil : null);
2685
- return self;}
3094
+ fn: function () {
3095
+ var self = this;
3096
+ return null;
3097
+ }
2686
3098
  }),
2687
3099
  smalltalk.UndefinedObject);
2688
3100
 
@@ -2690,10 +3102,10 @@ smalltalk.addMethod(
2690
3102
  "_deepCopy",
2691
3103
  smalltalk.method({
2692
3104
  selector: "deepCopy",
2693
- fn: function (){
2694
- var self=this;
2695
- return self;
2696
- return self;}
3105
+ fn: function () {
3106
+ var self = this;
3107
+ return self;
3108
+ }
2697
3109
  }),
2698
3110
  smalltalk.UndefinedObject);
2699
3111
 
@@ -2701,10 +3113,12 @@ smalltalk.addMethod(
2701
3113
  "_ifNil_",
2702
3114
  smalltalk.method({
2703
3115
  selector: "ifNil:",
2704
- fn: function (aBlock){
2705
- var self=this;
2706
- return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
2707
- return self;}
3116
+ fn: function (aBlock) {
3117
+ var self = this;
3118
+ var $1;
3119
+ $1 = smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, function () {}]);
3120
+ return $1;
3121
+ }
2708
3122
  }),
2709
3123
  smalltalk.UndefinedObject);
2710
3124
 
@@ -2712,10 +3126,12 @@ smalltalk.addMethod(
2712
3126
  "_ifNil_ifNotNil_",
2713
3127
  smalltalk.method({
2714
3128
  selector: "ifNil:ifNotNil:",
2715
- fn: function (aBlock, anotherBlock){
2716
- var self=this;
2717
- return smalltalk.send(aBlock, "_value", []);
2718
- return self;}
3129
+ fn: function (aBlock, anotherBlock) {
3130
+ var self = this;
3131
+ var $1;
3132
+ $1 = smalltalk.send(aBlock, "_value", []);
3133
+ return $1;
3134
+ }
2719
3135
  }),
2720
3136
  smalltalk.UndefinedObject);
2721
3137
 
@@ -2723,10 +3139,10 @@ smalltalk.addMethod(
2723
3139
  "_ifNotNil_",
2724
3140
  smalltalk.method({
2725
3141
  selector: "ifNotNil:",
2726
- fn: function (aBlock){
2727
- var self=this;
2728
- return self;
2729
- return self;}
3142
+ fn: function (aBlock) {
3143
+ var self = this;
3144
+ return self;
3145
+ }
2730
3146
  }),
2731
3147
  smalltalk.UndefinedObject);
2732
3148
 
@@ -2734,10 +3150,12 @@ smalltalk.addMethod(
2734
3150
  "_ifNotNil_ifNil_",
2735
3151
  smalltalk.method({
2736
3152
  selector: "ifNotNil:ifNil:",
2737
- fn: function (aBlock, anotherBlock){
2738
- var self=this;
2739
- return smalltalk.send(anotherBlock, "_value", []);
2740
- return self;}
3153
+ fn: function (aBlock, anotherBlock) {
3154
+ var self = this;
3155
+ var $1;
3156
+ $1 = smalltalk.send(anotherBlock, "_value", []);
3157
+ return $1;
3158
+ }
2741
3159
  }),
2742
3160
  smalltalk.UndefinedObject);
2743
3161
 
@@ -2745,10 +3163,10 @@ smalltalk.addMethod(
2745
3163
  "_isNil",
2746
3164
  smalltalk.method({
2747
3165
  selector: "isNil",
2748
- fn: function (){
2749
- var self=this;
2750
- return true;
2751
- return self;}
3166
+ fn: function () {
3167
+ var self = this;
3168
+ return true;
3169
+ }
2752
3170
  }),
2753
3171
  smalltalk.UndefinedObject);
2754
3172
 
@@ -2756,10 +3174,10 @@ smalltalk.addMethod(
2756
3174
  "_notNil",
2757
3175
  smalltalk.method({
2758
3176
  selector: "notNil",
2759
- fn: function (){
2760
- var self=this;
2761
- return false;
2762
- return self;}
3177
+ fn: function () {
3178
+ var self = this;
3179
+ return false;
3180
+ }
2763
3181
  }),
2764
3182
  smalltalk.UndefinedObject);
2765
3183
 
@@ -2767,10 +3185,10 @@ smalltalk.addMethod(
2767
3185
  "_printString",
2768
3186
  smalltalk.method({
2769
3187
  selector: "printString",
2770
- fn: function (){
2771
- var self=this;
2772
- return "nil";
2773
- return self;}
3188
+ fn: function () {
3189
+ var self = this;
3190
+ return "nil";
3191
+ }
2774
3192
  }),
2775
3193
  smalltalk.UndefinedObject);
2776
3194
 
@@ -2778,10 +3196,10 @@ smalltalk.addMethod(
2778
3196
  "_shallowCopy",
2779
3197
  smalltalk.method({
2780
3198
  selector: "shallowCopy",
2781
- fn: function (){
2782
- var self=this;
2783
- return self;
2784
- return self;}
3199
+ fn: function () {
3200
+ var self = this;
3201
+ return self;
3202
+ }
2785
3203
  }),
2786
3204
  smalltalk.UndefinedObject);
2787
3205
 
@@ -2789,10 +3207,12 @@ smalltalk.addMethod(
2789
3207
  "_subclass_instanceVariableNames_",
2790
3208
  smalltalk.method({
2791
3209
  selector: "subclass:instanceVariableNames:",
2792
- fn: function (aString, anotherString){
2793
- var self=this;
2794
- return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
2795
- return self;}
3210
+ fn: function (aString, anotherString) {
3211
+ var self = this;
3212
+ var $1;
3213
+ $1 = smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
3214
+ return $1;
3215
+ }
2796
3216
  }),
2797
3217
  smalltalk.UndefinedObject);
2798
3218
 
@@ -2800,11 +3220,13 @@ smalltalk.addMethod(
2800
3220
  "_subclass_instanceVariableNames_category_",
2801
3221
  smalltalk.method({
2802
3222
  selector: "subclass:instanceVariableNames:category:",
2803
- fn: function (aString, aString2, aString3){
2804
- var self=this;
2805
- smalltalk.send(self, "_deprecatedAPI", []);
2806
- return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
2807
- return self;}
3223
+ fn: function (aString, aString2, aString3) {
3224
+ var self = this;
3225
+ var $1;
3226
+ smalltalk.send(self, "_deprecatedAPI", []);
3227
+ $1 = smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
3228
+ return $1;
3229
+ }
2808
3230
  }),
2809
3231
  smalltalk.UndefinedObject);
2810
3232
 
@@ -2812,10 +3234,12 @@ smalltalk.addMethod(
2812
3234
  "_subclass_instanceVariableNames_package_",
2813
3235
  smalltalk.method({
2814
3236
  selector: "subclass:instanceVariableNames:package:",
2815
- fn: function (aString, aString2, aString3){
2816
- var self=this;
2817
- return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
2818
- return self;}
3237
+ fn: function (aString, aString2, aString3) {
3238
+ var self = this;
3239
+ var $1;
3240
+ $1 = smalltalk.send(smalltalk.send(smalltalk.ClassBuilder || ClassBuilder, "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
3241
+ return $1;
3242
+ }
2819
3243
  }),
2820
3244
  smalltalk.UndefinedObject);
2821
3245
 
@@ -2824,10 +3248,11 @@ smalltalk.addMethod(
2824
3248
  "_new",
2825
3249
  smalltalk.method({
2826
3250
  selector: "new",
2827
- fn: function (){
2828
- var self=this;
2829
- smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
2830
- return self;}
3251
+ fn: function () {
3252
+ var self = this;
3253
+ smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
3254
+ return self;
3255
+ }
2831
3256
  }),
2832
3257
  smalltalk.UndefinedObject.klass);
2833
3258