Skip to content

Conversation

@ericphanson
Copy link
Member

@ericphanson ericphanson commented Jul 21, 2025

closes #129

I think the relevant change from JuliaSyntax's diff is

  • Short form functions like f(x) = x + 1 are represented with the function head rather than the = head. In this case the SHORT_FORM_FUNCTION_FLAG flag is set to allow the surface syntactic form to be easily distinguished from long form functions.

I made changes for this in #109 but I clearly missed something. I think what happened is the function head made it traverse a different path in my parsing and that path was not ready for K"function" with more children; it's only a function arg if it's in the first child I believe.

@ericphanson ericphanson merged commit 70b4052 into main Jul 21, 2025
6 checks passed
@ericphanson ericphanson deleted the eph/fix-129 branch July 21, 2025 19:03
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.

name imported from parent package and passed to a function complains about stale imports

1 participant