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);
9 references to Negated
System.Text.RegularExpressions.Generator (9)
RegexGenerator.Emitter.cs (3)
1191
if (primarySet.
Negated
)
1215
indexOf = (primarySet.Range.Value.LowInclusive == primarySet.Range.Value.HighInclusive, primarySet.
Negated
) switch
1336
Debug.Assert(!set.
Negated
);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
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
;
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
;