Skip to content

Conversation

@leo-collins
Copy link
Contributor

make split_form(interp) do the right thing for zero-form Interpolate

@pbrubeck
Copy link
Contributor

Not sure if this makes sense. split_form always needs arguments. If there aren't we cannot split them

@leo-collins
Copy link
Contributor Author

The cofunction has an argument. We were doing the same thing before just in a very convoluted way by replacing the Cofunction with a Coargument, splitting, and then taking the action

splitter = ExtractSubBlock()
args = form.arguments()

if isinstance(form, Interpolate) and not args:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the args be added as a kwarg?

@leo-collins leo-collins marked this pull request as draft December 20, 2025 11:30
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