26 references to IsNullableFor
System.Text.RegularExpressions (26)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (2)
119
/// This is functionally equivalent to <see cref="SymbolicRegexNodeContext{TSet}.
IsNullableFor
(uint)"/>, but using cached
161
nullabilityInfo |= (byte)(node.
IsNullableFor
(CharKind.Context(PrevCharKind, charKind)) ? 1 << (int)charKind : 0);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (24)
305
return node.
IsNullableFor
(context);
394
return StackHelper.CallOnEmptyStack(node.
IsNullableFor
, context);
414
is_nullable = data.Lower == 0 || node.GetContext(data.LeftId).
IsNullableFor
(context);
419
is_nullable = node.GetContext(data.LeftId).
IsNullableFor
(context) && node.GetContext(data.RightId).
IsNullableFor
(context);
424
is_nullable = node.GetContext(data.LeftId).
IsNullableFor
(context) || node.GetContext(data.RightId).
IsNullableFor
(context);
471
is_nullable = node.GetContext(data.LeftId).
IsNullableFor
(context);
1254
if (!
IsNullableFor
(context))
1279
prunedNode = _left.
IsNullableFor
(context) ? _left.PruneLowerPriorityThanNullability(builder, context) :
1296
SymbolicRegexNodeKind.Alternate => (_left._left!.
IsNullableFor
(context) ?
1341
else if (!loop._left.
IsNullableFor
(context))
1369
Debug.Assert(loop._left.
IsNullableFor
(context));
1461
if (!left.
IsNullableFor
(context))
1495
if (data.Lower == 0 || body.IsNullable || !body.
IsNullableFor
(context))
1749
Debug.Assert(left.
IsNullableFor
(context) && right.
IsNullableFor
(context));
1760
if (data.Lower != 0 || (data.Upper != 0 && !data.Info.IsLazyLoop && body.
IsNullableFor
(context)))
1762
Debug.Assert(body.
IsNullableFor
(context));
1774
if (left.
IsNullableFor
(context))
1782
Debug.Assert(right.
IsNullableFor
(context));
2396
Debug.Assert(
IsNullableFor
(context));
2411
if (_left.
IsNullableFor
(context))
2419
Debug.Assert(_right.
IsNullableFor
(context));