#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 21 Jan 2020 16:06:29 +0100
changeset 3839 b37f9731ec27
parent 3838 403172bbe664
child 3840 d822227868dd
#REFACTORING by cg class: MethodFinderWindow changed: #isExpression: (send #includesString: instead of #includesSubString:) includesString: alias calls eliminated
MethodFinderWindow.st
--- a/MethodFinderWindow.st	Sun Jan 19 00:44:19 2020 +0100
+++ b/MethodFinderWindow.st	Tue Jan 21 16:06:29 2020 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  Copyright (C) Original Authors (Kaehler, Scott Wallace and Dan Ingalls)
  Copyright (C) 2001 eXept Software AG
@@ -1159,7 +1161,7 @@
      Given the original message,
      try applying all unary messages first to the receiver,
      then to each argument.
-     This takes O(N²) time - so be prepared"
+     This takes O(N²) time - so be prepared"
 
     |tempReceiver tempAnswer tempArguments numArgs
      anArray resultArray receiverWithArgument mf|
@@ -1854,7 +1856,7 @@
     ].
 
     "/ cg: this is naive - why not ask the parser, if it is a literal?
-    (aString includesSubString:': ') ifTrue:[
+    (aString includesString:': ') ifTrue:[
         ^ true
     ].
     (aString includes:$+) ifTrue:[
@@ -1875,7 +1877,7 @@
     (aString includes:$<) ifTrue:[
         ^ true
     ].
-    (aString includesSubString:' new') ifTrue:[
+    (aString includesString:' new') ifTrue:[
         ^ true
     ].
     (aString includes:$[)