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 161nullabilityInfo |= (byte)(node.IsNullableFor(CharKind.Context(PrevCharKind, charKind)) ? 1 << (int)charKind : 0);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (24)
305return node.IsNullableFor(context); 394return StackHelper.CallOnEmptyStack(node.IsNullableFor, context); 414is_nullable = data.Lower == 0 || node.GetContext(data.LeftId).IsNullableFor(context); 419is_nullable = node.GetContext(data.LeftId).IsNullableFor(context) && node.GetContext(data.RightId).IsNullableFor(context); 424is_nullable = node.GetContext(data.LeftId).IsNullableFor(context) || node.GetContext(data.RightId).IsNullableFor(context); 471is_nullable = node.GetContext(data.LeftId).IsNullableFor(context); 1254if (!IsNullableFor(context)) 1279prunedNode = _left.IsNullableFor(context) ? _left.PruneLowerPriorityThanNullability(builder, context) : 1296SymbolicRegexNodeKind.Alternate => (_left._left!.IsNullableFor(context) ? 1341else if (!loop._left.IsNullableFor(context)) 1369Debug.Assert(loop._left.IsNullableFor(context)); 1461if (!left.IsNullableFor(context)) 1495if (data.Lower == 0 || body.IsNullable || !body.IsNullableFor(context)) 1749Debug.Assert(left.IsNullableFor(context) && right.IsNullableFor(context)); 1760if (data.Lower != 0 || (data.Upper != 0 && !data.Info.IsLazyLoop && body.IsNullableFor(context))) 1762Debug.Assert(body.IsNullableFor(context)); 1774if (left.IsNullableFor(context)) 1782Debug.Assert(right.IsNullableFor(context)); 2396Debug.Assert(IsNullableFor(context)); 2411if (_left.IsNullableFor(context)) 2419Debug.Assert(_right.IsNullableFor(context));