Skip to content

Conversation

smowton
Copy link
Contributor

@smowton smowton commented May 19, 2022

Based on / blocked by #9123

@smowton smowton requested review from a team as code owners May 19, 2022 13:18
@github-actions github-actions bot added the Java label May 19, 2022
For example, UnaryOperator<T> extends Function<T, T> without overriding / defining its own `apply` method.
@smowton smowton force-pushed the smowton/fix/inherited-single-abstract-method branch from f51ec28 to e80254b Compare May 19, 2022 19:58

fun extractNonFakeFunction(f: IrFunction, parentId: Label<out DbReftype>, extractBody: Boolean, extractMethodAndParameterTypeAccesses: Boolean, typeSubstitution: TypeSubstitution?, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>?, idOverride: Label<DbMethod>? = null, locOverride: Label<DbLocation>? = null): Label<out DbCallable> {
Copy link
Contributor

Choose a reason for hiding this comment

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

extractNonFakeFunction is actually extracting fake and non-fake functions too, so its name is misleading. I think forceExtractFunction is somewhat better. Another option would be adding a Boolean parameter to extractFunction to skip the isFake test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@smowton smowton merged commit 98ef223 into github:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants