-
Notifications
You must be signed in to change notification settings - Fork 43
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 Creatable api. Remove @Dependencies
.
#131
Conversation
7ec36ef
to
1fd6a0b
Compare
@@ -24,7 +24,6 @@ import org.junit.Test | |||
import javax.annotation.processing.AbstractProcessor | |||
import javax.annotation.processing.RoundEnvironment | |||
import javax.lang.model.element.TypeElement | |||
import javax.lang.model.type.TypeKind | |||
|
|||
class CompilerClassTest { |
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.
Does it make sense to also add a testSupertypeMultipleInterfaces()
for IrClass.supertypes
?
package test;
interface Baz {}
interface Bar {}
class Foo implements Bar, Baz {}
Same in IntellijClassTest
. Especially since you iterate through them in motif.model.Dependencies
.
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.
Good call will add.
findCreatableSuperinterface(superinterface)?.let { return it } | ||
} | ||
|
||
return null |
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.
Is there a test case for no Creatable
parent? Doesn't seem so from this PR alone.
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.
There are but I'll add one that tests this case explicitly.
5f3d376
to
d27718c
Compare
d27718c
to
90f6bf3
Compare
423d3b5
to
6485ab2
Compare
6485ab2
to
8de6db6
Compare
First half of #125
Replace
@Dependencies
API withCreatable<D>
. A follow up PR will add theScopeFactory
API.