|
@@ -492,13 +492,20 @@ selector: "initialize",
|
|
|
category: 'initialization',
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
+function $ErrorHandler(){return smalltalk.ErrorHandler||(typeof ErrorHandler=="undefined"?nil:ErrorHandler)}
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1;
|
|
|
+$1=_st($ErrorHandler())._current();
|
|
|
+if(($receiver = $1) == nil || $receiver == null){
|
|
|
self._register();
|
|
|
+} else {
|
|
|
+$1;
|
|
|
+};
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.DebugErrorHandler.klass)})},
|
|
|
args: [],
|
|
|
-source: "initialize\x0a\x09self register",
|
|
|
-messageSends: ["register"],
|
|
|
-referencedClasses: []
|
|
|
+source: "initialize\x0a\x09ErrorHandler current ifNil: [ self register ]",
|
|
|
+messageSends: ["ifNil:", "current", "register"],
|
|
|
+referencedClasses: ["ErrorHandler"]
|
|
|
}),
|
|
|
smalltalk.DebugErrorHandler.klass);
|
|
|
|
|
@@ -7398,27 +7405,21 @@ var $1;
|
|
|
variables=_st($Dictionary())._new();
|
|
|
_st(variables)._at_put_("#self",self);
|
|
|
$ctx1.sendIdx["at:put:"]=1;
|
|
|
-_st(variables)._at_put_("#home",self._home());
|
|
|
+_st(variables)._at_put_("#keys",self._keys());
|
|
|
$ctx1.sendIdx["at:put:"]=2;
|
|
|
-_st(variables)._at_put_("#receiver",self._receiver());
|
|
|
-$ctx1.sendIdx["at:put:"]=3;
|
|
|
-_st(variables)._at_put_("#selector",self._selector());
|
|
|
-$ctx1.sendIdx["at:put:"]=4;
|
|
|
-_st(variables)._at_put_("#temps",self._temps());
|
|
|
-$ctx1.sendIdx["at:put:"]=5;
|
|
|
-_st(_st(self._class())._instanceVariableNames())._do_((function(each){
|
|
|
+self._keysAndValuesDo_((function(key,value){
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(variables)._at_put_(each,self._instVarAt_(each));
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
|
|
|
+return _st(variables)._at_put_(key,value);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1,1)})}));
|
|
|
_st(anInspector)._setLabel_(self._printString());
|
|
|
$1=_st(anInspector)._setVariables_(variables);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.MethodContext)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.HashedCollection)})},
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#home' put: self home.\x0a\x09variables at: '#receiver' put: self receiver.\x0a\x09variables at: '#selector' put: self selector.\x0a\x09variables at: '#temps' put: self temps.\x0a\x09self class instanceVariableNames do: [ :each |\x0a\x09\x09variables at: each put: (self instVarAt: each) ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#keys' put: self keys.\x0a\x09self keysAndValuesDo: [ :key :value |\x0a\x09\x09variables at: key put: value ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
referencedClasses: ["Dictionary"]
|
|
|
}),
|
|
|
-smalltalk.MethodContext);
|
|
|
+smalltalk.HashedCollection);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -7433,21 +7434,19 @@ var $1;
|
|
|
variables=_st($Dictionary())._new();
|
|
|
_st(variables)._at_put_("#self",self);
|
|
|
$ctx1.sendIdx["at:put:"]=1;
|
|
|
-_st(variables)._at_put_("#keys",self._keys());
|
|
|
-$ctx1.sendIdx["at:put:"]=2;
|
|
|
-self._keysAndValuesDo_((function(key,value){
|
|
|
+_st(self["@elements"])._withIndexDo_((function(each,i){
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(variables)._at_put_(key,value);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1,1)})}));
|
|
|
+return _st(variables)._at_put_(i,each);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1,1)})}));
|
|
|
_st(anInspector)._setLabel_(self._printString());
|
|
|
$1=_st(anInspector)._setVariables_(variables);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.HashedCollection)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Set)})},
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#keys' put: self keys.\x0a\x09self keysAndValuesDo: [ :key :value |\x0a\x09\x09variables at: key put: value ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09elements withIndexDo: [ :each :i |\x0a\x09\x09variables at: i put: each ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
referencedClasses: ["Dictionary"]
|
|
|
}),
|
|
|
-smalltalk.HashedCollection);
|
|
|
+smalltalk.Set);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -7462,18 +7461,26 @@ var $1;
|
|
|
variables=_st($Dictionary())._new();
|
|
|
_st(variables)._at_put_("#self",self);
|
|
|
$ctx1.sendIdx["at:put:"]=1;
|
|
|
-_st(self["@elements"])._withIndexDo_((function(each,i){
|
|
|
+_st(variables)._at_put_("#home",self._home());
|
|
|
+$ctx1.sendIdx["at:put:"]=2;
|
|
|
+_st(variables)._at_put_("#receiver",self._receiver());
|
|
|
+$ctx1.sendIdx["at:put:"]=3;
|
|
|
+_st(variables)._at_put_("#selector",self._selector());
|
|
|
+$ctx1.sendIdx["at:put:"]=4;
|
|
|
+_st(variables)._at_put_("#temps",self._temps());
|
|
|
+$ctx1.sendIdx["at:put:"]=5;
|
|
|
+_st(_st(self._class())._instanceVariableNames())._do_((function(each){
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(variables)._at_put_(i,each);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1,1)})}));
|
|
|
+return _st(variables)._at_put_(each,self._instVarAt_(each));
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
|
|
|
_st(anInspector)._setLabel_(self._printString());
|
|
|
$1=_st(anInspector)._setVariables_(variables);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Set)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.MethodContext)})},
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09elements withIndexDo: [ :each :i |\x0a\x09\x09variables at: i put: each ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#home' put: self home.\x0a\x09variables at: '#receiver' put: self receiver.\x0a\x09variables at: '#selector' put: self selector.\x0a\x09variables at: '#temps' put: self temps.\x0a\x09self class instanceVariableNames do: [ :each |\x0a\x09\x09variables at: each put: (self instVarAt: each) ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
|
|
|
referencedClasses: ["Dictionary"]
|
|
|
}),
|
|
|
-smalltalk.Set);
|
|
|
+smalltalk.MethodContext);
|
|
|
|
|
|
});
|