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

Add class to trait visitor. #157

Merged
merged 9 commits into from
Mar 4, 2019
Merged

Conversation

bergice
Copy link
Contributor

@bergice bergice commented Feb 13, 2019

This lets us replace classes that extend certain other classes with a provided list of traits.

This lets us replace classes that extend certain other classes with a provided list of traits.
Copy link
Contributor

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

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

It looks like it's working well. I tested with an abstract class and a class that implements some interfaces and it all worked.

My main beef is that the use Trait statement gets added at the end of the class just before the closing bracket. Any chance we could move those statement to the top of the class just after the opening backet?

@maxime-rainville
Copy link
Contributor

Travis build failure is just some linting issue.

@maxime-rainville maxime-rainville merged commit 6fbc215 into master Mar 4, 2019
@maxime-rainville maxime-rainville deleted the pulls/class-to-trait branch March 4, 2019 01:05
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.

3 participants