# HG changeset patch # User Claus Gittinger # Date 1579619189 -3600 # Node ID b37f9731ec274cd63acecf230b714bfe69b9d66e # Parent 403172bbe664f5f55adfff29e02a8ef956452dd7 #REFACTORING by cg class: MethodFinderWindow changed: #isExpression: (send #includesString: instead of #includesSubString:) includesString: alias calls eliminated diff -r 403172bbe664 -r b37f9731ec27 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:$[)