Compilation: Add CheckUninstantiated flag - #1901
Conversation
stack-info: PR: MikePopoloski#1901, branch: AndrewNolte/stack/18
007b97f to
54a6363
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1901 +/- ##
=======================================
Coverage 96.05% 96.05%
=======================================
Files 247 247
Lines 56693 56708 +15
=======================================
+ Hits 54455 54470 +15
Misses 2238 2238
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This compilation flag enables more checks to be done in untaken generate branches, or gen loops with invalid loop params. stack-info: PR: MikePopoloski#1901, branch: AndrewNolte/stack/18
a13e283 to
83f13bc
Compare
89466bd to
f49a2fb
Compare
4f47b47 to
7a1c229
Compare
7a1c229 to
ae0d401
Compare
| bool isValue() const; | ||
|
|
||
| /// Determines whether this symbol is instantiated. | ||
| bool isInstantiated() const; |
There was a problem hiding this comment.
This is a confusing method to add since Scopes have an isUninstantiated method already. I think it should stay a helper in the Compilation file.
|
|
||
| result->entries = entries.copy(comp); | ||
| if (entries.empty()) { | ||
| // Keep result->entries empty so indexed lookup (g[0], etc.) still reports |
There was a problem hiding this comment.
This whole comment is pretty hard to understand. It's also unclear to me why the else block was removed, this should be the same behavior right?
There was a problem hiding this comment.
createBlock() adds to entries, so the loop actually does get traversed. This makes it such that AST Visitors can visit this uninstantiated scope, but it's still not accessible by a gen_arr[0] ref bc it's an uninstantiated block
There was a problem hiding this comment.
But it doesn't add to result->entries. I could change it to just result->addMember(entries[0]) to avoid the loop.
a4ddc02 to
0421c30
Compare
3495ade to
5a75153
Compare
8813363 to
015e587
Compare
This compilation flag enables more checks to be done in untaken generate branches, or gen loops with invalid loop params. stack-info: PR: MikePopoloski#1901, branch: AndrewNolte/stack/18
015e587 to
c2c4ae4
Compare
Stacked PRs:
View individual changes
Compilation: Add CheckUninstantiated flag
This compilation flag enables more checks to be done in untaken generate branches, or gen loops with invalid loop params.