-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Remove Or, And, Not + related fixes #69839
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
Changes from all commits
0eb6e67
5f905cd
ff73bbc
f42761b
731a9bd
982fc6d
53507a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,23 +29,11 @@ internal DfaMatchingState(SymbolicRegexNode<TSet> node, uint prevCharKind) | |
| internal bool IsDeadend => Node.IsNothing; | ||
|
|
||
| /// <summary>The node must be nullable here</summary> | ||
| internal int FixedLength | ||
| internal int FixedLength(uint nextCharKind) | ||
|
||
| { | ||
| get | ||
| { | ||
| if (Node._kind == SymbolicRegexNodeKind.FixedLengthMarker) | ||
| { | ||
| return Node._lower; | ||
| } | ||
|
|
||
| if (Node._kind == SymbolicRegexNodeKind.Or) | ||
| { | ||
| Debug.Assert(Node._alts is not null); | ||
| return Node._alts._maximumLength; | ||
| } | ||
|
|
||
| return -1; | ||
| } | ||
| Debug.Assert(nextCharKind is 0 or CharKind.BeginningEnd or CharKind.Newline or CharKind.WordLetter or CharKind.NewLineS); | ||
| uint context = CharKind.Context(PrevCharKind, nextCharKind); | ||
| return Node.ResolveFixedLength(context); | ||
| } | ||
|
|
||
| /// <summary>If true then the state is a dead-end, rejects all inputs.</summary> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.