fix: address merged-PR ako follow-up polish items#469
Open
hjotha wants to merge 1 commit intomendixlabs:mainfrom
Open
fix: address merged-PR ako follow-up polish items#469hjotha wants to merge 1 commit intomendixlabs:mainfrom
hjotha wants to merge 1 commit intomendixlabs:mainfrom
Conversation
Batches the remaining polish items ako flagged in PRs that already merged: - PR mendixlabs#357 (Java return-type inference): remove the dead `case javaactions.ListType:` value form, replace the exprToString→strip→lookup string-mangling with a direct `*ast.VariableExpr` type assertion, and add the missing unit test for `*javaactions.EntityType` return registration. - PR mendixlabs#363 (change refresh modifier): restore the CE0032 reference in the `addChangeObjectAction` comment so developers searching for the Studio Pro error code find the inference logic. - PR mendixlabs#364 (enum split): collapse the dual `return true` branches of `isTerminalStmt`'s EnumSplitStmt arm into one and expand the comment documenting the intentional divergence from `bodyReturns`. - PR mendixlabs#364 minor: add a doc comment on `hasExplicitFalseBranchAnchor` explaining the Top→Bottom heuristic, and add TestHasExplicitFalseBranchAnchor covering nil, default, and single-sided cases. Validation: make build, make test, make lint-go. Related: mendixlabs#463 (walkStatements refactor), mendixlabs#468 (TitleOverride nil). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
AI Code ReviewReview SummaryThis PR addresses follow-up polish items from three previously merged PRs (#357, #363, #364). It contains:
Critical IssuesNone found. Moderate IssuesNone found. Minor Issues
What Looks Good
RecommendationApprove - The PR consists of safe, focused improvements that address review feedback from previously merged PRs. Changes are limited to refactoring, documentation, and test coverage without altering functionality. All validation steps passed and the changes follow the project's code quality standards. The PR maintains atomicity by addressing related follow-up items from the same general area (microflow executor). No new MDL syntax is introduced, so full-stack consistency checks are not applicable. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
This was referenced May 1, 2026
hjotha
pushed a commit
to hjotha/mxcli
that referenced
this pull request
May 1, 2026
The IF-header duplication fix (commit 13d21427, PR mendixlabs#469) was lost when merging fork/submit/merged-pr-ako-polish into the combined validation branch — the merge kept the pre-swap emit block that was supposed to be removed. As a result, every IF with a non- empty body emitted the @position/@annotation/if … then block twice, and re-exec failed with "Parse error: missing IF at ';'". Removed the duplicate emit blocks in both traverseFlow (line ~694) and traverseFlowUntilMerge (line ~873). Only the post-swap emit remains, so the negate-and-swap transformation updates the header before it is written out. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hjotha
pushed a commit
to hjotha/mxcli
that referenced
this pull request
May 1, 2026
The IF-header duplication fix (commit 13d21427, PR mendixlabs#469) was lost when merging fork/submit/merged-pr-ako-polish into the combined validation branch — the merge kept the pre-swap emit block that was supposed to be removed. As a result, every IF with a non- empty body emitted the @position/@annotation/if … then block twice, and re-exec failed with "Parse error: missing IF at ';'". Removed the duplicate emit blocks in both traverseFlow (line ~694) and traverseFlowUntilMerge (line ~873). Only the post-swap emit remains, so the negate-and-swap transformation updates the header before it is written out. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batches the remaining polish items ako flagged in reviews of PRs that already merged.
Scope
PR #357 — Java return-type inference
case javaactions.ListType:value form frominferGenericJavaActionReturnType. The parser always storesListTypeas a pointer.*ast.VariableExprtype assertion. The old form only worked for simple variable references and silently produced garbage keys for any compound expression.TestAddJavaAction_EntityReturnRegistersEntityType— theEntityTypecase was the only return shape without a unit test.PR #363 — change refresh modifier
addChangeObjectActioncomment. Developers searching for the Studio Pro error code no longer hit a dead end.PR #364 — enum split
return truebranches ofisTerminalStmt's EnumSplitStmt arm into onereturn trueand expand the comment documenting the intentional divergence frombodyReturnsinvalidate_microflow.go.hasExplicitFalseBranchAnchorexplaining theAnchorTop → AnchorBottomheuristic.TestHasExplicitFalseBranchAnchorcovering nil, default right→left, split default bottom→top, authored top→bottom, and both single-sided-customised edge cases.Validation
Related
🤖 Generated with Claude Code