-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: For attributes, add missing resolution and fix pointless parsing (…
…#1900) * fix: Resolve attributes on `requires` and `ensures` clauses for functions (previously, these were never resolved) * fix: Resolve attributes on all specification components of iterators (previously, these were never resolved) * fix: Previously, attributes on `reads` clauses were parsed and then ignored. Now, they are not parsed at all. (There is no place in the AST where these are stored.) * fix: Previously, attributes on `requires` clauses of lambda expressions were parsed and then ignored. Now, they are not parsed at all. (There is no place in the AST where these are stored.) * fix: Previously, attributes on `decreases` clauses of functions were parsed and then ignored. Now, they are parsed and stored in the AST. (These had a place in the AST, but were previously not stored there--or anywhere.) * Add test cases that make sure attributes on `modify` statements and `module` declarations are resolved Implementation notes: * Mark five more classes as `IAttributeBearingDeclaration` * Add `Attributes` getter in `IAttributeBearingDeclaration` * Remove redundant parameter to `ResolveAttributes`
- Loading branch information
1 parent
f3aabc6
commit 4c99032
Showing
6 changed files
with
613 additions
and
243 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
Oops, something went wrong.