Skip to content

Raise immediately on certain exceptions during module-scope type check#2101

Merged
fubuloubu merged 1 commit into
vyperlang:masterfrom
iamdefinitelyahuman:fix-module-scope-exceptions
Jul 6, 2020
Merged

Raise immediately on certain exceptions during module-scope type check#2101
fubuloubu merged 1 commit into
vyperlang:masterfrom
iamdefinitelyahuman:fix-module-scope-exceptions

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
Contributor

What I did

Raise immediately on certain exceptions while type-checking the module scope. This prevents long error messages where other nodes fail the type checking because they rely on a previous node.

How I did it

Raise immediately on InvalidLiteral, InvalidType, and VariableDeclarationException. Each of these exceptions will not happen as a result of another node not yet being parsed.

How to verify it

Run tests.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit b4ca545 into vyperlang:master Jul 6, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-module-scope-exceptions branch July 6, 2020 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants