Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update relation of shadowing #870

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Jan 15, 2025

I created a relation one to one for shadowing but here I'm updating it to be a one to many relation.

It is possible that a single entity gets shadowed multiple times. Example in python:

def function_with_local_of_same_name(init):
    if init > 10:
        return init


    function_with_local_of_same_name = init
    #function_with_local_of_same_name = function_with_local_of_same_name(1)
    return function_with_local_of_same_name + 3


print(function_with_local_of_same_name(0))

def function_with_local_of_same_name(init):
    return init

The function get shadowed once by a temporary and a second time by an other function

I created a relation one to one for shadowing but here I'm updating it to be a one to many relation.

It is possible that a single entity gets shadowed multiple times. Example in python:

```python
def function_with_local_of_same_name(init):
    if init > 10:
        return init


    function_with_local_of_same_name = init
    #function_with_local_of_same_name = function_with_local_of_same_name(1)
    return function_with_local_of_same_name + 3


print(function_with_local_of_same_name(0))

def function_with_local_of_same_name(init):
    return init
```

The function get shadowed once by a temporary and a second time by an other function
@jecisc jecisc merged commit 82a062c into moosetechnology:development Jan 15, 2025
4 checks passed
@jecisc jecisc deleted the shadowers branch January 15, 2025 16:19
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.

1 participant