1 write to Id
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
258state.Id = _stateCache.Count;
25 references to Id
System.Text.RegularExpressions (25)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (10)
137return _dfaDelta.AsSpan(state.Id << _mintermsLog, numMinterms); 145if (!_nfaIdByCoreId.TryGetValue(state.Id, out int nfaState)) 262if (state.Id == _stateArray.Length) 271_stateArray[state.Id] = state; 272_stateFlagsArray[state.Id] = state.BuildStateFlags(isInitialState); 273_nullabilityArray[state.Id] = (byte)state.NullabilityInfo; 311if (!_nfaIdByCoreId.TryGetValue(coreState.Id, out int nfaStateId)) 329_nfaCoreIdArray[nfaStateId] = coreState.Id; 333_nfaIdByCoreId.Add(coreState.Id, nfaStateId); 377Volatile.Write(ref _dfaDelta[offset], targetState.Id);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (6)
250_deadStateId = GetOrCreateState_NoLock(_builder._nothing, 0).Id; 251_initialStateId = _dotstarredInitialStates[CharKind.General].Id; 1234DfaStateId = dfaState.Id; 1289dfaStateId = nextState.Id; 1553currentStateId = matcher._dotstarredInitialStates[matcher.GetCharKind(input, pos - 1)].Id; 1584currentStateId = matcher._dotstarredInitialStates[matcher._positionKinds[GetMintermId(lookup, input[pos - 1]) + 1]].Id;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (6)
37writer.WriteLine(" <Node Id=\"{0}\" Label=\"{0}\" Category=\"State\" Group=\"Collapsed\" StateInfo=\"{1}\">", state.Id, nodeDgmlView); 38if (_stateFlagsArray[state.Id].IsInitial()) 47writer.WriteLine(" <Node Id=\"{0}info\" Label=\"{1}\" Category=\"StateInfo\"/>", state.Id, nodeDgmlView); 53writer.WriteLine(" <Link Source=\"dfa\" Target=\"{0}\" Label=\"\" Category=\"StartTransition\" />", initialState.Id); 78writer.WriteLine(" <Link Source=\"{0}\" Target=\"{0}info\" Category=\"Contains\" />", state.Id); 160(int Source, int Target) key = (source.Id, targetId);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Explore.cs (3)
45int offset = DeltaOffset(state.Id, mintermId); 87int nfaOffset = DeltaOffset(_nfaIdByCoreId[state.Id], mintermId); 88int[] nextNfaStates = CreateNewNfaTransition(_nfaIdByCoreId[state.Id], mintermId, nfaOffset);