#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 21 Jan 2020 16:06:29 +0100
changeset 3839b37f9731ec27
parent 3838 403172bbe664
child 3840 d822227868dd
#REFACTORING by cg
class: MethodFinderWindow
changed: #isExpression: (send #includesString: instead of #includesSubString:)
includesString: alias calls eliminated
MethodFinderWindow.st
     1.1 --- a/MethodFinderWindow.st	Sun Jan 19 00:44:19 2020 +0100
     1.2 +++ b/MethodFinderWindow.st	Tue Jan 21 16:06:29 2020 +0100
     1.3 @@ -1,3 +1,5 @@
     1.4 +"{ Encoding: utf8 }"
     1.5 +
     1.6  "
     1.7   Copyright (C) Original Authors (Kaehler, Scott Wallace and Dan Ingalls)
     1.8   Copyright (C) 2001 eXept Software AG
     1.9 @@ -1159,7 +1161,7 @@
    1.10       Given the original message,
    1.11       try applying all unary messages first to the receiver,
    1.12       then to each argument.
    1.13 -     This takes O(N) time - so be prepared"
    1.14 +     This takes O(N²) time - so be prepared"
    1.15  
    1.16      |tempReceiver tempAnswer tempArguments numArgs
    1.17       anArray resultArray receiverWithArgument mf|
    1.18 @@ -1854,7 +1856,7 @@
    1.19      ].
    1.20  
    1.21      "/ cg: this is naive - why not ask the parser, if it is a literal?
    1.22 -    (aString includesSubString:': ') ifTrue:[
    1.23 +    (aString includesString:': ') ifTrue:[
    1.24          ^ true
    1.25      ].
    1.26      (aString includes:$+) ifTrue:[
    1.27 @@ -1875,7 +1877,7 @@
    1.28      (aString includes:$<) ifTrue:[
    1.29          ^ true
    1.30      ].
    1.31 -    (aString includesSubString:' new') ifTrue:[
    1.32 +    (aString includesString:' new') ifTrue:[
    1.33          ^ true
    1.34      ].
    1.35      (aString includes:$[)