|
@@ -6,10 +6,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "applyTo:arguments:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (anObject, aCollection){
|
|
|
-var self=this;
|
|
|
-return self.apply(anObject, aCollection);
|
|
|
-return self;},
|
|
|
+fn: function (anObject, aCollection) {
|
|
|
+ var self = this;
|
|
|
+ return self.apply(anObject, aCollection);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anObject", "aCollection"],
|
|
|
source: "applyTo: anObject arguments: aCollection\x0a\x09<return self.apply(anObject, aCollection)>",
|
|
|
messageSends: [],
|
|
@@ -22,10 +23,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "compiledSource",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.toString();
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.toString();
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "compiledSource\x0a\x09<return self.toString()>",
|
|
|
messageSends: [],
|
|
@@ -38,12 +40,13 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "ensure:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (aBlock){
|
|
|
-var self=this;
|
|
|
-var success=nil;
|
|
|
-(success=false);
|
|
|
-return smalltalk.send((function(){smalltalk.send(self, "_value", []);(success=true);return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
|
|
|
-return self;},
|
|
|
+fn: function (aBlock) {
|
|
|
+ var self = this;
|
|
|
+ var success = nil;
|
|
|
+ success = false;
|
|
|
+ return smalltalk.send(function () {smalltalk.send(self, "_value", []);success = true;return smalltalk.send(aBlock, "_value", []);}, "_on_do_", [smalltalk.Error || Error, function (ex) {($receiver = success).klass === smalltalk.Boolean ? !$receiver ? function () {return smalltalk.send(aBlock, "_value", []);}() : nil : smalltalk.send($receiver, "_ifFalse_", [function () {return smalltalk.send(aBlock, "_value", []);}]);return smalltalk.send(ex, "_signal", []);}]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aBlock"],
|
|
|
source: "ensure: aBlock\x0a\x09| success |\x0a\x09success := false.\x0a\x09^[self value. success := true. aBlock value]\x0a\x09\x09on: Error\x0a\x09\x09do: [:ex |\x0a\x09\x09\x09success ifFalse: [aBlock value].\x0a\x09\x09\x09ex signal]",
|
|
|
messageSends: ["on:do:", "value", "ifFalse:", "signal"],
|
|
@@ -56,10 +59,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "new",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return new self();
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return new self;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "new\x0a\x09\x22Use the receiver as a JS constructor. \x0a\x09*Do not* use this method to instanciate Smalltalk objects!\x22\x0a\x09<return new self()>",
|
|
|
messageSends: [],
|
|
@@ -72,10 +76,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "newValue:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (anObject){
|
|
|
-var self=this;
|
|
|
-return new self(anObject);
|
|
|
-return self;},
|
|
|
+fn: function (anObject) {
|
|
|
+ var self = this;
|
|
|
+ return new self(anObject);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anObject"],
|
|
|
source: "newValue: anObject\x0a\x09\x22Use the receiver as a JS constructor. \x0a\x09*Do not* use this method to instanciate Smalltalk objects!\x22\x0a\x09<return new self(anObject)>",
|
|
|
messageSends: [],
|
|
@@ -88,10 +93,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "newValue:value:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (anObject, anObject2){
|
|
|
-var self=this;
|
|
|
-return new self(anObject, anObject2);
|
|
|
-return self;},
|
|
|
+fn: function (anObject, anObject2) {
|
|
|
+ var self = this;
|
|
|
+ return new self(anObject, anObject2);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anObject", "anObject2"],
|
|
|
source: "newValue: anObject value: anObject2\x0a\x09\x22Use the receiver as a JS constructor. \x0a\x09*Do not* use this method to instanciate Smalltalk objects!\x22\x0a\x09<return new self(anObject, anObject2)>",
|
|
|
messageSends: [],
|
|
@@ -104,10 +110,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "newValue:value:value:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (anObject, anObject2, anObject3){
|
|
|
-var self=this;
|
|
|
-return new self(anObject, anObject2);
|
|
|
-return self;},
|
|
|
+fn: function (anObject, anObject2, anObject3) {
|
|
|
+ var self = this;
|
|
|
+ return new self(anObject, anObject2);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anObject", "anObject2", "anObject3"],
|
|
|
source: "newValue: anObject value: anObject2 value: anObject3\x0a\x09\x22Use the receiver as a JS constructor. \x0a\x09*Do not* use this method to instanciate Smalltalk objects!\x22\x0a\x09<return new self(anObject, anObject2)>",
|
|
|
messageSends: [],
|
|
@@ -120,10 +127,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "numArgs",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.length;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.length;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "numArgs\x0a\x09<return self.length>",
|
|
|
messageSends: [],
|
|
@@ -136,10 +144,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "on:do:",
|
|
|
category: 'error handling',
|
|
|
-fn: function (anErrorClass, aBlock){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
|
|
|
-return self;},
|
|
|
+fn: function (anErrorClass, aBlock) {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_try_catch_", [self, function (error) {return ($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean ? $receiver ? function () {return smalltalk.send(aBlock, "_value_", [error]);}() : function () {return smalltalk.send(error, "_signal", []);}() : smalltalk.send($receiver, "_ifTrue_ifFalse_", [function () {return smalltalk.send(aBlock, "_value_", [error]);}, function () {return smalltalk.send(error, "_signal", []);}]);}]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anErrorClass", "aBlock"],
|
|
|
source: "on: anErrorClass do: aBlock\x0a\x09^self try: self catch: [:error |\x0a\x09 (error isKindOf: anErrorClass) \x0a\x09 ifTrue: [aBlock value: error]\x0a\x09 ifFalse: [error signal]]",
|
|
|
messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
|
|
@@ -152,10 +161,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "timeToRun",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(smalltalk.Date || Date, "_millisecondsToRun_", [self]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "timeToRun\x0a\x09\x22Answer the number of milliseconds taken to execute this block.\x22\x0a\x0a\x09^ Date millisecondsToRun: self",
|
|
|
messageSends: ["millisecondsToRun:"],
|
|
@@ -168,10 +178,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "value",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self();;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self();
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "value\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<return self();>",
|
|
|
messageSends: [],
|
|
@@ -184,10 +195,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "value:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (anArg){
|
|
|
-var self=this;
|
|
|
-return self(anArg);;
|
|
|
-return self;},
|
|
|
+fn: function (anArg) {
|
|
|
+ var self = this;
|
|
|
+ return self(anArg);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anArg"],
|
|
|
source: "value: anArg\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<return self(anArg);>",
|
|
|
messageSends: [],
|
|
@@ -200,10 +212,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "value:value:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (firstArg, secondArg){
|
|
|
-var self=this;
|
|
|
-return self(firstArg, secondArg);;
|
|
|
-return self;},
|
|
|
+fn: function (firstArg, secondArg) {
|
|
|
+ var self = this;
|
|
|
+ return self(firstArg, secondArg);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["firstArg", "secondArg"],
|
|
|
source: "value: firstArg value: secondArg\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<return self(firstArg, secondArg);>",
|
|
|
messageSends: [],
|
|
@@ -216,10 +229,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "value:value:value:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (firstArg, secondArg, thirdArg){
|
|
|
-var self=this;
|
|
|
-return self(firstArg, secondArg, thirdArg);;
|
|
|
-return self;},
|
|
|
+fn: function (firstArg, secondArg, thirdArg) {
|
|
|
+ var self = this;
|
|
|
+ return self(firstArg, secondArg, thirdArg);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["firstArg", "secondArg", "thirdArg"],
|
|
|
source: "value: firstArg value: secondArg value: thirdArg\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<return self(firstArg, secondArg, thirdArg);>",
|
|
|
messageSends: [],
|
|
@@ -232,10 +246,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "valueWithInterval:",
|
|
|
category: 'timeout/interval',
|
|
|
-fn: function (aNumber){
|
|
|
-var self=this;
|
|
|
-return setInterval(self, aNumber);
|
|
|
-return self;},
|
|
|
+fn: function (aNumber) {
|
|
|
+ var self = this;
|
|
|
+ return setInterval(self, aNumber);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aNumber"],
|
|
|
source: "valueWithInterval: aNumber\x0a\x09<return setInterval(self, aNumber)>",
|
|
|
messageSends: [],
|
|
@@ -248,10 +263,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "valueWithPossibleArguments:",
|
|
|
category: 'evaluating',
|
|
|
-fn: function (aCollection){
|
|
|
-var self=this;
|
|
|
-return self.apply(null, aCollection);;
|
|
|
-return self;},
|
|
|
+fn: function (aCollection) {
|
|
|
+ var self = this;
|
|
|
+ return self.apply(null, aCollection);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aCollection"],
|
|
|
source: "valueWithPossibleArguments: aCollection\x0a\x09<return self.apply(null, aCollection);>",
|
|
|
messageSends: [],
|
|
@@ -264,10 +280,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "valueWithTimeout:",
|
|
|
category: 'timeout/interval',
|
|
|
-fn: function (aNumber){
|
|
|
-var self=this;
|
|
|
-return setTimeout(self, aNumber);
|
|
|
-return self;},
|
|
|
+fn: function (aNumber) {
|
|
|
+ var self = this;
|
|
|
+ return setTimeout(self, aNumber);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aNumber"],
|
|
|
source: "valueWithTimeout: aNumber\x0a\x09<return setTimeout(self, aNumber)>",
|
|
|
messageSends: [],
|
|
@@ -280,10 +297,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "whileFalse",
|
|
|
category: 'controlling',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_whileFalse_", [function () {return nil;}]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "whileFalse\x0a\x09\x22inlined in the Compiler\x22\x0a\x09self whileFalse: []",
|
|
|
messageSends: ["whileFalse:"],
|
|
@@ -296,10 +314,13 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "whileFalse:",
|
|
|
category: 'controlling',
|
|
|
-fn: function (aBlock){
|
|
|
-var self=this;
|
|
|
-while(!self()) {aBlock()};
|
|
|
-return self;},
|
|
|
+fn: function (aBlock) {
|
|
|
+ var self = this;
|
|
|
+ while (!self()) {
|
|
|
+ aBlock();
|
|
|
+ }
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aBlock"],
|
|
|
source: "whileFalse: aBlock\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<while(!self()) {aBlock()}>",
|
|
|
messageSends: [],
|
|
@@ -312,10 +333,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "whileTrue",
|
|
|
category: 'controlling',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_whileTrue_", [function () {return nil;}]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "whileTrue\x0a\x09\x22inlined in the Compiler\x22\x0a\x09self whileTrue: []",
|
|
|
messageSends: ["whileTrue:"],
|
|
@@ -328,10 +350,13 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "whileTrue:",
|
|
|
category: 'controlling',
|
|
|
-fn: function (aBlock){
|
|
|
-var self=this;
|
|
|
-while(self()) {aBlock()};
|
|
|
-return self;},
|
|
|
+fn: function (aBlock) {
|
|
|
+ var self = this;
|
|
|
+ while (self()) {
|
|
|
+ aBlock();
|
|
|
+ }
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aBlock"],
|
|
|
source: "whileTrue: aBlock\x0a\x09\x22inlined in the Compiler\x22\x0a\x09<while(self()) {aBlock()}>",
|
|
|
messageSends: [],
|
|
@@ -348,10 +373,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "arguments",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.args || [];
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.args || [];
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "arguments\x0a\x09<return self.args || []>",
|
|
|
messageSends: [],
|
|
@@ -364,10 +390,12 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "category",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return ($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil ||
|
|
|
+ $receiver == undefined ? function () {return "";}() : $receiver;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "category\x0a\x09^(self basicAt: 'category') ifNil: ['']",
|
|
|
messageSends: ["ifNil:", "basicAt:"],
|
|
@@ -380,10 +408,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "category:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_basicAt_put_", ["category", aString]);
|
|
|
-return self;},
|
|
|
+fn: function (aString) {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_basicAt_put_", ["category", aString]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aString"],
|
|
|
source: "category: aString\x0a\x09self basicAt: 'category' put: aString",
|
|
|
messageSends: ["basicAt:put:"],
|
|
@@ -396,10 +425,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "fn",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_basicAt_", ["fn"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_basicAt_", ["fn"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "fn\x0a\x09^self basicAt: 'fn'",
|
|
|
messageSends: ["basicAt:"],
|
|
@@ -412,10 +442,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "fn:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (aBlock){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
|
|
|
-return self;},
|
|
|
+fn: function (aBlock) {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aBlock"],
|
|
|
source: "fn: aBlock\x0a\x09self basicAt: 'fn' put: aBlock",
|
|
|
messageSends: ["basicAt:put:"],
|
|
@@ -428,10 +459,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "messageSends",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_basicAt_", ["messageSends"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_basicAt_", ["messageSends"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "messageSends\x0a\x09^self basicAt: 'messageSends'",
|
|
|
messageSends: ["basicAt:"],
|
|
@@ -444,10 +476,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "methodClass",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_basicAt_", ["methodClass"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_basicAt_", ["methodClass"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "methodClass\x0a\x09^self basicAt: 'methodClass'",
|
|
|
messageSends: ["basicAt:"],
|
|
@@ -460,10 +493,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "referencedClasses",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "referencedClasses\x0a\x09^self basicAt: 'referencedClasses'",
|
|
|
messageSends: ["basicAt:"],
|
|
@@ -476,10 +510,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(self, "_basicAt_", ["selector"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(self, "_basicAt_", ["selector"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "selector\x0a\x09^self basicAt: 'selector'",
|
|
|
messageSends: ["basicAt:"],
|
|
@@ -492,10 +527,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
|
|
|
-return self;},
|
|
|
+fn: function (aString) {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aString"],
|
|
|
source: "selector: aString\x0a\x09self basicAt: 'selector' put: aString",
|
|
|
messageSends: ["basicAt:put:"],
|
|
@@ -508,10 +544,12 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "source",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return ($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil ||
|
|
|
+ $receiver == undefined ? function () {return "";}() : $receiver;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "source\x0a\x09^(self basicAt: 'source') ifNil: ['']",
|
|
|
messageSends: ["ifNil:", "basicAt:"],
|
|
@@ -524,10 +562,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "source:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(self, "_basicAt_put_", ["source", aString]);
|
|
|
-return self;},
|
|
|
+fn: function (aString) {
|
|
|
+ var self = this;
|
|
|
+ smalltalk.send(self, "_basicAt_put_", ["source", aString]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aString"],
|
|
|
source: "source: aString\x0a\x09self basicAt: 'source' put: aString",
|
|
|
messageSends: ["basicAt:put:"],
|
|
@@ -544,10 +583,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "arguments",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self['@arguments'];
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self['@arguments'];
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "arguments\x0a\x09^arguments",
|
|
|
messageSends: [],
|
|
@@ -560,10 +600,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "arguments:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (anArray){
|
|
|
-var self=this;
|
|
|
-(self['@arguments']=anArray);
|
|
|
-return self;},
|
|
|
+fn: function (anArray) {
|
|
|
+ var self = this;
|
|
|
+ self['@arguments'] = anArray;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anArray"],
|
|
|
source: "arguments: anArray\x0a\x09arguments := anArray",
|
|
|
messageSends: [],
|
|
@@ -576,10 +617,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "printString",
|
|
|
category: 'printing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Message.superclass || nil)]);smalltalk.send($rec, "_nextPutAll_", ["("]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [")"]);})(aStream);})]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(smalltalk.String || String, "_streamContents_", [function (aStream) {return function ($rec) {smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Message.superclass || nil)]);smalltalk.send($rec, "_nextPutAll_", ["("]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [")"]);}(aStream);}]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "printString\x0a\x09^ String streamContents: [:aStream| \x0a \x09\x09\x09\x09aStream \x0a \x09\x09\x09\x09\x09nextPutAll: super printString;\x0a \x09\x09\x09\x09\x09nextPutAll: '(';\x0a \x09\x09\x09\x09\x09nextPutAll: selector;\x0a \x09\x09\x09\x09\x09nextPutAll: ')' \x09\x09\x09\x09]",
|
|
|
messageSends: ["streamContents:", "nextPutAll:", "printString"],
|
|
@@ -592,10 +634,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self['@selector'];
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self['@selector'];
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "selector\x0a\x09^selector",
|
|
|
messageSends: [],
|
|
@@ -608,10 +651,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector:",
|
|
|
category: 'accessing',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-(self['@selector']=aString);
|
|
|
-return self;},
|
|
|
+fn: function (aString) {
|
|
|
+ var self = this;
|
|
|
+ self['@selector'] = aString;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aString"],
|
|
|
source: "selector: aString\x0a\x09selector := aString",
|
|
|
messageSends: [],
|
|
@@ -624,12 +668,13 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "sendTo:",
|
|
|
category: 'printing',
|
|
|
-fn: function (anObject){
|
|
|
-var self=this;
|
|
|
-smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_send_to_arguments_", [smalltalk.send(self, "_selector", []), anObject, smalltalk.send(self, "_arguments", [])]);
|
|
|
-return self;},
|
|
|
+fn: function (anObject) {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(smalltalk.send(smalltalk.Smalltalk || Smalltalk, "_current", []), "_send_to_arguments_", [smalltalk.send(self, "_selector", []), anObject, smalltalk.send(self, "_arguments", [])]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["anObject"],
|
|
|
-source: "sendTo: anObject\x0a\x09Smalltalk current send: self selector to: anObject arguments: self arguments",
|
|
|
+source: "sendTo: anObject\x0a\x09^ Smalltalk current send: self selector to: anObject arguments: self arguments",
|
|
|
messageSends: ["send:to:arguments:", "current", "selector", "arguments"],
|
|
|
referencedClasses: ["Smalltalk"]
|
|
|
}),
|
|
@@ -641,10 +686,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector:arguments:",
|
|
|
category: 'instance creation',
|
|
|
-fn: function (aString, anArray){
|
|
|
-var self=this;
|
|
|
-return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
-return self;},
|
|
|
+fn: function (aString, anArray) {
|
|
|
+ var self = this;
|
|
|
+ return function ($rec) {smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);}(smalltalk.send(self, "_new", []));
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: ["aString", "anArray"],
|
|
|
source: "selector: aString arguments: anArray\x0a\x09^self new\x0a\x09\x09selector: aString;\x0a\x09\x09arguments: anArray;\x0a\x09\x09yourself",
|
|
|
messageSends: ["selector:", "arguments:", "yourself", "new"],
|
|
@@ -660,10 +706,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "asString",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [" >> "]), "__comma", [smalltalk.send(self, "_selector", [])]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [" >> "]), "__comma", [smalltalk.send(self, "_selector", [])]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "asString\x0a\x09^self receiver class printString, ' >> ', self selector",
|
|
|
messageSends: [",", "printString", "class", "receiver", "selector"],
|
|
@@ -676,10 +723,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "home",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.homeContext;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.homeContext;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "home\x0a\x09<return self.homeContext>",
|
|
|
messageSends: [],
|
|
@@ -692,10 +740,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "printString",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.MethodContext.superclass || nil), "__comma", ["("]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [")"]);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.MethodContext.superclass || nil), "__comma", ["("]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [")"]);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "printString\x0a\x09^super printString, '(', self asString, ')'",
|
|
|
messageSends: [",", "printString", "asString"],
|
|
@@ -708,10 +757,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "receiver",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.receiver;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.receiver;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "receiver\x0a\x09<return self.receiver>",
|
|
|
messageSends: [],
|
|
@@ -724,10 +774,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "selector",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.convertSelector(self.selector);
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return smalltalk.convertSelector(self.selector);
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "selector\x0a\x09<return smalltalk.convertSelector(self.selector)>",
|
|
|
messageSends: [],
|
|
@@ -740,10 +791,11 @@ smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "temps",
|
|
|
category: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return self.temps;
|
|
|
-return self;},
|
|
|
+fn: function () {
|
|
|
+ var self = this;
|
|
|
+ return self.temps;
|
|
|
+ return self;
|
|
|
+},
|
|
|
args: [],
|
|
|
source: "temps\x0a\x09<return self.temps>",
|
|
|
messageSends: [],
|