33 references to StateFlags
System.Text.RegularExpressions (33)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (7)
125/// Builds a <see cref="StateFlags"/> with the relevant flags set. 129internal StateFlags BuildStateFlags(bool isInitial) 131StateFlags info = 0; 135info |= StateFlags.IsInitialFlag; 140info |= StateFlags.CanBeNullableFlag; 143info |= StateFlags.IsNullableFlag; 149info |= StateFlags.SimulatesBacktrackingFlag;
System\Text\RegularExpressions\Symbolic\StateFlags.cs (13)
24/// These extension methods for <see cref="StateFlags"/> make checking for the presence of flags more concise. 28internal static bool IsInitial(this StateFlags info) => (info & StateFlags.IsInitialFlag) != StateFlags.None; 29internal static bool IsNullable(this StateFlags info) => (info & StateFlags.IsNullableFlag) != StateFlags.None; 30internal static bool CanBeNullable(this StateFlags info) => (info & StateFlags.CanBeNullableFlag) != StateFlags.None; 31internal static bool SimulatesBacktracking(this StateFlags info) => (info & StateFlags.SimulatesBacktrackingFlag) != StateFlags.None;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
42private StateFlags[] _stateFlagsArray;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (11)
191_stateFlagsArray = new StateFlags[InitialDfaStateCapacity]; 1058StateFlags flags = _stateFlagsArray[coreStateId]; 1255public static abstract StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state); 1304public static StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state) => 1383StateFlags flags = matcher._stateFlagsArray[coreStateId]; 1420public static StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state) 1426StateFlags flags = 0; 1432return flags & (StateFlags.IsNullableFlag | StateFlags.CanBeNullableFlag | StateFlags.SimulatesBacktrackingFlag); 1642StateFlags flags = TStateHandler.GetStateFlags(matcher, in state);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
86StateFlags flags = SymbolicRegexMatcher<TSet>.NfaStateHandler.GetStateFlags(this, in statesWrapper);