|
@@ -1071,6 +1071,54 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "divideBySelfToNumber:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "divideBySelfToNumber: aNumber\x0a\x09self error: 'I am not a number.'",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["error:"]
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$self._error_("I am not a number.");
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"divideBySelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "divisionRemainderBySelfToNumber:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "divisionRemainderBySelfToNumber: aNumber\x0a\x09self error: 'I am not a number.'",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["error:"]
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$self._error_("I am not a number.");
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"divisionRemainderBySelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "error:",
|
|
selector: "error:",
|
|
@@ -1183,6 +1231,96 @@ return $recv($self._class()).__eq(aClass);
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberEqualToSelf: aNumber\x0a\x09^ false",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return false;
|
|
|
|
+
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberGreaterThanOrEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberGreaterThanOrEqualToSelf: aNumber\x0a\x09^ false",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return false;
|
|
|
|
+
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberGreaterThanSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberGreaterThanSelf: aNumber\x0a\x09^ false",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return false;
|
|
|
|
+
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberLessThanOrEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberLessThanOrEqualToSelf: aNumber\x0a\x09^ false",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return false;
|
|
|
|
+
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberLessThanSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberLessThanSelf: aNumber\x0a\x09^ false",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return false;
|
|
|
|
+
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "isParseFailure",
|
|
selector: "isParseFailure",
|
|
@@ -1201,6 +1339,54 @@ return false;
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "minusSelfToNumber:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "minusSelfToNumber: aNumber\x0a\x09self error: 'I am not a number.'",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["error:"]
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$self._error_("I am not a number.");
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"minusSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "plusSelfToNumber:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "plusSelfToNumber: aNumber\x0a\x09self error: 'I am not a number.'",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["error:"]
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$self._error_("I am not a number.");
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"plusSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "postCopy",
|
|
selector: "postCopy",
|
|
@@ -1368,6 +1554,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "timesSelfToNumber:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "timesSelfToNumber: aNumber\x0a\x09self error: 'I am not a number.'",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["error:"]
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$self._error_("I am not a number.");
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"timesSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "value",
|
|
selector: "value",
|
|
@@ -2981,18 +3191,17 @@ selector: "&",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "& aNumber\x0a\x09<inlineJS: 'return self & aNumber'>",
|
|
|
|
|
|
+source: "& aNumber\x0a\x09^ self bitAnd: aNumber",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self & aNumber"]]],
|
|
|
|
-messageSends: []
|
|
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["bitAnd:"]
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self & aNumber;
|
|
|
|
-return self;
|
|
|
|
|
|
+return $self._bitAnd_(aNumber);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"&",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"&",{aNumber:aNumber})});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -3005,17 +3214,19 @@ selector: "*",
|
|
protocol: "arithmetic",
|
|
protocol: "arithmetic",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "* aNumber\x0a\x09<inlineJS: 'return self * aNumber'>",
|
|
|
|
|
|
+source: "* aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self * aNumber :\x0a\x09\x09$recv(aNumber)._timesSelfToNumber_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self * aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self * aNumber :\x0a\x09\x09$recv(aNumber)._timesSelfToNumber_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self * aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ self * aNumber :
|
|
|
|
+ $recv(aNumber)._timesSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"*",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"*",{aNumber:aNumber})});
|
|
@@ -3052,17 +3263,19 @@ selector: "+",
|
|
protocol: "arithmetic",
|
|
protocol: "arithmetic",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "+ aNumber\x0a\x09<inlineJS: 'return self + aNumber'>",
|
|
|
|
|
|
+source: "+ aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self + aNumber :\x0a\x09\x09$recv(aNumber)._plusSelfToNumber_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self + aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self + aNumber :\x0a\x09\x09$recv(aNumber)._plusSelfToNumber_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self + aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ self + aNumber :
|
|
|
|
+ $recv(aNumber)._plusSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"+",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"+",{aNumber:aNumber})});
|
|
@@ -3076,17 +3289,19 @@ selector: "-",
|
|
protocol: "arithmetic",
|
|
protocol: "arithmetic",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "- aNumber\x0a\x09<inlineJS: 'return self - aNumber'>",
|
|
|
|
|
|
+source: "- aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self - aNumber :\x0a\x09\x09$recv(aNumber)._minusSelfToNumber_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self - aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self - aNumber :\x0a\x09\x09$recv(aNumber)._minusSelfToNumber_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self - aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ self - aNumber :
|
|
|
|
+ $recv(aNumber)._minusSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"-",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"-",{aNumber:aNumber})});
|
|
@@ -3100,17 +3315,19 @@ selector: "/",
|
|
protocol: "arithmetic",
|
|
protocol: "arithmetic",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "/ aNumber\x0a\x09<inlineJS: 'return self / aNumber'>",
|
|
|
|
|
|
+source: "/ aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self / aNumber :\x0a\x09\x09$recv(aNumber)._divideBySelfToNumber_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self / aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self / aNumber :\x0a\x09\x09$recv(aNumber)._divideBySelfToNumber_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self / aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ self / aNumber :
|
|
|
|
+ $recv(aNumber)._divideBySelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"/",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"/",{aNumber:aNumber})});
|
|
@@ -3147,17 +3364,19 @@ selector: "<",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "< aNumber\x0a\x09<inlineJS: 'return self < aNumber'>",
|
|
|
|
|
|
+source: "< aNumber\x0a<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) < aNumber :\x0a\x09$recv(aNumber)._isNumberLessThanSelf_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self < aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) < aNumber :\x0a\x09$recv(aNumber)._isNumberLessThanSelf_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self < aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ Number(self) < aNumber :
|
|
|
|
+ $recv(aNumber)._isNumberLessThanSelf_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"<",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"<",{aNumber:aNumber})});
|
|
@@ -3171,17 +3390,19 @@ selector: "<=",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "<= aNumber\x0a\x09<inlineJS: 'return self <= aNumber'>",
|
|
|
|
|
|
+source: "<= aNumber\x0a<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) <= aNumber :\x0a\x09$recv(aNumber)._isNumberLessThanOrEqualToSelf_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self <= aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) <= aNumber :\x0a\x09$recv(aNumber)._isNumberLessThanOrEqualToSelf_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self <= aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ Number(self) <= aNumber :
|
|
|
|
+ $recv(aNumber)._isNumberLessThanOrEqualToSelf_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"<=",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"<=",{aNumber:aNumber})});
|
|
@@ -3195,20 +3416,19 @@ selector: "==",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "== aNumber\x0a<inlineJS: '\x0a\x09if (typeof aNumber === \x22number\x22) return Number(self) === aNumber;\x0a\x09else if (aNumber != null && typeof aNumber === \x22object\x22) return Number(self) === aNumber.valueOf();\x0a\x09else return false;\x0a'>",
|
|
|
|
|
|
+source: "== aNumber\x0a<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) === aNumber :\x0a\x09$recv(aNumber)._isNumberEqualToSelf_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["\x0a\x09if (typeof aNumber === \x22number\x22) return Number(self) === aNumber;\x0a\x09else if (aNumber != null && typeof aNumber === \x22object\x22) return Number(self) === aNumber.valueOf();\x0a\x09else return false;"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) === aNumber :\x0a\x09$recv(aNumber)._isNumberEqualToSelf_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-
|
|
|
|
- if (typeof aNumber === "number") return Number(self) === aNumber;
|
|
|
|
- else if (aNumber != null && typeof aNumber === "object") return Number(self) === aNumber.valueOf();
|
|
|
|
- else return false;;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ Number(self) === aNumber :
|
|
|
|
+ $recv(aNumber)._isNumberEqualToSelf_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"==",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"==",{aNumber:aNumber})});
|
|
@@ -3222,17 +3442,19 @@ selector: ">",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "> aNumber\x0a\x09<inlineJS: 'return self > aNumber'>",
|
|
|
|
|
|
+source: "> aNumber\x0a<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) > aNumber :\x0a\x09$recv(aNumber)._isNumberGreaterThanSelf_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self > aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) > aNumber :\x0a\x09$recv(aNumber)._isNumberGreaterThanSelf_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self > aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ Number(self) > aNumber :
|
|
|
|
+ $recv(aNumber)._isNumberGreaterThanSelf_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,">",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,">",{aNumber:aNumber})});
|
|
@@ -3246,17 +3468,19 @@ selector: ">=",
|
|
protocol: "comparing",
|
|
protocol: "comparing",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: ">= aNumber\x0a\x09<inlineJS: 'return self >= aNumber'>",
|
|
|
|
|
|
+source: ">= aNumber\x0a<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) >= aNumber :\x0a\x09$recv(aNumber)._isNumberGreaterThanOrEqualToSelf_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self >= aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09Number(self) >= aNumber :\x0a\x09$recv(aNumber)._isNumberGreaterThanOrEqualToSelf_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self >= aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ Number(self) >= aNumber :
|
|
|
|
+ $recv(aNumber)._isNumberGreaterThanOrEqualToSelf_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,">=",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,">=",{aNumber:aNumber})});
|
|
@@ -3293,17 +3517,19 @@ selector: "\x5c\x5c",
|
|
protocol: "arithmetic",
|
|
protocol: "arithmetic",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "\x5c\x5c aNumber\x0a\x09<inlineJS: 'return self % aNumber'>",
|
|
|
|
|
|
+source: "\x5c\x5c aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self % aNumber :\x0a\x09\x09$recv(aNumber)._divisionRemainderBySelfToNumber_(self)'>",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self % aNumber"]]],
|
|
|
|
|
|
+pragmas: [["inlineJS:", ["return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self % aNumber :\x0a\x09\x09$recv(aNumber)._divisionRemainderBySelfToNumber_(self)"]]],
|
|
messageSends: []
|
|
messageSends: []
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self % aNumber;
|
|
|
|
|
|
+return typeof aNumber === "number" ?
|
|
|
|
+ self % aNumber :
|
|
|
|
+ $recv(aNumber)._divisionRemainderBySelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"\x5c\x5c",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"\x5c\x5c",{aNumber:aNumber})});
|
|
@@ -3803,6 +4029,54 @@ return $self.__star($recv($globals.Number)._radiansPerDegree());
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "divideBySelfToNumber:",
|
|
|
|
+protocol: "arithmetic",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "divideBySelfToNumber: aNumber\x0a\x09<inlineJS: 'return aNumber / self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber / self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber / self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"divideBySelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "divisionRemainderBySelfToNumber:",
|
|
|
|
+protocol: "arithmetic",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "divisionRemainderBySelfToNumber: aNumber\x0a\x09<inlineJS: 'return aNumber % self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber % self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber % self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"divisionRemainderBySelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "even",
|
|
selector: "even",
|
|
@@ -3934,6 +4208,126 @@ return true;
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberEqualToSelf: aNumber\x0a\x09<inlineJS: 'return aNumber === Number(self)'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber === Number(self)"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber === Number(self);
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"isNumberEqualToSelf:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberGreaterThanOrEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberGreaterThanOrEqualToSelf: aNumber\x0a\x09<inlineJS: 'return aNumber >= self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber >= self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber >= self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"isNumberGreaterThanOrEqualToSelf:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberGreaterThanSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberGreaterThanSelf: aNumber\x0a\x09<inlineJS: 'return aNumber > self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber > self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber > self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"isNumberGreaterThanSelf:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberLessThanOrEqualToSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberLessThanOrEqualToSelf: aNumber\x0a\x09<inlineJS: 'return aNumber <= self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber <= self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber <= self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"isNumberLessThanOrEqualToSelf:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "isNumberLessThanSelf:",
|
|
|
|
+protocol: "comparing",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "isNumberLessThanSelf: aNumber\x0a\x09<inlineJS: 'return aNumber < self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber < self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber < self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"isNumberLessThanSelf:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "isZero",
|
|
selector: "isZero",
|
|
@@ -4124,6 +4518,30 @@ return $recv($self._min_(aMin))._max_(aMax);
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "minusSelfToNumber:",
|
|
|
|
+protocol: "arithmetic",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "minusSelfToNumber: aNumber\x0a\x09<inlineJS: 'return aNumber - self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber - self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber - self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"minusSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "negated",
|
|
selector: "negated",
|
|
@@ -4193,6 +4611,30 @@ return $recv($self._even())._not();
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "plusSelfToNumber:",
|
|
|
|
+protocol: "arithmetic",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "plusSelfToNumber: aNumber\x0a\x09<inlineJS: 'return aNumber + self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber + self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber + self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"plusSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "positive",
|
|
selector: "positive",
|
|
@@ -4529,6 +4971,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "timesSelfToNumber:",
|
|
|
|
+protocol: "arithmetic",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "timesSelfToNumber: aNumber\x0a\x09<inlineJS: 'return aNumber * self'>",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [["inlineJS:", ["return aNumber * self"]]],
|
|
|
|
+messageSends: []
|
|
|
|
+}, function ($methodClass){ return function (aNumber){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+return aNumber * self;
|
|
|
|
+return self;
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"timesSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "to:",
|
|
selector: "to:",
|
|
@@ -4835,18 +5301,17 @@ selector: "|",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "| aNumber\x0a\x09<inlineJS: 'return self | aNumber'>",
|
|
|
|
|
|
+source: "| aNumber\x0a\x09^ self bitOr: aNumber",
|
|
referencedClasses: [],
|
|
referencedClasses: [],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
-pragmas: [["inlineJS:", ["return self | aNumber"]]],
|
|
|
|
-messageSends: []
|
|
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: ["bitOr:"]
|
|
}, function ($methodClass){ return function (aNumber){
|
|
}, function ($methodClass){ return function (aNumber){
|
|
var self=this,$self=this;
|
|
var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self | aNumber;
|
|
|
|
-return self;
|
|
|
|
|
|
+return $self._bitOr_(aNumber);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"|",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"|",{aNumber:aNumber})});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|