Skip to content

Refactor away from inheriting from Icode.#2428

Merged
gbrail merged 1 commit into
mozilla:masterfrom
aardvark179:aardvark179-icode-inheritance
Jun 13, 2026
Merged

Refactor away from inheriting from Icode.#2428
gbrail merged 1 commit into
mozilla:masterfrom
aardvark179:aardvark179-icode-inheritance

Conversation

@aardvark179

@aardvark179 aardvark179 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Next bit of prep for #2426.

CodeGenerator and Interpreter both inherited from Icode as an old trick to avoid large numbers of static imports. As part of introducing a new interpreter we want to be able to inherit from an abstract class which itself should not inherit from Icode.

I chose to fix this by removing all the initial Icode_ prefixes. This allows all the use sites to change simply from Icode_THING to Icode.THING and avoids either starred static imports or large numbers of static imports.

@gbrail

gbrail commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Looks great, thanks!

@gbrail gbrail merged commit dddcb8f into mozilla:master Jun 13, 2026
12 checks passed
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