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

Allow treating partial access as variable #975

Closed

Conversation

ernstblechaPT
Copy link

No description provided.

@ernstblechaPT ernstblechaPT requested a review from mx990 January 20, 2025 12:54
Copy link

Test Results

   111 files  ±0     111 suites  ±0   51s ⏱️ -1s
29 174 tests ±0  29 174 ✅ ±0  0 💤 ±0  0 ❌ ±0 
29 175 runs  ±0  29 175 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 51e90c6. ± Comparison against base commit 5637d81.

@@ -668,6 +668,8 @@ protected Variable<?> evaluateVariable(final STExpression expr) throws Evaluator
evaluateVariable(stBuiltinFeatureExpression);
case final STFeatureExpression stFeatureExpression -> evaluateVariable(stFeatureExpression);
case final STMemberAccessExpression stMemberAccessExpression -> evaluateVariable(stMemberAccessExpression);
case final STMultibitPartialExpression stMultiBitPartialExpression ->
evaluateVariable(stMultiBitPartialExpression);
Copy link
Member

Choose a reason for hiding this comment

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

This will produce an infinite recursion, since it just calls itself. It should also not be necessary, since partial access is already handled in

case final STMultibitPartialExpression multibitPartialExpression ->
evaluateVariable(multibitPartialExpression, receiver);

A partial access without corresponding receiver makes no sense and should never occur.

@ernstblechaPT ernstblechaPT marked this pull request as draft January 20, 2025 13:20
@ernstblechaPT ernstblechaPT deleted the multibit_assignment branch January 20, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants