31 references to IsNegated
System.Text.RegularExpressions.Generator (31)
RegexGenerator.Emitter.cs (9)
1839if (RegexCharClass.IsNegated(startingLiteralNode.Str!) || 5070bool negated = RegexCharClass.IsNegated(node.Str) ^ negate; 5221negate ^= RegexCharClass.IsNegated(charClass); 5264negate ^= RegexCharClass.IsNegated(charClass); 5275negate ^= RegexCharClass.IsNegated(charClass); 5295negate ^= RegexCharClass.IsNegated(charClass); 5312bool negatedClass = RegexCharClass.IsNegated(charClass); 5347bool negatedClass = RegexCharClass.IsNegated(charClass); 5373negate ^= RegexCharClass.IsNegated(charClass);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (14)
627!IsNegated(charClass) && 633!IsNegated(charClass) && 646!IsNegated(set) && 653IsNegated(set) && 767negated ^= IsNegated(set); 779/// if <see cref="IsNegated(string)"/> is true. 854if (hasSubtraction && IsNegated(set)) 925bool set1Negated = IsNegated(set1); 926bool set2Negated = IsNegated(set2); 1012Debug.Assert(!IsNegated(set1) && !IsNegated(set2)); 1130!IsNegated(set) && 1186bool isNegated = IsNegated(set); 2011bool negated = IsNegated(set);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
131if (!RegexCharClass.IsNegated(charClass) && 142Debug.Assert(!RegexCharClass.IsNegated(charClass)); 149Debug.Assert(!RegexCharClass.IsNegated(charClass) || chars is null);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
1568return new StartingLiteralData(range: (lowInclusive, highInclusive), negated: RegexCharClass.IsNegated(node.Str!)); 1575return new StartingLiteralData(setChars: setChars.Slice(0, numChars).ToString(), negated: RegexCharClass.IsNegated(node.Str!));
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
156case RegexNodeKind.Set or RegexNodeKind.Setloop or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic when !RegexCharClass.IsNegated(node.Str!): // negated sets are too complex to analyze 557result.Negated = RegexCharClass.IsNegated(result.Set); 1232!RegexCharClass.IsNegated(nextChild.Str!) &&