|
@@ -678,6 +678,30 @@ return $recv($globals.Association)._key_value_(self,anObject);
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "andSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "andSelfToNumber: 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,"andSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "appendToString:",
|
|
selector: "appendToString:",
|
|
@@ -1363,6 +1387,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "orSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "orSelfToNumber: 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,"orSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "plusSelfToNumber:",
|
|
selector: "plusSelfToNumber:",
|
|
@@ -1602,6 +1650,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Object);
|
|
$globals.Object);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "xorSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "xorSelfToNumber: 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,"xorSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Object);
|
|
|
|
+
|
|
|
|
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
@@ -3561,6 +3633,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "andSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "andSelfToNumber: 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,"andSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "arcCos",
|
|
selector: "arcCos",
|
|
@@ -3827,17 +3923,19 @@ selector: "bitAnd:",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "bitAnd: aNumber\x0a\x09<inlineJS: 'return self & aNumber'>",
|
|
|
|
|
|
+source: "bitAnd: aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self & aNumber :\x0a\x09\x09$recv(aNumber)._andSelfToNumber_(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)._andSelfToNumber_(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)._andSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"bitAnd:",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"bitAnd:",{aNumber:aNumber})});
|
|
@@ -3875,17 +3973,19 @@ selector: "bitOr:",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "bitOr: aNumber\x0a\x09<inlineJS: 'return self | aNumber'>",
|
|
|
|
|
|
+source: "bitOr: aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self | aNumber :\x0a\x09\x09$recv(aNumber)._orSelfToNumber_(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)._orSelfToNumber_(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)._orSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"bitOr:",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"bitOr:",{aNumber:aNumber})});
|
|
@@ -3899,17 +3999,19 @@ selector: "bitXor:",
|
|
protocol: "converting",
|
|
protocol: "converting",
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: ["aNumber"],
|
|
args: ["aNumber"],
|
|
-source: "bitXor: aNumber\x0a\x09<inlineJS: 'return self ^ aNumber'>",
|
|
|
|
|
|
+source: "bitXor: aNumber\x0a\x09<inlineJS: 'return typeof aNumber === \x22number\x22 ?\x0a\x09\x09self ^ aNumber :\x0a\x09\x09$recv(aNumber)._xorSelfToNumber_(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)._xorSelfToNumber_(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)._xorSelfToNumber_(self);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"bitXor:",{aNumber:aNumber})});
|
|
}, function($ctx1) {$ctx1.fill(self,"bitXor:",{aNumber:aNumber})});
|
|
@@ -4611,6 +4713,30 @@ return $recv($self._even())._not();
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "orSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "orSelfToNumber: 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,"orSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "plusSelfToNumber:",
|
|
selector: "plusSelfToNumber:",
|
|
@@ -5295,6 +5421,30 @@ return self;
|
|
}; }),
|
|
}; }),
|
|
$globals.Number);
|
|
$globals.Number);
|
|
|
|
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "xorSelfToNumber:",
|
|
|
|
+protocol: "converting",
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["aNumber"],
|
|
|
|
+source: "xorSelfToNumber: 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,"xorSelfToNumber:",{aNumber:aNumber})});
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+}; }),
|
|
|
|
+$globals.Number);
|
|
|
|
+
|
|
$core.addMethod(
|
|
$core.addMethod(
|
|
$core.method({
|
|
$core.method({
|
|
selector: "|",
|
|
selector: "|",
|