8333725: Compiler Prototyping for Deconstructors - #94
Conversation
|
👋 Welcome back abimpoudis! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@biboudis this pull request can not be integrated into git checkout matchers-experiment
git fetch https://git.openjdk.org/amber.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
|
d635684 to
ccc44d4
Compare
| matchBindings = new MatchBindings(outBindings.toList(), List.nil()); | ||
| } | ||
|
|
||
| // todo: follow the protocol in Resolve::selectBest |
There was a problem hiding this comment.
this method I think belongs in Resolve
|
|
||
| if (tree.sym.isPattern()) { | ||
| tree.sym.flags_field |= STATIC; | ||
| tree.sym.flags_field |= SYNTHETIC; |
There was a problem hiding this comment.
we are making synthetic an AST that actually appears in the source?
| expectedRecordTypes = record.getRecordComponents() | ||
| .stream() | ||
| .map(rc -> types.memberType(site, rc)) | ||
| .map(t -> types.upward(t, types.captures(t)).baseType()) |
There was a problem hiding this comment.
not sure why the upward projection is used here
6138923 to
5246297
Compare
bf45138 to
250d702
Compare
| */ | ||
| int putNameAndType(Symbol s) { | ||
| return pool.writeIfNeeded(new NameAndType(s.name, descriptorType(s))); | ||
| return pool.writeIfNeeded(new NameAndType(s instanceof MethodSymbol ms ? ms.externalName(types) : s.name, descriptorType(s))); |
There was a problem hiding this comment.
same not sure why you need this change
250d702 to
a19eff9
Compare
Co-authored-by: Angelos Bimpoudis <angelos.bimpoudis@oracle.com> Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com> Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
a19eff9 to
4c7b0ba
Compare
…o matchers-experiment # Conflicts: # src/java.base/share/classes/java/lang/Class.java
Fixing a crash when javac is highlighting a deconstructor
Carriers update for matchers-experiment
…nce-pattern-parsing' into matchers-experiment-instance-pattern-parsing
…hers-experiment-instance-pattern-parsing-overloading
…ern-parsing An attempt to parse instance patterns more correctly.
…pattern-parsing-overloading # Conflicts: # src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
|
@biboudis This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply issue a |
|
<!-- Start of TOU acceptance message header -->
Hi @Rick-24, thanks for making a comment in an OpenJDK project!
All comments and discussions in the OpenJDK Community must be made available under the OpenJDK [Terms of Use](https://openjdk.java.net/legal/tou/). If you already are an OpenJDK [Author](https://openjdk.java.net/bylaws#author), [Committer](https://openjdk.java.net/bylaws#committer) or [Reviewer](https://openjdk.java.net/bylaws#reviewer), please click [here](https://bugs.openjdk.java.net/secure/CreateIssue.jspa?pid=11300&issuetype=1) to open a new issue so that we can record that fact. Please Use "Add GitHub user Rick-24" for the summary.
If you are not an OpenJDK Author, Committer or Reviewer, simply check the box below to accept the OpenJDK Terms of Use for your comments.
<!-- End of TOU acceptance message header -->
- [ ] I agree to the [OpenJDK Terms of Use](https://openjdk.java.net/legal/tou/) for all comments I make in a project in the [OpenJDK GitHub organization](https://github.com/openjdk).
<!-- Start of TOU acceptance message footer -->
Your comment will be automatically restored once you have accepted the OpenJDK [Terms of Use](https://openjdk.java.net/legal/tou/).
<!-- End of TOU acceptance message footer -->
<!-- Original message to be restored:
%E6%82%A8%E5%A5%BD%EF%BC%8C%E6%82%A8%E7%9A%84%E6%9D%A5%E4%BF%A1%E6%88%91%E5%B7%B2%E6%94%B6%E5%88%B0%EF%BC%8C%E6%88%91%E4%BC%9A%E5%B0%BD%E5%BF%AB%E5%A4%84%E7%90%86%E3%80%82%C2%A0+%C2%A0+%C2%A0+%E7%A5%9D%E5%A5%BD%EF%BC%81
-->
|
…tern-parsing-overloading Adjusting overloading + translation
Work-in-progress prototyping of deconstructors.
Progress
Warnings
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/amber.git pull/94/head:pull/94$ git checkout pull/94Update a local copy of the PR:
$ git checkout pull/94$ git pull https://git.openjdk.org/amber.git pull/94/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 94View PR using the GUI difftool:
$ git pr show -t 94Using diff file
Download this PR as a diff file:
https://git.openjdk.org/amber/pull/94.diff