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)
193
if (
_xstate
== XmlState.EnumAttrs)
250
if (
_xstate
== XmlState.WithinNmsp)
419
Debug.Assert(
_xstate
== XmlState.WithinSequence, $"StartTree cannot be called in the {
_xstate
} state.");
430
Debug.Assert(
_xstate
== XmlState.EnumAttrs ||
_xstate
== XmlState.WithinContent, $"EndTree cannot be called in the {
_xstate
} state.");
446
Debug.Assert(
_xstate
== XmlState.WithinContent, $"WriteStartElement cannot be called in the {
_xstate
} state.");
469
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"StartElementContent cannot be called in the {
_xstate
} state.");
484
Debug.Assert(
_xstate
== XmlState.EnumAttrs ||
_xstate
== XmlState.WithinContent, $"WriteEndElement cannot be called in the {
_xstate
} state.");
504
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"WriteStartAttribute cannot be called in the {
_xstate
} state.");
523
Debug.Assert(
_xstate
== XmlState.WithinAttr, $"WriteEndAttribute cannot be called in the {
_xstate
} state.");
539
Debug.Assert(
_xstate
== XmlState.EnumAttrs, $"WriteNamespaceDeclaration cannot be called in the {
_xstate
} state.");
572
Debug.Assert(
_xstate
!= XmlState.WithinSequence &&
_xstate
!= XmlState.EnumAttrs, $"WriteTextBlock cannot be called in the {
_xstate
} state.");
581
Debug.Assert(
_xstate
!= XmlState.WithinSequence &&
_xstate
!= XmlState.EnumAttrs, $"WriteTextBlockNoEntities cannot be called in the {
_xstate
} state.");
596
if (
_xstate
!= XmlState.WithinSequence)
762
Debug.Assert(
_xstate
== XmlState.WithinNmsp, $"WriteNamespaceString cannot be called in the {
_xstate
} state.");
771
Debug.Assert(
_xstate
== XmlState.WithinNmsp, $"WriteEndNamespace cannot be called in the {
_xstate
} state.");
801
Debug.Assert(
_xstate
== XmlState.WithinComment, $"WriteCommentString cannot be called in the {
_xstate
} state.");
810
Debug.Assert(
_xstate
== XmlState.WithinComment, $"WriteEndComment cannot be called in the {
_xstate
} state.");
844
Debug.Assert(
_xstate
== XmlState.WithinPI, $"WriteProcessingInstructionString cannot be called in the {
_xstate
} state.");
853
Debug.Assert(
_xstate
== XmlState.WithinPI, $"WriteEndProcessingInstruction cannot be called in the {
_xstate
} state.");
876
if (
_xstate
== XmlState.WithinSequence)
884
Debug.Assert(
_xstate
== XmlState.WithinSequence, "Values can only be written at the top-level.");
983
switch (
_xstate
)
1021
Debug.Fail($"Text cannot be output in the {
_xstate
} state.");
1175
Debug.Assert(
_xstate
!= XmlState.WithinSequence, "StartCopy should not called if state is WithinSequence");
1206
Debug.Assert(
_xstate
== XmlState.WithinContent, $"EndCopy cannot be called in the {
_xstate
} state.");
1259
switch (
_xstate
)
1290
switch (
_xstate
)
1573
throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { constructorType.ToString(), XmlStateToNodeType(
_xstate
).ToString() });
1580
if (
_xstate
== XmlState.WithinContent)
1586
throw new XslTransformException(SR.XmlIl_BadXmlState, new string[] { "Unknown", XmlStateToNodeType(
_xstate
).ToString() });