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

Gracefully handle module name resolution in KSP #947

Merged
merged 5 commits into from
Apr 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't generate if mangled without available mangling
  • Loading branch information
ZacSweers committed Apr 3, 2024
commit f95f9a6299b3a265a8d58d6b67d7903fde1ab5e4
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ internal object ProvidesMethodFactoryCodeGen : AnvilApplicabilityChecker {
"and/or starring this issue: https://youtrack.jetbrains.com/issue/KT-66713.",
declaration.reportableNode as? KSNode,
)
} else {
generateFactoryClass(
declaration.isMangled,
mangledNameSuffix,
className,
clazz.classKind == ClassKind.OBJECT,
declaration,
).writeTo(env.codeGenerator, aggregating = false, listOf(containingFile))
}

generateFactoryClass(
declaration.isMangled,
mangledNameSuffix,
className,
clazz.classKind == ClassKind.OBJECT,
declaration,
).writeTo(env.codeGenerator, aggregating = false, listOf(containingFile))
}
}
return emptyList()
Expand Down