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 Creatable api. Remove @Dependencies. #131

Merged
merged 1 commit into from
Dec 3, 2019
Merged

Conversation

Leland-Takamine
Copy link
Collaborator

First half of #125

Replace @Dependencies API with Creatable<D>. A follow up PR will add the ScopeFactory API.

@@ -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 {
Copy link

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.

Copy link
Collaborator Author

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
Copy link

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.

Copy link
Collaborator Author

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.

@Leland-Takamine Leland-Takamine force-pushed the creatable branch 8 times, most recently from 5f3d376 to d27718c Compare October 4, 2019 00:31
@Leland-Takamine Leland-Takamine force-pushed the creatable branch 6 times, most recently from 423d3b5 to 6485ab2 Compare December 3, 2019 06:47
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