equal
deleted
inserted
replaced
167 lookupMethodsForSelector: selector |
167 lookupMethodsForSelector: selector |
168 directedTo: initialSearchClass |
168 directedTo: initialSearchClass |
169 inNamespaces: namespaces. |
169 inNamespaces: namespaces. |
170 numMethods := methods size. |
170 numMethods := methods size. |
171 numMethods == 1 ifTrue:[ |
171 numMethods == 1 ifTrue:[ |
172 ^ methods anyOne |
172 ^ methods anElement |
173 ]. |
173 ]. |
174 numMethods > 1 ifTrue:[ |
174 numMethods > 1 ifTrue:[ |
175 ^self ambiguousMessageSend: selector withArgs: argArrayOrNil |
175 ^self ambiguousMessageSend: selector withArgs: argArrayOrNil |
176 ]. |
176 ]. |
177 "No method found" |
177 "No method found" |
201 ]. |
201 ]. |
202 |
202 |
203 ^nil |
203 ^nil |
204 |
204 |
205 "Created: / 19-02-2014 / 21:49:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
205 "Created: / 19-02-2014 / 21:49:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
206 "Modified: / 09-10-2017 / 17:19:51 / stefan" |
206 ! ! |
207 ! ! |
207 |
208 |
208 !NamespaceAwareLookup methodsFor:'lookup - helpers'! |
209 !NamespaceAwareLookup methodsFor:'lookup - helpers'! |
209 |
210 |
210 lookupMethodsForSelector: selector directedTo: initialSearchClass |
211 lookupMethodsForSelector: selector directedTo: initialSearchClass |