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]; 1060StateFlags flags = _stateFlagsArray[coreStateId]; 1257public static abstract StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state); 1306public static StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state) => 1385StateFlags flags = matcher._stateFlagsArray[coreStateId]; 1422public static StateFlags GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state) 1428StateFlags flags = 0; 1434return flags & (StateFlags.IsNullableFlag | StateFlags.CanBeNullableFlag | StateFlags.SimulatesBacktrackingFlag); 1644StateFlags flags = TStateHandler.GetStateFlags(matcher, in state);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
86StateFlags flags = SymbolicRegexMatcher<TSet>.NfaStateHandler.GetStateFlags(this, in statesWrapper);