Przeglądaj źródła

Track Helios-Commands files

Nicolas Petton 11 lat temu
rodzic
commit
d55cbce2ad
3 zmienionych plików z 79 dodań i 0 usunięć
  1. 27 0
      js/Helios-Commands.deploy.js
  2. 37 0
      js/Helios-Commands.js
  3. 15 0
      st/Helios-Commands.st

+ 27 - 0
js/Helios-Commands.deploy.js

@@ -0,0 +1,27 @@
+smalltalk.addPackage('Helios-Commands', {});
+smalltalk.addClass('HLCommand', smalltalk.Object, [], 'Helios-Commands');
+smalltalk.addMethod(
+"_documentation",
+smalltalk.method({
+selector: "documentation",
+fn: function () {
+    var self = this;
+    return "";
+}
+}),
+smalltalk.HLCommand);
+
+smalltalk.addMethod(
+"_label",
+smalltalk.method({
+selector: "label",
+fn: function () {
+    var self = this;
+    smalltalk.send(self, "_subclassResponsibility", []);
+    return self;
+}
+}),
+smalltalk.HLCommand);
+
+
+

+ 37 - 0
js/Helios-Commands.js

@@ -0,0 +1,37 @@
+smalltalk.addPackage('Helios-Commands', {});
+smalltalk.addClass('HLCommand', smalltalk.Object, [], 'Helios-Commands');
+smalltalk.addMethod(
+"_documentation",
+smalltalk.method({
+selector: "documentation",
+category: 'accessing',
+fn: function () {
+    var self = this;
+    return "";
+},
+args: [],
+source: "documentation\x0a\x09^ ''",
+messageSends: [],
+referencedClasses: []
+}),
+smalltalk.HLCommand);
+
+smalltalk.addMethod(
+"_label",
+smalltalk.method({
+selector: "label",
+category: 'accessing',
+fn: function () {
+    var self = this;
+    smalltalk.send(self, "_subclassResponsibility", []);
+    return self;
+},
+args: [],
+source: "label\x0a\x09self subclassResponsibility",
+messageSends: ["subclassResponsibility"],
+referencedClasses: []
+}),
+smalltalk.HLCommand);
+
+
+

+ 15 - 0
st/Helios-Commands.st

@@ -0,0 +1,15 @@
+Smalltalk current createPackage: 'Helios-Commands' properties: #{}!
+Object subclass: #HLCommand
+	instanceVariableNames: ''
+	package: 'Helios-Commands'!
+
+!HLCommand methodsFor: 'accessing'!
+
+documentation
+	^ ''
+!
+
+label
+	self subclassResponsibility
+! !
+