-
Notifications
You must be signed in to change notification settings - Fork 174
Syntax tree transformation improvements #1332
Conversation
|
The repo build is failing due to an unrelated security alert. |
ScottCarda-MS
left a comment
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.
I still have a bit more looking into with the changes with the base transformations.
src/QsCompiler/Core/Transformations/SyntaxTreeTransformation.fs
Outdated
Show resolved
Hide resolved
src/QsCompiler/Core/Transformations/SyntaxTreeTransformation.fs
Outdated
Show resolved
Hide resolved
|
@bettinaheim after reviewing the PR, the summary of the major changes is the following:
Am I missing something? |
Regarding "Unchecked vs checked lambdas are now type differentiated.": Regarding CommonTransformationNodes: This is the summary for the change: CommonTransformationNodes was introduces as per your comment, and the nodes in that class are overridded by overriding them in the SyntaxTreeTransformation. The common nodes extracted in that way are the following:
|
ScottCarda-MS
left a comment
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.
Just had one open concern about the changes to how subtransformations relate to each other and its effect on transformation modularity and flexibility. Outside of that, this looks great!
This PR contains the second batch of changes to improve the consistency of syntax tree transformations. The first half (included in this PR) can be found here: #1290 These changes are incorporated into this PR. Additionally, this PR changes the data structures used to represent lambda expressions, and adds the common handles for dealing with argument tuples.