-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
feat[tool]: delay global constraint check #3810
feat[tool]: delay global constraint check #3810
Conversation
move the global constraint to later in compilation pipeline, so that you can get a "partial compilation" library modules with `-f annotated_ast`. these library modules may declare `uses: X`, without initializing `X. this is intended for third-party tools like IDEs, which may want to get validation that a module will compile, even if it can't generate bytecode (be a compilation target)
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3810 +/- ##
==========================================
- Coverage 85.18% 85.07% -0.11%
==========================================
Files 92 92
Lines 13908 13914 +6
Branches 3116 3118 +2
==========================================
- Hits 11847 11838 -9
- Misses 1567 1581 +14
- Partials 494 495 +1 ☔ View full report in Codecov by Sentry. |
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.
One strong suggestion
vyper/semantics/analysis/module.py
Outdated
@@ -54,8 +54,8 @@ | |||
def validate_module_semantics_r( |
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.
why _r
? seems like unexplained codebase definition to use these as external API, and _r
should just be expanded
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.
_r
is the convention for a lot of recursive functions. idk that it's really an external api, i can add a wrapper though
What I did
How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture