-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Split states for is not
patterns
#52205
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7810a32
Split states for `is not` patterns
alrz 06e94db
Move bindings to the opposite branch
alrz 69ca93f
Simplify
alrz c19bf08
Revert code
alrz 81da8f1
Formatting
alrz 8994036
Fix build
alrz 4254611
Simplify
alrz baebde5
Merge remote-tracking branch 'origin/main' into not-pattern
alrz ba08eda
Address test failures
alrz a7c7382
Simplify
alrz 48f5c6a
Fixup
alrz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1371,6 +1371,10 @@ | |
<Field Name="WhenExpression" Type="BoundExpression?"/> | ||
<Field Name="WhenTrue" Type="BoundDecisionDagNode" Null="disallow"/> | ||
<Field Name="WhenFalse" Type="BoundDecisionDagNode?"/> | ||
<!-- | ||
Required is true when bindings are used in the opposite branch and cannot be optimized away. | ||
--> | ||
<Field Name="Required" Type="bool"/> | ||
Comment on lines
+1374
to
+1377
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're going to need this for |
||
</Node> | ||
<!-- This node is used to indicate a point in the decision dag where the decision has been completed. --> | ||
<Node Name="BoundLeafDecisionDagNode" Base="BoundDecisionDagNode"> | ||
|
@@ -2021,15 +2025,10 @@ | |
<Field Name="Alignment" Type="BoundExpression?"/> | ||
<Field Name="Format" Type="BoundLiteral?"/> | ||
</Node> | ||
|
||
<!-- An 'is pattern'. The fields DecisionDag, WhenTrueLabel, and WhenFalseLabel represent the inner pattern | ||
after removing any outer 'not's, so consumers (such as lowering and definite assignment of the local in | ||
'is not Type t') will need to compensate for negated patterns. IsNegated is set if Pattern is the negated | ||
form of the inner pattern represented by DecisionDag. --> | ||
|
||
<Node Name="BoundIsPatternExpression" Base="BoundExpression"> | ||
<Field Name="Expression" Type="BoundExpression" Null="disallow"/> | ||
<Field Name="Pattern" Type="BoundPattern" Null="disallow"/> | ||
<Field Name="IsNegated" Type="bool"/> | ||
<Field Name="DecisionDag" Type="BoundDecisionDag" Null="disallow" SkipInVisitor="true"/> | ||
<Field Name="WhenTrueLabel" Type="LabelSymbol" Null="disallow"/> | ||
<Field Name="WhenFalseLabel" Type="LabelSymbol" Null="disallow"/> | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This file is simply reverted to the state before #49369