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

Add JS.Binary to support TS/JS specific binary type like in #84

Merged
merged 4 commits into from
Nov 27, 2023
Merged

Conversation

kunli2
Copy link
Contributor

@kunli2 kunli2 commented Nov 27, 2023

Add JS.Binary to support TS/JS specific binary type like in

@kunli2 kunli2 requested a review from traceyyoshima November 27, 2023 19:29
Copy link
Contributor

@traceyyoshima traceyyoshima left a comment

Choose a reason for hiding this comment

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

Nice start -- added a comment

@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Data
final class Binary implements JS, Expression, TypedTree {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think JsBinary should be renamed instead of adding a Binary class. The change will require an update in moderne-ast-write to handle existing JsBinary in old LSTs.

Alternatively, we can add a new issue and handle that later, while adding to the existing class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as discussed, this PR will update JsBinary instead of adding Binary and we will rename it later in a separate PR

@kunli2 kunli2 merged commit 7b6c85f into main Nov 27, 2023
3 checks passed
@traceyyoshima traceyyoshima deleted the JsBinary branch November 30, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants