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)
192
if (
_xstate
== XmlState.EnumAttrs)
249
if (
_xstate
== XmlState.WithinNmsp)
418
Debug.Assert(
_xstate
== XmlState.WithinSequence, $"StartTree cannot be called in the {
_xstate
} state.");
429
Debug.Assert(
_xstate
== XmlState.EnumAttrs ||
_xstate
== XmlState.WithinContent, $"EndTree cannot be called in the {
_xstate
} state.");
445
Debug.Assert(
_xstate
== XmlState.WithinContent, $"WriteStartElement cannot be called in the {
_xstate
} state.");
468
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"StartElementContent cannot be called in the {
_xstate
} state.");
483
Debug.Assert(
_xstate
== XmlState.EnumAttrs ||
_xstate
== XmlState.WithinContent, $"WriteEndElement cannot be called in the {
_xstate
} state.");
503
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"WriteStartAttribute cannot be called in the {
_xstate
} state.");
522
Debug.Assert(
_xstate
== XmlState.WithinAttr, $"WriteEndAttribute cannot be called in the {
_xstate
} state.");
538
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"WriteNamespaceDeclaration cannot be called in the {
_xstate
} state.");
571
Debug.Assert(
_xstate
!= XmlState.WithinSequence &&
_xstate
!= XmlState.EnumAttrs, $"WriteTextBlock cannot be called in the {
_xstate
} state.");
580
Debug.Assert(
_xstate
!= XmlState.WithinSequence &&
_xstate
!= XmlState.EnumAttrs, $"WriteTextBlockNoEntities cannot be called in the {
_xstate
} state.");
595
if (
_xstate
!= XmlState.WithinSequence)
761
Debug.Assert(
_xstate
== XmlState.WithinNmsp, $"WriteNamespaceString cannot be called in the {
_xstate
} state.");
770
Debug.Assert(
_xstate
== XmlState.WithinNmsp, $"WriteEndNamespace cannot be called in the {
_xstate
} state.");
800
Debug.Assert(
_xstate
== XmlState.WithinComment, $"WriteCommentString cannot be called in the {
_xstate
} state.");
809
Debug.Assert(
_xstate
== XmlState.WithinComment, $"WriteEndComment cannot be called in the {
_xstate
} state.");
843
Debug.Assert(
_xstate
== XmlState.WithinPI, $"WriteProcessingInstructionString cannot be called in the {
_xstate
} state.");
852
Debug.Assert(
_xstate
== XmlState.WithinPI, $"WriteEndProcessingInstruction cannot be called in the {
_xstate
} state.");
875
if (
_xstate
== XmlState.WithinSequence)
883
Debug.Assert(
_xstate
== XmlState.WithinSequence, "Values can only be written at the top-level.");
982
switch (
_xstate
)
1020
Debug.Fail($"Text cannot be output in the {
_xstate
} state.");
1174
Debug.Assert(
_xstate
!= XmlState.WithinSequence, "StartCopy should not called if state is WithinSequence");
1205
Debug.Assert(
_xstate
== XmlState.WithinContent, $"EndCopy cannot be called in the {
_xstate
} state.");
1258
switch (
_xstate
)
1289
switch (
_xstate
)
1572
throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(
_xstate
).ToString() });
1579
if (
_xstate
== XmlState.WithinContent)
1585
throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { "Unknown", XmlStateToNodeType(
_xstate
).ToString() });