Skip to content

Conversation

fouziray
Copy link

Restrained added protocol names when creating a new class-side method in the debugger.

fix #1207
@Julesboul @DurieuxPol

Copy link
Member

@jecisc jecisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible it would be great to add tests on this

Comment on lines +60 to +67
(aClassOrTrait withAllSuperclasses copyWithoutAll: {
Object.
ProtoObject.
Class.
Behavior.
ClassDescription.
Object class.
ProtoObject class }) flatCollect: #protocols ]) do: [ :protocol |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the class of trait is directly one of those class, we should not filter its protocols.

IMO we should have the protocols of aClassOrTrait and of all its superclasses that are not in this list.

The problem is that is the class is one of those, we will have nothing suggested at all

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

Successfully merging this pull request may close these issues.

[Debugger] Method creation on class side have a lot of protocols
2 participants