-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Constant evaluator support for member constants #16056
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
93d7f5a
to
78e1d3e
Compare
1e7955b
to
985b03f
Compare
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 am not sure if there aren't any unwanted side-effects hiding in this. Looks good to me generally, though!
test/libsolidity/syntaxTests/constantEvaluator/member_access.sol
Outdated
Show resolved
Hide resolved
ad3f23a
to
7fa4363
Compare
@@ -407,3 +409,24 @@ void ConstantEvaluator::endVisit(TupleExpression const& _tuple) | |||
if (!_tuple.isInlineArray() && _tuple.components().size() == 1) | |||
m_values[&_tuple] = evaluate(*_tuple.components().front()); | |||
} | |||
|
|||
void ConstantEvaluator::endVisit(MemberAccess const& _memberAcess) |
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.
Sorry I just see this now, there's a typo here...
void ConstantEvaluator::endVisit(MemberAccess const& _memberAcess) | |
void ConstantEvaluator::endVisit(MemberAccess const& _memberAccess) |
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 aside from the typo
Fix #16055.