-
Notifications
You must be signed in to change notification settings - Fork 33
(towards #3124) Codeblocks with children references #3247
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
Open
sergisiso
wants to merge
23
commits into
master
Choose a base branch
from
3124_codeblocks_virtual_references
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
418f6aa
#3124 Improve codeblock get_symbol_names and add the names as virtual…
sergisiso 9130726
#3124 Update code after creating CodeBlocks virtual children references
sergisiso 7de4e91
Merge remote-tracking branch 'origin/master' into 3124_codeblocks_vir…
sergisiso f5cd2cf
#3124 make DefUseChain consider new CodeBlock structure
sergisiso 547dad0
Merge remote-tracking branch 'origin/master' into 3124_codeblocks_vir…
sergisiso c25c853
#3124 Fix or remove tests
sergisiso 7666bd0
#3124 Comment out test with issues
sergisiso ce99fcf
#3124 Fix flake8
sergisiso 1a6d0c8
Merge remote-tracking branch 'origin/master' into 3124_codeblocks_vir…
sergisiso b00eb12
#3124 Remove unneeded _get_symbol to find invoke codeblock symbol
sergisiso 402466e
#3124 Remove unused code
sergisiso 9aa682c
#3124 Improve test coverage
sergisiso e18ad2f
#3124 Improve test coverage
sergisiso 4f25b62
#3124 Add missing docstring
sergisiso 5faa955
#3124 Revert deletion of existing test and instead adapt it without t…
sergisiso 990752a
Merge branch 'master' into 3124_codeblocks_virtual_references
arporter 9e8ebf4
#3124 Improve CodeBlock documentation and errors
sergisiso 5d4036b
#3124 Bring to master
sergisiso c561196
#3124 Bring to master
sergisiso f7bfb92
#3124 Temporary bypass a test
sergisiso 3de3393
#3124 Improve tests
sergisiso dfb4e38
#3124 Improve tests and TODOs
sergisiso 568bf95
Merge remote-tracking branch 'origin/master' into 3124_codeblocks_vir…
sergisiso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -950,18 +950,18 @@ def test_fw_filecontainer_2(fortran_writer): | |
| def test_fw_filecontainer_error1(fortran_writer): | ||
| '''Check that an instance of the FortranWriter class raises the | ||
| expected exception if the symbol table associated with a | ||
| FileContainer node contains any symbols. | ||
| FileContainer node contains any data symbols. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit concerned we could now let Symbols through here.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverted |
||
|
|
||
| ''' | ||
| symbol_table = SymbolTable() | ||
| symbol_table.add(Symbol("x")) | ||
| symbol_table.add(DataSymbol("x", INTEGER_TYPE)) | ||
| file_container = FileContainer.create("None", symbol_table, []) | ||
| with pytest.raises(VisitorError) as info: | ||
| _ = fortran_writer(file_container) | ||
| assert ( | ||
| "In the Fortran backend, a file container should not have any " | ||
| "symbols associated with it other than RoutineSymbols, but found " | ||
| "x: Symbol<Automatic>." in str(info.value)) | ||
| "data symbols associated with it, but found x: DataSymbol" | ||
| in str(info.value)) | ||
|
|
||
| # Check that a routine symbol is fine. | ||
| symbol_table = SymbolTable() | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this line isn't covered by the fortran_*test.py tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I'm here, I'm also not sure what "we propagated upwards" means as we're already handling a FileContainer at this point. Do you mean they will have been propagated upwards and have ended up in this table?