|
@@ -105,6 +105,24 @@ messageSends: ["at:ifAbsent:", "methodDictionary", "selector", "ifFalse:", "incl
|
|
|
}),
|
|
|
$globals.BehaviorBody);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "allSubclassesDo:",
|
|
|
+protocol: "enumerating",
|
|
|
+fn: function (aBlock){
|
|
|
+var self=this;
|
|
|
+return self;
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["aBlock"],
|
|
|
+source: "allSubclassesDo: aBlock\x0a\x09\x22Default for non-classes; to be able to send #allSubclassesDo: to any class / trait.\x22",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.BehaviorBody);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "basicAddCompiledMethod:",
|
|
@@ -241,15 +259,21 @@ selector: "definition",
|
|
|
protocol: "accessing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
-return "";
|
|
|
-
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+self._subclassResponsibility();
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"definition",{},$globals.BehaviorBody)});
|
|
|
+
|
|
|
},
|
|
|
|
|
|
args: [],
|
|
|
-source: "definition\x0a\x09^ ''",
|
|
|
+source: "definition\x0a\x09self subclassResponsibility",
|
|
|
referencedClasses: [],
|
|
|
|
|
|
-messageSends: []
|
|
|
+messageSends: ["subclassResponsibility"]
|
|
|
}),
|
|
|
$globals.BehaviorBody);
|
|
|
|
|
@@ -890,6 +914,24 @@ messageSends: []
|
|
|
}),
|
|
|
$globals.BehaviorBody);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "superclass",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return nil;
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "superclass\x0a\x09\x22Default for non-classes; to be able to send #superclass to any class / trait.\x22\x0a\x09^ nil",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.BehaviorBody);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "theMetaClass",
|
|
@@ -1035,6 +1077,24 @@ messageSends: ["ifNotEmpty:", "traitComposition", "streamContents:", "write:", "
|
|
|
}),
|
|
|
$globals.BehaviorBody);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "traitUsers",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return [];
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "traitUsers\x0a\x09\x22Default for non-traits; to be able to send #traitUsers to any class / trait\x22\x0a\x09^ #()",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.BehaviorBody);
|
|
|
+
|
|
|
|
|
|
|
|
|
$core.addClass("Behavior", $globals.BehaviorBody, [], "Kernel-Classes");
|
|
@@ -1287,24 +1347,6 @@ messageSends: ["or:", "includesSelector:", "asString", "and:", "notNil", "superc
|
|
|
}),
|
|
|
$globals.Behavior);
|
|
|
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "definition",
|
|
|
-protocol: "accessing",
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return "";
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "definition\x0a\x09^ ''",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.Behavior);
|
|
|
-
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "includesBehavior:",
|
|
@@ -2650,24 +2692,6 @@ messageSends: []
|
|
|
}),
|
|
|
$globals.Trait);
|
|
|
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "allSubclassesDo:",
|
|
|
-protocol: "IDE compatibility",
|
|
|
-fn: function (aBlock){
|
|
|
-var self=this;
|
|
|
-return self;
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aBlock"],
|
|
|
-source: "allSubclassesDo: aBlock",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.Trait);
|
|
|
-
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "asJavascript",
|
|
@@ -2916,24 +2940,6 @@ messageSends: ["ifTrue:", "=", "package", "basicAt:put:", "removeElement:", "org
|
|
|
}),
|
|
|
$globals.Trait);
|
|
|
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "superclass",
|
|
|
-protocol: "IDE compatibility",
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return nil;
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "superclass\x0a\x09^ nil",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.Trait);
|
|
|
-
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "theMetaClass",
|