17 writes to _xstate
System.Private.Xml (17)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (17)
65_xstate = XmlState.WithinSequence; 76_xstate = XmlState.WithinContent; 422_xstate = (rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace) ? XmlState.EnumAttrs : XmlState.WithinContent; 432_xstate = XmlState.WithinSequence; 452_xstate = XmlState.EnumAttrs; 476_xstate = XmlState.WithinContent; 486_xstate = XmlState.WithinContent; 506_xstate = XmlState.WithinAttr; 525_xstate = XmlState.EnumAttrs; 753_xstate = XmlState.WithinNmsp; 773_xstate = XmlState.EnumAttrs; 792_xstate = XmlState.WithinComment; 814_xstate = XmlState.WithinContent; 835_xstate = XmlState.WithinPI; 857_xstate = XmlState.WithinContent; 1264_xstate = XmlState.WithinContent; 1294_xstate = XmlState.EnumAttrs;
51 references to _xstate
System.Private.Xml (51)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (51)
193if (_xstate == XmlState.EnumAttrs) 250if (_xstate == XmlState.WithinNmsp) 419Debug.Assert(_xstate == XmlState.WithinSequence, $"StartTree cannot be called in the {_xstate} state."); 430Debug.Assert(_xstate == XmlState.EnumAttrs || _xstate == XmlState.WithinContent, $"EndTree cannot be called in the {_xstate} state."); 446Debug.Assert(_xstate == XmlState.WithinContent, $"WriteStartElement cannot be called in the {_xstate} state."); 469Debug.Assert(_xstate == XmlState.EnumAttrs, $"StartElementContent cannot be called in the {_xstate} state."); 484Debug.Assert(_xstate == XmlState.EnumAttrs || _xstate == XmlState.WithinContent, $"WriteEndElement cannot be called in the {_xstate} state."); 504Debug.Assert(_xstate == XmlState.EnumAttrs, $"WriteStartAttribute cannot be called in the {_xstate} state."); 523Debug.Assert(_xstate == XmlState.WithinAttr, $"WriteEndAttribute cannot be called in the {_xstate} state."); 539Debug.Assert(_xstate == XmlState.EnumAttrs, $"WriteNamespaceDeclaration cannot be called in the {_xstate} state."); 572Debug.Assert(_xstate != XmlState.WithinSequence && _xstate != XmlState.EnumAttrs, $"WriteTextBlock cannot be called in the {_xstate} state."); 581Debug.Assert(_xstate != XmlState.WithinSequence && _xstate != XmlState.EnumAttrs, $"WriteTextBlockNoEntities cannot be called in the {_xstate} state."); 596if (_xstate != XmlState.WithinSequence) 762Debug.Assert(_xstate == XmlState.WithinNmsp, $"WriteNamespaceString cannot be called in the {_xstate} state."); 771Debug.Assert(_xstate == XmlState.WithinNmsp, $"WriteEndNamespace cannot be called in the {_xstate} state."); 801Debug.Assert(_xstate == XmlState.WithinComment, $"WriteCommentString cannot be called in the {_xstate} state."); 810Debug.Assert(_xstate == XmlState.WithinComment, $"WriteEndComment cannot be called in the {_xstate} state."); 844Debug.Assert(_xstate == XmlState.WithinPI, $"WriteProcessingInstructionString cannot be called in the {_xstate} state."); 853Debug.Assert(_xstate == XmlState.WithinPI, $"WriteEndProcessingInstruction cannot be called in the {_xstate} state."); 876if (_xstate == XmlState.WithinSequence) 884Debug.Assert(_xstate == XmlState.WithinSequence, "Values can only be written at the top-level."); 983switch (_xstate) 1021Debug.Fail($"Text cannot be output in the {_xstate} state."); 1175Debug.Assert(_xstate != XmlState.WithinSequence, "StartCopy should not called if state is WithinSequence"); 1206Debug.Assert(_xstate == XmlState.WithinContent, $"EndCopy cannot be called in the {_xstate} state."); 1259switch (_xstate) 1290switch (_xstate) 1573throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(_xstate).ToString() }); 1580if (_xstate == XmlState.WithinContent) 1586throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { "Unknown", XmlStateToNodeType(_xstate).ToString() });