resin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +52 -0
- data/amber/css/amber.css +519 -0
- data/amber/css/documentation.css +84 -0
- data/amber/css/profstef.css +75 -0
- data/amber/css/style.css +313 -0
- data/amber/images/amber.png +0 -0
- data/amber/images/amber_small.png +0 -0
- data/amber/images/off.png +0 -0
- data/amber/images/offHover.png +0 -0
- data/amber/images/presentation.png +0 -0
- data/amber/images/profstef.png +0 -0
- data/amber/images/sprite.png +0 -0
- data/amber/images/tinylogo.png +0 -0
- data/amber/images/twitterwall.png +0 -0
- data/amber/js/Additional-Examples.deploy.js +15 -0
- data/amber/js/Additional-Examples.js +21 -0
- data/amber/js/Benchfib.deploy.js +132 -0
- data/amber/js/Benchfib.js +167 -0
- data/amber/js/Canvas.deploy.js +1304 -0
- data/amber/js/Canvas.js +1885 -0
- data/amber/js/Compiler.deploy.js +1871 -0
- data/amber/js/Compiler.js +2616 -0
- data/amber/js/Documentation.deploy.js +961 -0
- data/amber/js/Documentation.js +1376 -0
- data/amber/js/Examples.deploy.js +53 -0
- data/amber/js/Examples.js +73 -0
- data/amber/js/IDE.deploy.js +3468 -0
- data/amber/js/IDE.js +4883 -0
- data/amber/js/Kernel-Announcements.deploy.js +107 -0
- data/amber/js/Kernel-Announcements.js +152 -0
- data/amber/js/Kernel-Classes.deploy.js +675 -0
- data/amber/js/Kernel-Classes.js +956 -0
- data/amber/js/Kernel-Collections.deploy.js +3273 -0
- data/amber/js/Kernel-Collections.js +4644 -0
- data/amber/js/Kernel-Exceptions.deploy.js +244 -0
- data/amber/js/Kernel-Exceptions.js +349 -0
- data/amber/js/Kernel-Methods.deploy.js +510 -0
- data/amber/js/Kernel-Methods.js +739 -0
- data/amber/js/Kernel-Objects.deploy.js +2698 -0
- data/amber/js/Kernel-Objects.js +3858 -0
- data/amber/js/Kernel-Tests.deploy.js +1419 -0
- data/amber/js/Kernel-Tests.js +1929 -0
- data/amber/js/Kernel-Transcript.deploy.js +142 -0
- data/amber/js/Kernel-Transcript.js +202 -0
- data/amber/js/SUnit.deploy.js +351 -0
- data/amber/js/SUnit.js +501 -0
- data/amber/js/amber.js +250 -0
- data/amber/js/boot.js +587 -0
- data/amber/js/compat.js +22 -0
- data/amber/js/init.js +8 -0
- data/amber/js/lib/CodeMirror/LICENSE +19 -0
- data/amber/js/lib/CodeMirror/amber.css +21 -0
- data/amber/js/lib/CodeMirror/codemirror.css +67 -0
- data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
- data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
- data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
- data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
- data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
- data/amber/js/lib/peg-0.6.2.min.js +2 -0
- data/amber/js/lib/showdown.js +419 -0
- data/amber/js/parser.js +4005 -0
- data/amber/js/parser.pegjs +220 -0
- data/amber/st/Benchfib.st +124 -0
- data/amber/st/Canvas.st +556 -0
- data/amber/st/Compiler.st +1425 -0
- data/amber/st/Documentation.st +758 -0
- data/amber/st/Examples.st +38 -0
- data/amber/st/IDE.st +2336 -0
- data/amber/st/Kernel-Announcements.st +61 -0
- data/amber/st/Kernel-Classes.st +403 -0
- data/amber/st/Kernel-Collections.st +1673 -0
- data/amber/st/Kernel-Exceptions.st +124 -0
- data/amber/st/Kernel-Methods.st +287 -0
- data/amber/st/Kernel-Objects.st +1489 -0
- data/amber/st/Kernel-Tests.st +892 -0
- data/amber/st/Kernel-Transcript.st +70 -0
- data/amber/st/SUnit.st +172 -0
- data/bin/runresin +12 -0
- data/lib/resin.rb +0 -0
- data/lib/resin/app/app.rb +121 -0
- data/lib/resin/app/views/index.haml +10 -0
- metadata +216 -0
@@ -0,0 +1,244 @@
|
|
1
|
+
smalltalk.addPackage('Kernel-Exceptions', {});
|
2
|
+
smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel-Exceptions');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
'_messageText',
|
5
|
+
smalltalk.method({
|
6
|
+
selector: 'messageText',
|
7
|
+
fn: function (){
|
8
|
+
var self=this;
|
9
|
+
return self['@messageText'];
|
10
|
+
return self;}
|
11
|
+
}),
|
12
|
+
smalltalk.Error);
|
13
|
+
|
14
|
+
smalltalk.addMethod(
|
15
|
+
'_messageText_',
|
16
|
+
smalltalk.method({
|
17
|
+
selector: 'messageText:',
|
18
|
+
fn: function (aString){
|
19
|
+
var self=this;
|
20
|
+
(self['@messageText']=aString);
|
21
|
+
return self;}
|
22
|
+
}),
|
23
|
+
smalltalk.Error);
|
24
|
+
|
25
|
+
smalltalk.addMethod(
|
26
|
+
'_signal',
|
27
|
+
smalltalk.method({
|
28
|
+
selector: 'signal',
|
29
|
+
fn: function (){
|
30
|
+
var self=this;
|
31
|
+
self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
|
32
|
+
return self;}
|
33
|
+
}),
|
34
|
+
smalltalk.Error);
|
35
|
+
|
36
|
+
smalltalk.addMethod(
|
37
|
+
'_context',
|
38
|
+
smalltalk.method({
|
39
|
+
selector: 'context',
|
40
|
+
fn: function (){
|
41
|
+
var self=this;
|
42
|
+
return self.context;
|
43
|
+
return self;}
|
44
|
+
}),
|
45
|
+
smalltalk.Error);
|
46
|
+
|
47
|
+
smalltalk.addMethod(
|
48
|
+
'_jsStack',
|
49
|
+
smalltalk.method({
|
50
|
+
selector: 'jsStack',
|
51
|
+
fn: function (){
|
52
|
+
var self=this;
|
53
|
+
return self.stack;
|
54
|
+
return self;}
|
55
|
+
}),
|
56
|
+
smalltalk.Error);
|
57
|
+
|
58
|
+
smalltalk.addMethod(
|
59
|
+
'_isSmalltalkError',
|
60
|
+
smalltalk.method({
|
61
|
+
selector: 'isSmalltalkError',
|
62
|
+
fn: function (){
|
63
|
+
var self=this;
|
64
|
+
return self.smalltalkError === true;
|
65
|
+
return self;}
|
66
|
+
}),
|
67
|
+
smalltalk.Error);
|
68
|
+
|
69
|
+
|
70
|
+
smalltalk.addMethod(
|
71
|
+
'_signal_',
|
72
|
+
smalltalk.method({
|
73
|
+
selector: 'signal:',
|
74
|
+
fn: function (aString){
|
75
|
+
var self=this;
|
76
|
+
return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
|
77
|
+
return self;}
|
78
|
+
}),
|
79
|
+
smalltalk.Error.klass);
|
80
|
+
|
81
|
+
|
82
|
+
smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel-Exceptions');
|
83
|
+
smalltalk.addMethod(
|
84
|
+
'_message',
|
85
|
+
smalltalk.method({
|
86
|
+
selector: 'message',
|
87
|
+
fn: function (){
|
88
|
+
var self=this;
|
89
|
+
return self['@message'];
|
90
|
+
return self;}
|
91
|
+
}),
|
92
|
+
smalltalk.MessageNotUnderstood);
|
93
|
+
|
94
|
+
smalltalk.addMethod(
|
95
|
+
'_message_',
|
96
|
+
smalltalk.method({
|
97
|
+
selector: 'message:',
|
98
|
+
fn: function (aMessage){
|
99
|
+
var self=this;
|
100
|
+
(self['@message']=aMessage);
|
101
|
+
return self;}
|
102
|
+
}),
|
103
|
+
smalltalk.MessageNotUnderstood);
|
104
|
+
|
105
|
+
smalltalk.addMethod(
|
106
|
+
'_receiver',
|
107
|
+
smalltalk.method({
|
108
|
+
selector: 'receiver',
|
109
|
+
fn: function (){
|
110
|
+
var self=this;
|
111
|
+
return self['@receiver'];
|
112
|
+
return self;}
|
113
|
+
}),
|
114
|
+
smalltalk.MessageNotUnderstood);
|
115
|
+
|
116
|
+
smalltalk.addMethod(
|
117
|
+
'_receiver_',
|
118
|
+
smalltalk.method({
|
119
|
+
selector: 'receiver:',
|
120
|
+
fn: function (anObject){
|
121
|
+
var self=this;
|
122
|
+
(self['@receiver']=anObject);
|
123
|
+
return self;}
|
124
|
+
}),
|
125
|
+
smalltalk.MessageNotUnderstood);
|
126
|
+
|
127
|
+
smalltalk.addMethod(
|
128
|
+
'_messageText',
|
129
|
+
smalltalk.method({
|
130
|
+
selector: 'messageText',
|
131
|
+
fn: function (){
|
132
|
+
var self=this;
|
133
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_asString", []), "__comma", [unescape("%20does%20not%20understand%20%23")]), "__comma", [smalltalk.send(smalltalk.send(self, "_message", []), "_selector", [])]);
|
134
|
+
return self;}
|
135
|
+
}),
|
136
|
+
smalltalk.MessageNotUnderstood);
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel-Exceptions');
|
141
|
+
smalltalk.addMethod(
|
142
|
+
'_handleError_',
|
143
|
+
smalltalk.method({
|
144
|
+
selector: 'handleError:',
|
145
|
+
fn: function (anError){
|
146
|
+
var self=this;
|
147
|
+
(($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
|
148
|
+
smalltalk.send(self, "_logError_", [anError]);
|
149
|
+
return self;}
|
150
|
+
}),
|
151
|
+
smalltalk.ErrorHandler);
|
152
|
+
|
153
|
+
smalltalk.addMethod(
|
154
|
+
'_logContext_',
|
155
|
+
smalltalk.method({
|
156
|
+
selector: 'logContext:',
|
157
|
+
fn: function (aContext){
|
158
|
+
var self=this;
|
159
|
+
(($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
|
160
|
+
smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
|
161
|
+
return self;}
|
162
|
+
}),
|
163
|
+
smalltalk.ErrorHandler);
|
164
|
+
|
165
|
+
smalltalk.addMethod(
|
166
|
+
'_logErrorContext_',
|
167
|
+
smalltalk.method({
|
168
|
+
selector: 'logErrorContext:',
|
169
|
+
fn: function (aContext){
|
170
|
+
var self=this;
|
171
|
+
(($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil;
|
172
|
+
return self;}
|
173
|
+
}),
|
174
|
+
smalltalk.ErrorHandler);
|
175
|
+
|
176
|
+
smalltalk.addMethod(
|
177
|
+
'_logError_',
|
178
|
+
smalltalk.method({
|
179
|
+
selector: 'logError:',
|
180
|
+
fn: function (anError){
|
181
|
+
var self=this;
|
182
|
+
smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
|
183
|
+
return self;}
|
184
|
+
}),
|
185
|
+
smalltalk.ErrorHandler);
|
186
|
+
|
187
|
+
smalltalk.addMethod(
|
188
|
+
'_log_',
|
189
|
+
smalltalk.method({
|
190
|
+
selector: 'log:',
|
191
|
+
fn: function (aString){
|
192
|
+
var self=this;
|
193
|
+
smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
|
194
|
+
return self;}
|
195
|
+
}),
|
196
|
+
smalltalk.ErrorHandler);
|
197
|
+
|
198
|
+
|
199
|
+
smalltalk.ErrorHandler.klass.iVarNames = ['current'];
|
200
|
+
smalltalk.addMethod(
|
201
|
+
'_current',
|
202
|
+
smalltalk.method({
|
203
|
+
selector: 'current',
|
204
|
+
fn: function (){
|
205
|
+
var self=this;
|
206
|
+
return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", []));})() : $receiver;
|
207
|
+
return self;}
|
208
|
+
}),
|
209
|
+
smalltalk.ErrorHandler.klass);
|
210
|
+
|
211
|
+
smalltalk.addMethod(
|
212
|
+
'_initialize',
|
213
|
+
smalltalk.method({
|
214
|
+
selector: 'initialize',
|
215
|
+
fn: function (){
|
216
|
+
var self=this;
|
217
|
+
smalltalk.send(self, "_register", []);
|
218
|
+
return self;}
|
219
|
+
}),
|
220
|
+
smalltalk.ErrorHandler.klass);
|
221
|
+
|
222
|
+
smalltalk.addMethod(
|
223
|
+
'_register',
|
224
|
+
smalltalk.method({
|
225
|
+
selector: 'register',
|
226
|
+
fn: function (){
|
227
|
+
var self=this;
|
228
|
+
smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
|
229
|
+
return self;}
|
230
|
+
}),
|
231
|
+
smalltalk.ErrorHandler.klass);
|
232
|
+
|
233
|
+
smalltalk.addMethod(
|
234
|
+
'_setCurrent_',
|
235
|
+
smalltalk.method({
|
236
|
+
selector: 'setCurrent:',
|
237
|
+
fn: function (anHandler){
|
238
|
+
var self=this;
|
239
|
+
(self['@current']=anHandler);
|
240
|
+
return self;}
|
241
|
+
}),
|
242
|
+
smalltalk.ErrorHandler.klass);
|
243
|
+
|
244
|
+
|
@@ -0,0 +1,349 @@
|
|
1
|
+
smalltalk.addPackage('Kernel-Exceptions', {});
|
2
|
+
smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel-Exceptions');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
unescape('_messageText'),
|
5
|
+
smalltalk.method({
|
6
|
+
selector: unescape('messageText'),
|
7
|
+
category: 'accessing',
|
8
|
+
fn: function (){
|
9
|
+
var self=this;
|
10
|
+
return self['@messageText'];
|
11
|
+
return self;},
|
12
|
+
args: [],
|
13
|
+
source: unescape('messageText%0A%09%5EmessageText'),
|
14
|
+
messageSends: [],
|
15
|
+
referencedClasses: []
|
16
|
+
}),
|
17
|
+
smalltalk.Error);
|
18
|
+
|
19
|
+
smalltalk.addMethod(
|
20
|
+
unescape('_messageText_'),
|
21
|
+
smalltalk.method({
|
22
|
+
selector: unescape('messageText%3A'),
|
23
|
+
category: 'accessing',
|
24
|
+
fn: function (aString){
|
25
|
+
var self=this;
|
26
|
+
(self['@messageText']=aString);
|
27
|
+
return self;},
|
28
|
+
args: ["aString"],
|
29
|
+
source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
|
30
|
+
messageSends: [],
|
31
|
+
referencedClasses: []
|
32
|
+
}),
|
33
|
+
smalltalk.Error);
|
34
|
+
|
35
|
+
smalltalk.addMethod(
|
36
|
+
unescape('_signal'),
|
37
|
+
smalltalk.method({
|
38
|
+
selector: unescape('signal'),
|
39
|
+
category: 'signaling',
|
40
|
+
fn: function (){
|
41
|
+
var self=this;
|
42
|
+
self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
|
43
|
+
return self;},
|
44
|
+
args: [],
|
45
|
+
source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
|
46
|
+
messageSends: [],
|
47
|
+
referencedClasses: []
|
48
|
+
}),
|
49
|
+
smalltalk.Error);
|
50
|
+
|
51
|
+
smalltalk.addMethod(
|
52
|
+
unescape('_context'),
|
53
|
+
smalltalk.method({
|
54
|
+
selector: unescape('context'),
|
55
|
+
category: 'accessing',
|
56
|
+
fn: function (){
|
57
|
+
var self=this;
|
58
|
+
return self.context;
|
59
|
+
return self;},
|
60
|
+
args: [],
|
61
|
+
source: unescape('context%0A%09%3Creturn%20self.context%3E'),
|
62
|
+
messageSends: [],
|
63
|
+
referencedClasses: []
|
64
|
+
}),
|
65
|
+
smalltalk.Error);
|
66
|
+
|
67
|
+
smalltalk.addMethod(
|
68
|
+
unescape('_jsStack'),
|
69
|
+
smalltalk.method({
|
70
|
+
selector: unescape('jsStack'),
|
71
|
+
category: 'accessing',
|
72
|
+
fn: function (){
|
73
|
+
var self=this;
|
74
|
+
return self.stack;
|
75
|
+
return self;},
|
76
|
+
args: [],
|
77
|
+
source: unescape('jsStack%0A%09%3Creturn%20self.stack%3E'),
|
78
|
+
messageSends: [],
|
79
|
+
referencedClasses: []
|
80
|
+
}),
|
81
|
+
smalltalk.Error);
|
82
|
+
|
83
|
+
smalltalk.addMethod(
|
84
|
+
unescape('_isSmalltalkError'),
|
85
|
+
smalltalk.method({
|
86
|
+
selector: unescape('isSmalltalkError'),
|
87
|
+
category: 'testing',
|
88
|
+
fn: function (){
|
89
|
+
var self=this;
|
90
|
+
return self.smalltalkError === true;
|
91
|
+
return self;},
|
92
|
+
args: [],
|
93
|
+
source: unescape('isSmalltalkError%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'),
|
94
|
+
messageSends: [],
|
95
|
+
referencedClasses: []
|
96
|
+
}),
|
97
|
+
smalltalk.Error);
|
98
|
+
|
99
|
+
|
100
|
+
smalltalk.addMethod(
|
101
|
+
unescape('_signal_'),
|
102
|
+
smalltalk.method({
|
103
|
+
selector: unescape('signal%3A'),
|
104
|
+
category: 'instance creation',
|
105
|
+
fn: function (aString){
|
106
|
+
var self=this;
|
107
|
+
return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
|
108
|
+
return self;},
|
109
|
+
args: ["aString"],
|
110
|
+
source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
|
111
|
+
messageSends: ["messageText:", "signal", "new"],
|
112
|
+
referencedClasses: []
|
113
|
+
}),
|
114
|
+
smalltalk.Error.klass);
|
115
|
+
|
116
|
+
|
117
|
+
smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel-Exceptions');
|
118
|
+
smalltalk.addMethod(
|
119
|
+
unescape('_message'),
|
120
|
+
smalltalk.method({
|
121
|
+
selector: unescape('message'),
|
122
|
+
category: 'accessing',
|
123
|
+
fn: function (){
|
124
|
+
var self=this;
|
125
|
+
return self['@message'];
|
126
|
+
return self;},
|
127
|
+
args: [],
|
128
|
+
source: unescape('message%0A%09%5Emessage'),
|
129
|
+
messageSends: [],
|
130
|
+
referencedClasses: []
|
131
|
+
}),
|
132
|
+
smalltalk.MessageNotUnderstood);
|
133
|
+
|
134
|
+
smalltalk.addMethod(
|
135
|
+
unescape('_message_'),
|
136
|
+
smalltalk.method({
|
137
|
+
selector: unescape('message%3A'),
|
138
|
+
category: 'accessing',
|
139
|
+
fn: function (aMessage){
|
140
|
+
var self=this;
|
141
|
+
(self['@message']=aMessage);
|
142
|
+
return self;},
|
143
|
+
args: ["aMessage"],
|
144
|
+
source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
|
145
|
+
messageSends: [],
|
146
|
+
referencedClasses: []
|
147
|
+
}),
|
148
|
+
smalltalk.MessageNotUnderstood);
|
149
|
+
|
150
|
+
smalltalk.addMethod(
|
151
|
+
unescape('_receiver'),
|
152
|
+
smalltalk.method({
|
153
|
+
selector: unescape('receiver'),
|
154
|
+
category: 'accessing',
|
155
|
+
fn: function (){
|
156
|
+
var self=this;
|
157
|
+
return self['@receiver'];
|
158
|
+
return self;},
|
159
|
+
args: [],
|
160
|
+
source: unescape('receiver%0A%09%5Ereceiver'),
|
161
|
+
messageSends: [],
|
162
|
+
referencedClasses: []
|
163
|
+
}),
|
164
|
+
smalltalk.MessageNotUnderstood);
|
165
|
+
|
166
|
+
smalltalk.addMethod(
|
167
|
+
unescape('_receiver_'),
|
168
|
+
smalltalk.method({
|
169
|
+
selector: unescape('receiver%3A'),
|
170
|
+
category: 'accessing',
|
171
|
+
fn: function (anObject){
|
172
|
+
var self=this;
|
173
|
+
(self['@receiver']=anObject);
|
174
|
+
return self;},
|
175
|
+
args: ["anObject"],
|
176
|
+
source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
|
177
|
+
messageSends: [],
|
178
|
+
referencedClasses: []
|
179
|
+
}),
|
180
|
+
smalltalk.MessageNotUnderstood);
|
181
|
+
|
182
|
+
smalltalk.addMethod(
|
183
|
+
unescape('_messageText'),
|
184
|
+
smalltalk.method({
|
185
|
+
selector: unescape('messageText'),
|
186
|
+
category: 'accessing',
|
187
|
+
fn: function (){
|
188
|
+
var self=this;
|
189
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_asString", []), "__comma", [unescape("%20does%20not%20understand%20%23")]), "__comma", [smalltalk.send(smalltalk.send(self, "_message", []), "_selector", [])]);
|
190
|
+
return self;},
|
191
|
+
args: [],
|
192
|
+
source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
|
193
|
+
messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
|
194
|
+
referencedClasses: []
|
195
|
+
}),
|
196
|
+
smalltalk.MessageNotUnderstood);
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel-Exceptions');
|
201
|
+
smalltalk.addMethod(
|
202
|
+
unescape('_handleError_'),
|
203
|
+
smalltalk.method({
|
204
|
+
selector: unescape('handleError%3A'),
|
205
|
+
category: 'error handling',
|
206
|
+
fn: function (anError){
|
207
|
+
var self=this;
|
208
|
+
(($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
|
209
|
+
smalltalk.send(self, "_logError_", [anError]);
|
210
|
+
return self;},
|
211
|
+
args: ["anError"],
|
212
|
+
source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
|
213
|
+
messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
|
214
|
+
referencedClasses: []
|
215
|
+
}),
|
216
|
+
smalltalk.ErrorHandler);
|
217
|
+
|
218
|
+
smalltalk.addMethod(
|
219
|
+
unescape('_logContext_'),
|
220
|
+
smalltalk.method({
|
221
|
+
selector: unescape('logContext%3A'),
|
222
|
+
category: 'private',
|
223
|
+
fn: function (aContext){
|
224
|
+
var self=this;
|
225
|
+
(($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
|
226
|
+
smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
|
227
|
+
return self;},
|
228
|
+
args: ["aContext"],
|
229
|
+
source: unescape('logContext%3A%20aContext%0A%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'),
|
230
|
+
messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
|
231
|
+
referencedClasses: []
|
232
|
+
}),
|
233
|
+
smalltalk.ErrorHandler);
|
234
|
+
|
235
|
+
smalltalk.addMethod(
|
236
|
+
unescape('_logErrorContext_'),
|
237
|
+
smalltalk.method({
|
238
|
+
selector: unescape('logErrorContext%3A'),
|
239
|
+
category: 'private',
|
240
|
+
fn: function (aContext){
|
241
|
+
var self=this;
|
242
|
+
(($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil;
|
243
|
+
return self;},
|
244
|
+
args: ["aContext"],
|
245
|
+
source: unescape('logErrorContext%3A%20aContext%0A%09aContext%20ifNotNil%3A%20%5B%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'),
|
246
|
+
messageSends: ["ifNotNil:", "home", "logContext:"],
|
247
|
+
referencedClasses: []
|
248
|
+
}),
|
249
|
+
smalltalk.ErrorHandler);
|
250
|
+
|
251
|
+
smalltalk.addMethod(
|
252
|
+
unescape('_logError_'),
|
253
|
+
smalltalk.method({
|
254
|
+
selector: unescape('logError%3A'),
|
255
|
+
category: 'private',
|
256
|
+
fn: function (anError){
|
257
|
+
var self=this;
|
258
|
+
smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
|
259
|
+
return self;},
|
260
|
+
args: ["anError"],
|
261
|
+
source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
|
262
|
+
messageSends: ["log:", "messageText"],
|
263
|
+
referencedClasses: []
|
264
|
+
}),
|
265
|
+
smalltalk.ErrorHandler);
|
266
|
+
|
267
|
+
smalltalk.addMethod(
|
268
|
+
unescape('_log_'),
|
269
|
+
smalltalk.method({
|
270
|
+
selector: unescape('log%3A'),
|
271
|
+
category: 'private',
|
272
|
+
fn: function (aString){
|
273
|
+
var self=this;
|
274
|
+
smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
|
275
|
+
return self;},
|
276
|
+
args: ["aString"],
|
277
|
+
source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
|
278
|
+
messageSends: ["log:"],
|
279
|
+
referencedClasses: []
|
280
|
+
}),
|
281
|
+
smalltalk.ErrorHandler);
|
282
|
+
|
283
|
+
|
284
|
+
smalltalk.ErrorHandler.klass.iVarNames = ['current'];
|
285
|
+
smalltalk.addMethod(
|
286
|
+
unescape('_current'),
|
287
|
+
smalltalk.method({
|
288
|
+
selector: unescape('current'),
|
289
|
+
category: 'accessing',
|
290
|
+
fn: function (){
|
291
|
+
var self=this;
|
292
|
+
return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", []));})() : $receiver;
|
293
|
+
return self;},
|
294
|
+
args: [],
|
295
|
+
source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
|
296
|
+
messageSends: ["ifNil:", "new"],
|
297
|
+
referencedClasses: []
|
298
|
+
}),
|
299
|
+
smalltalk.ErrorHandler.klass);
|
300
|
+
|
301
|
+
smalltalk.addMethod(
|
302
|
+
unescape('_initialize'),
|
303
|
+
smalltalk.method({
|
304
|
+
selector: unescape('initialize'),
|
305
|
+
category: 'initialization',
|
306
|
+
fn: function (){
|
307
|
+
var self=this;
|
308
|
+
smalltalk.send(self, "_register", []);
|
309
|
+
return self;},
|
310
|
+
args: [],
|
311
|
+
source: unescape('initialize%0A%09self%20register'),
|
312
|
+
messageSends: ["register"],
|
313
|
+
referencedClasses: []
|
314
|
+
}),
|
315
|
+
smalltalk.ErrorHandler.klass);
|
316
|
+
|
317
|
+
smalltalk.addMethod(
|
318
|
+
unescape('_register'),
|
319
|
+
smalltalk.method({
|
320
|
+
selector: unescape('register'),
|
321
|
+
category: 'initialization',
|
322
|
+
fn: function (){
|
323
|
+
var self=this;
|
324
|
+
smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
|
325
|
+
return self;},
|
326
|
+
args: [],
|
327
|
+
source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
|
328
|
+
messageSends: ["setCurrent:", "new"],
|
329
|
+
referencedClasses: ["ErrorHandler"]
|
330
|
+
}),
|
331
|
+
smalltalk.ErrorHandler.klass);
|
332
|
+
|
333
|
+
smalltalk.addMethod(
|
334
|
+
unescape('_setCurrent_'),
|
335
|
+
smalltalk.method({
|
336
|
+
selector: unescape('setCurrent%3A'),
|
337
|
+
category: 'accessing',
|
338
|
+
fn: function (anHandler){
|
339
|
+
var self=this;
|
340
|
+
(self['@current']=anHandler);
|
341
|
+
return self;},
|
342
|
+
args: ["anHandler"],
|
343
|
+
source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
|
344
|
+
messageSends: [],
|
345
|
+
referencedClasses: []
|
346
|
+
}),
|
347
|
+
smalltalk.ErrorHandler.klass);
|
348
|
+
|
349
|
+
|