Skip to content

Expose more be-java helpers#393

Merged
tjpalmer merged 2 commits intomainfrom
publicize-java-translator
Mar 25, 2026
Merged

Expose more be-java helpers#393
tjpalmer merged 2 commits intomainfrom
publicize-java-translator

Conversation

@tjpalmer
Copy link
Copy Markdown
Contributor

@tjpalmer tjpalmer commented Mar 25, 2026

  • Support external backend dev
  • I'll open the external pr once this is merged here

tjpalmer and others added 2 commits March 6, 2026 17:18
Signed-off-by: Tom <tom@temper.systems>
Signed-off-by: Tom <tom@contextfree.info>
): FilePath = when {
excludeSourceDirectory -> dirPath()
else -> programMeta.sourceDirectory.filePath
} + when (this) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't want the full maven pathing for the specific use cases.

val realName = resolveImportedName(resolvedName)
return (lookupLocalNameObj(resolvedName) as? RegularVarName)
?: RegularVarName(distinctOutName(realName), isMutablyCaptured = false)
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Expose internal logic for direct access.


internal fun resultType(names: JavaNames, type: TmpL.AType?, pos: Position) =
fun resultType(names: JavaNames, type: TmpL.AType?, pos: Position) =
resultType(names, type?.ot, pos)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Make public for external use.

@mikesamuel
Copy link
Copy Markdown
Contributor

Was Draft status intentional?

@tjpalmer tjpalmer marked this pull request as ready for review March 25, 2026 19:51
@tjpalmer
Copy link
Copy Markdown
Contributor Author

Was Draft status intentional?

I think I forgot to switch it to ready after tests passed. Thanks for the review.

@tjpalmer tjpalmer merged commit 75cc5b3 into main Mar 25, 2026
2 checks passed
@tjpalmer tjpalmer deleted the publicize-java-translator branch March 27, 2026 18:27
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.

2 participants