- 
                Notifications
    You must be signed in to change notification settings 
- Fork 334
          Rewriting ir.Module in Java
          #14217
        
          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
  
    Rewriting ir.Module in Java
  
  #14217
              
            Conversation
| - [Usability](#usability) | ||
|  | ||
| <!-- /MarkdownTOC --> | ||
| - [Taming the Merge Operator](https://www.cambridge.org/core/journals/journal-of-functional-programming/article/taming-the-merge-operator/B8A3A5D16B7AB175D44DB6F980450863) | 
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 is an unrelated change.
- Link provided by @radeusgd
- the paper and especially the references it provides look interesting
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.
LGTM, I am pushing a commit that changes the version of IR cache, so that we don't break it again.
        
          
                ...time-integration-tests/src/test/scala/org/enso/compiler/test/pass/resolve/PatternsTest.scala
          
            Show resolved
            Hide resolved
        
      |  | ||
| public UUID id() { | ||
| return id; | ||
| // TBD: this method should return null when there is no ID | 
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.
Making id private field in the generated super class seems like a good idea. The only usage of this id() method is in UnreachableMatchBranches and seems rather obscure. If we ever want to introduce some method like IR.hasID, we can do so in the future. If tests pass, I am OK with this change. I am a big fan of making stuff private.
Continuation of #14086
Part of #14115
Pull Request Description
Rewrites the IR element at root of every module parse tree into Java.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,