-
Notifications
You must be signed in to change notification settings - Fork 334
Refactor Definition Scala IR to Java #14252
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
base: develop
Are you sure you want to change the base?
Conversation
This reverts commit 6a2b121.
| if (isProcessingDefinitionType()) { | ||
| specialHandling.append( | ||
| """ | ||
| // Special case - name of Definition.Type is ignored. |
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.
This special handling needs to be there because the previous Defnition.Type.mapExpressions at https://github.com/enso-org/enso/pull/14252/files#diff-469ce9a70600d58340eae355c9c8a9557d84f08e0edbf53be06f3dd29fb33430L131-L134 ignored the name field.
| moduleContext: ModuleContext | ||
| ): Module = { | ||
| ir.copyWithBindings(bindings = ir.bindings.map(analyseModuleDefinition)) | ||
| ir.copyWithBindings(ir.bindings.map(analyseModuleDefinition)) |
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.
In these refactorings, I am removing named arguments when calling Java from Scala, because:
- It sometimes causes compilation errors with weird messages.
- IntelliJ always treats it as an error.
- Despite the fact that
runtime-parseris compiled with-parametersflag.
Part of #14115.
Continuation of #14217.
Blocks #14244.
Pull Request Description
Refactor
org.enso.compiler.core.ir.module.scope.DefinitionScala case class to Java.Important Notes
mapExpressionscontract at https://github.com/enso-org/enso/pull/14252/files#r2503337320Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.