Skip to content

Conversation

@tokyRT
Copy link
Contributor

@tokyRT tokyRT commented Oct 22, 2025

#37


(self parent type = #attribute and: [ self parent isInCall ]) ifTrue: [ ^ true ].

(self parent type = 'keyword_argument' and: [ self parent _value = self ]) ifTrue: [ ^ true ].
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be self isInField: #value ofParentOfType: #keyword_argument?

Try to add a test checking this case:

def function_with_keyword_argument(a, arg1):
    pass

variableToAccessInKeywordArgumentCallInParenthesis = 42
function_with_keyword_argument(1, arg1 = (variableToAccessInKeywordArgumentCallInParenthesis))

@jecisc jecisc merged commit 05c653c into moosetechnology:master Oct 23, 2025
1 check failed
@tokyRT tokyRT deleted the access-keyword-argument branch October 23, 2025 14:15
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.

2 participants