-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A large refactoring to change how structs are handled. Previously we had pretended that structs were stand-alone declarations, captured their types structurally and used aliases to these types throughout the AST. This was OK to get things going but (a) made cloning a pain, and (b) was not fully general. Now we treat structs properly as just part of a variable declaration list. Instead of aliasing types through the AST we have the notion of a named struct type (which says nothing about fields) and a struct definition type (which has field information). A little more work is required to get fields from a named struct type, but the payoff is that cloning is straightforward, and the treatment of structs is a lot more general.
- Loading branch information
Showing
53 changed files
with
1,350 additions
and
1,034 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
44 changes: 0 additions & 44 deletions
44
ast/src/main/java/com/graphicsfuzz/common/ast/decl/StructDeclaration.java
This file was deleted.
Oops, something went wrong.
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.