-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling the name resolution for select rank
0. Added a new field in AssocEntityDetails which is a std::optonal<int> field holding the rank of a symbol, this field is explicitely set when an AssocEntityDetails is created w.r.t SelectRank, not tested with other assocEntityDetails related symbols(like select type or Associations). 1. Added getters and setters for setting the above variable. 2. Changes to getters and setters for retrieving the values from std::optional 3. Changes to the printing of symbol to adapt to adding 'rank: ' field for AssocEntityDetails based symbols, Also the Rank API in class Symbol is changed to handle the above change. 4. Added scope creation rules for selectRankCaseStmt, i.e inside each selectRankCaseStmt a scope::Kind::Block is created. 5. Setting the type, attributes and rank of a symbol which is newly created in the block scope also first setting the Details of the newly created symbol. 6.Remove the unnecessary changes in 'setRankFromParserNode' in resolve-names.cpp, as seems to be unnecessary as of now. 7. Change 'getAssocRank' to 'associationRank' based on C++17 guidelines 8. Did minor changes before pushing Clang formatted code
- Loading branch information
1 parent
12f5860
commit 6966342
Showing
3 changed files
with
79 additions
and
8 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
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