Skip to content

Fix skipStringConstants per-relocator behavior in mapName#1968

Merged
Goooler merged 1 commit intomainfrom
copilot/sub-pr-1967
Mar 12, 2026
Merged

Fix skipStringConstants per-relocator behavior in mapName#1968
Goooler merged 1 commit intomainfrom
copilot/sub-pr-1967

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

skipStringConstants=true on a relocator was incorrectly short-circuiting the entire relocator chain when mapping literals, instead of skipping only that specific relocator.

Changes:

  • Relocators.kt: Change return namecontinue in realMap loop so a relocator with skipStringConstants=true is skipped individually when mapLiterals=true, allowing subsequent relocators to still match and apply
  • RelocatorsTest.kt: Add skipStringConstantsIsPerRelocator test covering the per-relocator skip semantics with deterministic iteration order via linkedSetOf

  • CHANGELOG's "Unreleased" section has been updated, if applicable.

This comment was marked as outdated.

Copilot AI changed the title [WIP] [1902] Split relocators remapping Fix skipStringConstants per-relocator behavior in mapName Mar 12, 2026
Base automatically changed from g/20260312/extract-remapper to main March 12, 2026 08:45
@Goooler Goooler force-pushed the copilot/sub-pr-1967 branch from 8e2af9a to 9bcb112 Compare March 12, 2026 08:46
…of return

Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
@Goooler Goooler force-pushed the copilot/sub-pr-1967 branch from 9bcb112 to 39bbc6d Compare March 12, 2026 08:50
@Goooler Goooler marked this pull request as ready for review March 12, 2026 08:58
@Goooler Goooler requested a review from Copilot March 12, 2026 08:59

This comment was marked as outdated.

@Goooler Goooler merged commit 0564cae into main Mar 12, 2026
12 checks passed
@Goooler Goooler deleted the copilot/sub-pr-1967 branch March 12, 2026 09:07
@Goooler Goooler changed the title Fix skipStringConstants per-relocator behavior in mapName Fix skipStringConstants per-relocator behavior in mapName Mar 12, 2026
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.

3 participants