1 write to Negated
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
557
result.
Negated
= RegexCharClass.IsNegated(result.Set);
10 references to Negated
System.Text.RegularExpressions.Generator (10)
RegexGenerator.Emitter.cs (3)
1330
if (primarySet.
Negated
)
1354
indexOf = (primarySet.Range.Value.LowInclusive == primarySet.Range.Value.HighInclusive, primarySet.
Negated
) switch
1475
Debug.Assert(!set.
Negated
);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (4)
233
(fixedDistanceSets[0].Chars is not null && !fixedDistanceSets[0].
Negated
))
241
!fixedDistanceSets[0].
Negated
)
357
bool invalidChars = chars is not { Length: 1 } || fixedDistanceSets[i].
Negated
;
880
if (set.
Negated
)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
522
!r.
Negated
&& r.Chars is null && r.Range is null,
797
bool s1Negated = s1.
Negated
;
798
bool s2Negated = s2.
Negated
;