17 writes to _xstate
System.Private.Xml (17)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (17)
65_xstate = XmlState.WithinSequence; 76_xstate = XmlState.WithinContent; 421_xstate = (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) ? XmlState.EnumAttrs : XmlState.WithinContent; 431_xstate = XmlState.WithinSequence; 451_xstate = XmlState.EnumAttrs; 475_xstate = XmlState.WithinContent; 485_xstate = XmlState.WithinContent; 505_xstate = XmlState.WithinAttr; 524_xstate = XmlState.EnumAttrs; 752_xstate = XmlState.WithinNmsp; 772_xstate = XmlState.EnumAttrs; 791_xstate = XmlState.WithinComment; 813_xstate = XmlState.WithinContent; 834_xstate = XmlState.WithinPI; 856_xstate = XmlState.WithinContent; 1263_xstate = XmlState.WithinContent; 1293_xstate = XmlState.EnumAttrs;
51 references to _xstate
System.Private.Xml (51)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (51)
192if (_xstate == XmlState.EnumAttrs) 249if (_xstate == XmlState.WithinNmsp) 418Debug.Assert(_xstate == XmlState.WithinSequence, $"StartTree cannot be called in the {_xstate} state."); 429Debug.Assert(_xstate == XmlState.EnumAttrs || _xstate == XmlState.WithinContent, $"EndTree cannot be called in the {_xstate} state."); 445Debug.Assert(_xstate == XmlState.WithinContent, $"WriteStartElement cannot be called in the {_xstate} state."); 468Debug.Assert(_xstate == XmlState.EnumAttrs, $"StartElementContent cannot be called in the {_xstate} state."); 483Debug.Assert(_xstate == XmlState.EnumAttrs || _xstate == XmlState.WithinContent, $"WriteEndElement cannot be called in the {_xstate} state."); 503Debug.Assert(_xstate == XmlState.EnumAttrs, $"WriteStartAttribute cannot be called in the {_xstate} state."); 522Debug.Assert(_xstate == XmlState.WithinAttr, $"WriteEndAttribute cannot be called in the {_xstate} state."); 538Debug.Assert(_xstate == XmlState.EnumAttrs, $"WriteNamespaceDeclaration cannot be called in the {_xstate} state."); 571Debug.Assert(_xstate != XmlState.WithinSequence && _xstate != XmlState.EnumAttrs, $"WriteTextBlock cannot be called in the {_xstate} state."); 580Debug.Assert(_xstate != XmlState.WithinSequence && _xstate != XmlState.EnumAttrs, $"WriteTextBlockNoEntities cannot be called in the {_xstate} state."); 595if (_xstate != XmlState.WithinSequence) 761Debug.Assert(_xstate == XmlState.WithinNmsp, $"WriteNamespaceString cannot be called in the {_xstate} state."); 770Debug.Assert(_xstate == XmlState.WithinNmsp, $"WriteEndNamespace cannot be called in the {_xstate} state."); 800Debug.Assert(_xstate == XmlState.WithinComment, $"WriteCommentString cannot be called in the {_xstate} state."); 809Debug.Assert(_xstate == XmlState.WithinComment, $"WriteEndComment cannot be called in the {_xstate} state."); 843Debug.Assert(_xstate == XmlState.WithinPI, $"WriteProcessingInstructionString cannot be called in the {_xstate} state."); 852Debug.Assert(_xstate == XmlState.WithinPI, $"WriteEndProcessingInstruction cannot be called in the {_xstate} state."); 875if (_xstate == XmlState.WithinSequence) 883Debug.Assert(_xstate == XmlState.WithinSequence, "Values can only be written at the top-level."); 982switch (_xstate) 1020Debug.Fail($"Text cannot be output in the {_xstate} state."); 1174Debug.Assert(_xstate != XmlState.WithinSequence, "StartCopy should not called if state is WithinSequence"); 1205Debug.Assert(_xstate == XmlState.WithinContent, $"EndCopy cannot be called in the {_xstate} state."); 1258switch (_xstate) 1289switch (_xstate) 1572throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(_xstate).ToString() }); 1579if (_xstate == XmlState.WithinContent) 1585throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { "Unknown", XmlStateToNodeType(_xstate).ToString() });