-
Notifications
You must be signed in to change notification settings - Fork 498
Add constant folding context menu for literals #566
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
Conversation
- AST Evaluation for Literals - Ability to convert literals hex-dec-bin
recaf-ui/src/main/java/me/coley/recaf/ui/context/NumberLiteralContextBuilder.java
Outdated
Show resolved
Hide resolved
recaf-core/src/main/java/me/coley/recaf/evaluation/ExpressionEvaluator.java
Outdated
Show resolved
Hide resolved
recaf-core/src/main/java/me/coley/recaf/parse/JavaParserHelper.java
Outdated
Show resolved
Hide resolved
Remove escaping
58e66df
to
41229de
Compare
No box type support will be given, as it also adds the need to evaluate Number#intValue() for example, which just way too much for this "simple" constant folding functionality. |
recaf-ui/src/main/java/me/coley/recaf/ui/context/NumberLiteralContextBuilder.java
Show resolved
Hide resolved
public Expression getExpression() { | ||
return expression; | ||
} | ||
} |
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.
I can knock things like indentation/{}
formatting out in the merge commit, but for reference we use \t
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.
Oh, it has the old indentation in, forgot to reformat it.
Very handy addition, merged 👍 |
1984 🙃👍 |
What's new
TODO: