internal bool IsNullableFor(uint nextCharKind) { Debug.Assert(CharKind.IsValidCharKind(nextCharKind)); uint context = CharKind.Context(PrevCharKind, nextCharKind); return(Node.IsNullableFor(context)); }
/// <summary> /// Returns the fixed length that any match ending with this state must have, or -1 if there is no such /// fixed length, <see cref="SymbolicRegexNode{TSet}.ResolveFixedLength(uint)"/>. The context is defined /// by <see cref="PrevCharKind"/> of this state and the given nextCharKind. The node must be nullable here. /// </summary> internal int FixedLength(uint nextCharKind) { Debug.Assert(IsNullableFor(nextCharKind)); Debug.Assert(CharKind.IsValidCharKind(nextCharKind)); uint context = CharKind.Context(PrevCharKind, nextCharKind); return(Node.ResolveFixedLength(context)); }