Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect custom parserClass in methodSelectorFor: #224

Open
krono opened this issue Jul 16, 2018 · 0 comments
Open

Respect custom parserClass in methodSelectorFor: #224

krono opened this issue Jul 16, 2018 · 0 comments

Comments

@krono
Copy link
Collaborator

krono commented Jul 16, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant