forked from bmw-software-engineering/lobster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove line number from tag and added counter logic for each function (…
…bmw-software-engineering#67) The identifier uses counter if there exist multiple functions with the same name. Issue bmw-software-engineering#58 --------- Co-authored-by: Kedar Navare <[email protected]> Co-authored-by: Philipp Wullstein-Kammler <[email protected]>
- Loading branch information
1 parent
9c9d863
commit c59ee91
Showing
4 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
test-system/lobster-python/multiple_identical_function_names.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
flag = False | ||
requirements_global = None | ||
|
||
if flag == True: | ||
def get_requirements(requirements): | ||
return requirements | ||
else: | ||
def set_requirements(requirements): | ||
requirements_global = requirements | ||
return requirements_global | ||
|
||
|
||
def get_requirements(requirements): | ||
return requirements | ||
|
||
|
||
def display_requirements(): | ||
print(get_requirements()) | ||
|
||
|
||
def set_requirements(requirements): | ||
requirements_global = requirements | ||
return requirements_global | ||
|
||
|
||
def get_requirements(requirements): | ||
return requirements | ||
|