1
0
Prechádzať zdrojové kódy

remove 'Class' from shouldCompileClassDefinition

Package definition is compiled this way as well.
Herbert Vojčík 9 rokov pred
rodič
commit
f66bc0c998
2 zmenil súbory, kde vykonal 8 pridanie a 8 odobranie
  1. 6 6
      src/Helios-Core.js
  2. 2 2
      src/Helios-Core.st

+ 6 - 6
src/Helios-Core.js

@@ -1432,7 +1432,7 @@ return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1;
 $recv(self._announcer())._announce_($recv($HLSourceCodeSaved())._new());
-$1=self._shouldCompileClassDefinition_(aString);
+$1=self._shouldCompileDefinition_(aString);
 if($core.assert($1)){
 self._compileClassDefinition_(aString);
 } else {
@@ -1445,10 +1445,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aString"],
-source: "save: aString\x0a\x09self announcer announce: HLSourceCodeSaved new.\x0a\x09\x0a\x09(self shouldCompileClassDefinition: aString)\x0a\x09\x09ifTrue: [ self compileClassDefinition: aString ]\x0a\x09\x09ifFalse: [ self compileMethod: aString ]",
+source: "save: aString\x0a\x09self announcer announce: HLSourceCodeSaved new.\x0a\x09\x0a\x09(self shouldCompileDefinition: aString)\x0a\x09\x09ifTrue: [ self compileClassDefinition: aString ]\x0a\x09\x09ifFalse: [ self compileMethod: aString ]",
 referencedClasses: ["HLSourceCodeSaved"],
 //>>excludeEnd("ide");
-messageSends: ["announce:", "announcer", "new", "ifTrue:ifFalse:", "shouldCompileClassDefinition:", "compileClassDefinition:", "compileMethod:"]
+messageSends: ["announce:", "announcer", "new", "ifTrue:ifFalse:", "shouldCompileDefinition:", "compileClassDefinition:", "compileMethod:"]
 }),
 $globals.HLToolModel);
 
@@ -1779,7 +1779,7 @@ $globals.HLToolModel);
 
 $core.addMethod(
 $core.method({
-selector: "shouldCompileClassDefinition:",
+selector: "shouldCompileDefinition:",
 protocol: 'testing',
 fn: function (aString){
 var self=this;
@@ -1798,12 +1798,12 @@ return $recv(aString)._match_("^\x5cs*[A-Z]");
 }));
 return $1;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"shouldCompileClassDefinition:",{aString:aString},$globals.HLToolModel)});
+}, function($ctx1) {$ctx1.fill(self,"shouldCompileDefinition:",{aString:aString},$globals.HLToolModel)});
 //>>excludeEnd("ctx");
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aString"],
-source: "shouldCompileClassDefinition: aString\x0a\x09^ self selectedClass isNil or: [\x0a\x09\x09aString match: '^\x5cs*[A-Z]' ]",
+source: "shouldCompileDefinition: aString\x0a\x09^ self selectedClass isNil or: [\x0a\x09\x09aString match: '^\x5cs*[A-Z]' ]",
 referencedClasses: [],
 //>>excludeEnd("ide");
 messageSends: ["or:", "isNil", "selectedClass", "match:"]

+ 2 - 2
src/Helios-Core.st

@@ -246,7 +246,7 @@ addInstVarNamed: aString
 save: aString
 	self announcer announce: HLSourceCodeSaved new.
 	
-	(self shouldCompileClassDefinition: aString)
+	(self shouldCompileDefinition: aString)
 		ifTrue: [ self compileClassDefinition: aString ]
 		ifFalse: [ self compileMethod: aString ]
 !
@@ -461,7 +461,7 @@ isToolModel
 	^ true
 !
 
-shouldCompileClassDefinition: aString
+shouldCompileDefinition: aString
 	^ self selectedClass isNil or: [
 		aString match: '^\s*[A-Z]' ]
 ! !