Skip to content

Handle read access in keyword argument - #39

Merged
jecisc merged 7 commits into
moosetechnology:masterfrom
tokyRT:access-keyword-argument
Oct 23, 2025
Merged

Handle read access in keyword argument#39
jecisc merged 7 commits into
moosetechnology:masterfrom
tokyRT:access-keyword-argument

Conversation

@tokyRT

@tokyRT tokyRT commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

#37

Comment thread resources/examples/project1/src/moduleAtRoot13.py Outdated
Comment thread resources/examples/project1/src/moduleAtRoot13.py Outdated
Comment thread resources/examples/project1/src/moduleAtRoot13.py Outdated

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

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

Copy link
Copy Markdown
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