filetree icon indicating copy to clipboard operation
filetree copied to clipboard

Respect custom parserClass in methodSelectorFor:

Open krono opened this issue 5 years ago • 0 comments

currently, MCFileTreeStCypressReader>>methodSelectorFor: does not take into account that a Class can have a custom compiler or parser. This is not an issue on GemStone, but Squeak and Pharo.

In Squeak it looks like that:

methodSelectorFor: source
    ^ Object parserClass new parseSelector: source

I propose:

methodSelectorFor: source in: className
    | cls |
    cls := Smalltalk at: className ifAbsent: [Object].
    ^ cls parserClass new parseSelector: source

krono avatar Jul 16 '18 11:07 krono