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
))]
365
if (
_currentState
!= ValidatorState.None &&
_currentState
!= ValidatorState.Finish)
367
throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)
_currentState
], s_methodNames[(int)ValidatorState.Start] }));
375
if (
_currentState
!= ValidatorState.None &&
_currentState
!= ValidatorState.Finish)
377
throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)
_currentState
], s_methodNames[(int)ValidatorState.Start] }));
525
XmlSchemaObject? pvtAttribute =
_currentState
== ValidatorState.TopLevelAttribute ? _partialValidationType : null;
586
Debug.Assert(
_currentState
== ValidatorState.TopLevelAttribute); //Re-set state back to start on error with partial validation type
930
if (
_currentState
== ValidatorState.Start ||
_currentState
== ValidatorState.TopLevelTextOrWS)
976
if (
_currentState
== ValidatorState.Element ||
_currentState
== ValidatorState.Attribute)
997
else if (
_currentState
== ValidatorState.Start)
2074
if (!ValidStates[(int)
_currentState
, (int)toState])
2076
if (
_currentState
== ValidatorState.None)
2080
throw new InvalidOperationException(SR.Format(SR.Sch_InvalidStateTransition, new string[] { s_methodNames[(int)
_currentState
], methodName }));