7 writes to _currentState
System.Private.Xml (7)
System\Xml\Schema\XmlSchemaValidator.cs (7)
214_currentState = ValidatorState.None; 369_currentState = ValidatorState.Start; 384_currentState = ValidatorState.Start; 587_currentState = ValidatorState.Start; 914_currentState = ValidatorState.SkipToEndElement; 1019_currentState = ValidatorState.Attribute; 2082_currentState = toState;
17 references to _currentState
System.Private.Xml (17)
System\Xml\Schema\XmlSchemaValidator.cs (17)
193[MemberNotNull(nameof(_currentState))] 365if (_currentState != ValidatorState.None && _currentState != ValidatorState.Finish) 367throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] })); 375if (_currentState != ValidatorState.None && _currentState != ValidatorState.Finish) 377throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], s_methodNames[(int)ValidatorState.Start] })); 525XmlSchemaObject? pvtAttribute = _currentState == ValidatorState.TopLevelAttribute ? _partialValidationType : null; 586Debug.Assert(_currentState == ValidatorState.TopLevelAttribute); //Re-set state back to start on error with partial validation type 930if (_currentState == ValidatorState.Start || _currentState == ValidatorState.TopLevelTextOrWS) 976if (_currentState == ValidatorState.Element || _currentState == ValidatorState.Attribute) 997else if (_currentState == ValidatorState.Start) 2074if (!ValidStates[(int)_currentState, (int)toState]) 2076if (_currentState == ValidatorState.None) 2080throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)_currentState], methodName }));