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
Address #135 #137
Address #135 #137
Conversation
…getingIntention`
This should be merged after #134 because it's based on it. |
abstract fun isApplicableTo(element: T, caretOffset: Int, editor: Editor?): Boolean | ||
abstract fun isApplicableTo(element: T, caretOffset: Int, editor: Editor): Boolean | ||
|
||
abstract fun applyTo(element: T, project: Project?, editor: Editor?) | ||
abstract fun applyTo(element: T, project: Project, editor: Editor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made these not-null because these arguments are never null when these methods are invoked.
By doing this, some null-checks are removed for free.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #135. Screenshot will be added later