|
@@ -180,6 +180,38 @@ referencedClasses: []
|
|
|
smalltalk.Isolator.klass);
|
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+return nil;
|
|
|
+},
|
|
|
+args: ["anObject"],
|
|
|
+source: "reverseTrapAt: anObject\x0a\x09^nil",
|
|
|
+messageSends: [],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.Object);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_put_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:put:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject,value){
|
|
|
+var self=this;
|
|
|
+smalltalk.send(self,"_error_",[smalltalk.send(smalltalk.send("Trapped cannot put at ","__comma",[smalltalk.send(smalltalk.send(self,"_class",[]),"_name",[])]),"__comma",[" type key."])]);
|
|
|
+return self},
|
|
|
+args: ["anObject", "value"],
|
|
|
+source: "reverseTrapAt: anObject put: value\x0a\x09self error: 'Trapped cannot put at ', self class name, ' type key.'",
|
|
|
+messageSends: ["error:", ",", "name", "class"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.Object);
|
|
|
+
|
|
|
smalltalk.addMethod(
|
|
|
"_asEavModel",
|
|
|
smalltalk.method({
|
|
@@ -223,3 +255,123 @@ referencedClasses: ["EavModel"]
|
|
|
}),
|
|
|
smalltalk.SequenceableCollection);
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+$1=smalltalk.send(anObject,"_at_ifAbsent_",[self,(function(){
|
|
|
+return nil;
|
|
|
+})]);
|
|
|
+return $1;
|
|
|
+},
|
|
|
+args: ["anObject"],
|
|
|
+source: "reverseTrapAt: anObject\x0a\x09^anObject at: self ifAbsent: [nil]",
|
|
|
+messageSends: ["at:ifAbsent:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.String);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_put_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:put:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject,value){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+$1=smalltalk.send(anObject,"_at_put_",[self,value]);
|
|
|
+return $1;
|
|
|
+},
|
|
|
+args: ["anObject", "value"],
|
|
|
+source: "reverseTrapAt: anObject put: value\x0a\x09^anObject at: self put: value",
|
|
|
+messageSends: ["at:put:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.String);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+var $early={};
|
|
|
+try {
|
|
|
+$1=smalltalk.send((function(){
|
|
|
+return smalltalk.send(anObject,"_perform_",[self]);
|
|
|
+}),"_on_do_",[(smalltalk.MessageNotUnderstood || MessageNotUnderstood),(function(){
|
|
|
+throw $early=[nil];
|
|
|
+})]);
|
|
|
+return $1;
|
|
|
+}
|
|
|
+catch(e) {if(e===$early)return e[0]; throw e}
|
|
|
+},
|
|
|
+args: ["anObject"],
|
|
|
+source: "reverseTrapAt: anObject\x0a\x09^[anObject perform: self] on: MessageNotUnderstood do: [^nil]",
|
|
|
+messageSends: ["on:do:", "perform:"],
|
|
|
+referencedClasses: ["MessageNotUnderstood"]
|
|
|
+}),
|
|
|
+smalltalk.Symbol);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_put_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:put:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject,value){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+$1=smalltalk.send(anObject,"_perform_withArguments_",[smalltalk.send(smalltalk.send(self,"__comma",[":"]),"_asSymbol",[]),[value]]);
|
|
|
+return $1;
|
|
|
+},
|
|
|
+args: ["anObject", "value"],
|
|
|
+source: "reverseTrapAt: anObject put: value\x0a ^anObject perform: (self, ':') asSymbol withArguments: { value }",
|
|
|
+messageSends: ["perform:withArguments:", "asSymbol", ","],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.Symbol);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+$1=smalltalk.send(anObject,"_at_ifAbsent_",[self,(function(){
|
|
|
+return nil;
|
|
|
+})]);
|
|
|
+return $1;
|
|
|
+},
|
|
|
+args: ["anObject"],
|
|
|
+source: "reverseTrapAt: anObject\x0a\x09^anObject at: self ifAbsent: [nil]",
|
|
|
+messageSends: ["at:ifAbsent:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.Number);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+"_reverseTrapAt_put_",
|
|
|
+smalltalk.method({
|
|
|
+selector: "reverseTrapAt:put:",
|
|
|
+category: '*Trapped-Backend',
|
|
|
+fn: function (anObject,value){
|
|
|
+var self=this;
|
|
|
+var $1;
|
|
|
+$1=smalltalk.send(anObject,"_at_put_",[self,value]);
|
|
|
+return $1;
|
|
|
+},
|
|
|
+args: ["anObject", "value"],
|
|
|
+source: "reverseTrapAt: anObject put: value\x0a\x09^anObject at: self put: value",
|
|
|
+messageSends: ["at:put:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.Number);
|
|
|
+
|