dalehenrich / filetree

Monticello repository for directory-based Monticello packages enabling the use of git, svn, etc. for managing Smalltalk source code.
https://github.com/CampSmalltalk/Cypress
MIT License
133 stars 26 forks source link

Respect custom parserClass in methodSelectorFor: #224

Open krono opened 6 years ago

krono commented 6 years ago

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