4 instantiations of ValidationState
System.Private.Xml (4)
System\Xml\Schema\DtdValidator.cs (1)
505context = new ValidationState();
System\Xml\Schema\XdrValidator.cs (1)
656context = new ValidationState();
System\Xml\Schema\XmlSchemaValidator.cs (1)
1527_context = new ValidationState();
System\Xml\Schema\XsdValidator.cs (1)
779context = new ValidationState();
60 references to ValidationState
System.Private.Xml (60)
System\Xml\Schema\BaseValidator.cs (1)
28protected ValidationState? context;
System\Xml\Schema\ContentValidator.cs (28)
977public virtual void InitValidation(ValidationState context) 982public virtual object? ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 992public virtual bool CompleteValidation(ValidationState context) 997public virtual ArrayList? ExpectedElements(ValidationState context, bool isRequiredOnly) 1002public virtual ArrayList? ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 1059public override void InitValidation(ValidationState context) 1065public override object ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 1071public override bool CompleteValidation(ValidationState context) 1578public override void InitValidation(ValidationState context) 1587public override object? ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 1608public override bool CompleteValidation(ValidationState context) 1617public override ArrayList? ExpectedElements(ValidationState context, bool isRequiredOnly) 1653public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 1700public override void InitValidation(ValidationState context) 1710public override object? ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 1762public override bool CompleteValidation(ValidationState context) 1771public override ArrayList? ExpectedElements(ValidationState context, bool isRequiredOnly) 1799public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 1847public override void InitValidation(ValidationState context) 1869public override object? ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 2031public override bool CompleteValidation(ValidationState context) 2036public override ArrayList? ExpectedElements(ValidationState context, bool isRequiredOnly) 2079public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet) 2147public override void InitValidation(ValidationState context) 2154public override object? ValidateElement(XmlQualifiedName name, ValidationState context, out int errorCode) 2184public override bool CompleteValidation(ValidationState context) 2194public override ArrayList? ExpectedElements(ValidationState context, bool isRequiredOnly) 2209public override ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet)
System\Xml\Schema\DtdValidator.cs (2)
502context = (ValidationState)_validationStack.Push(); 520context = (ValidationState?)_validationStack.Peek();
System\Xml\Schema\XdrValidator.cs (2)
653context = (ValidationState)_validationStack.Push(); 672context = (ValidationState?)_validationStack.Peek();
System\Xml\Schema\XmlSchemaValidator.cs (16)
86private ValidationState _context; // current context 1524_context = (ValidationState)_validationStack.Push(); 1548ValidationState previousContext = (ValidationState)_validationStack.Pop()!; 1555_context = (ValidationState)_validationStack.Peek()!; 2178if (((ValidationState)(_validationStack[level])).Constr == null) 2183ConstraintStruct[] constraintStructures = ((ValidationState)_validationStack[level]).Constr!; 2227if (((ValidationState)(_validationStack[i])).Constr == null) 2233ConstraintStruct[] constraintStructures = ((ValidationState)_validationStack[i]).Constr!; 2282if (((ValidationState)(_validationStack[ci])).Constr == null) 2288ConstraintStruct[] constraintStructures = ((ValidationState)_validationStack[ci]).Constr!; 2328if (((ValidationState)(_validationStack[ci])).Constr == null) 2334ConstraintStruct[] constraints = ((ValidationState)_validationStack[ci]).Constr!; 2448ConstraintStruct[]? vcs = ((ValidationState)(_validationStack[_validationStack.Length - 1])).Constr; 2510internal static void ElementValidationError(XmlQualifiedName name, ValidationState context, ValidationEventHandler? eventHandler, object sender, string? sourceUri, int lineNo, int linePos, XmlSchemaSet? schemaSet) 2568internal static void CompleteValidationError(ValidationState context, ValidationEventHandler? eventHandler, object sender, string? sourceUri, int lineNo, int linePos, XmlSchemaSet? schemaSet)
System\Xml\Schema\XsdValidator.cs (11)
776context = (ValidationState)_validationStack.Push(); 803context = (ValidationState?)_validationStack.Peek(); 868if (((ValidationState)(_validationStack[level])).Constr == null) 873ConstraintStruct[] constraints = ((ValidationState)_validationStack[level]).Constr!; 913if (((ValidationState)(_validationStack[i])).Constr == null) 919ConstraintStruct[] constraints = ((ValidationState)_validationStack[i]).Constr!; 968if (((ValidationState)(_validationStack[ci])).Constr == null) 974ConstraintStruct[] constraints = ((ValidationState)_validationStack[ci]).Constr!; 1022if (((ValidationState)(_validationStack[ci])).Constr == null) 1028ConstraintStruct[] constraints = ((ValidationState)_validationStack[ci]).Constr!; 1128ConstraintStruct[] vcs = ((ValidationState)(_validationStack[_validationStack.Length - 1])).Constr!;