2 writes to _stack
System.Private.Xml (2)
System\Xml\Core\XmlTextWriter.cs (2)
268
_stack
= new TagInfo[10];
1786
_stack
= na;
41 references to _stack
System.Private.Xml (41)
System\Xml\Core\XmlTextWriter.cs (41)
270
_stack
[_top].Init(-1);
490
_stack
[_top].defaultNs =
_stack
[_top - 1].defaultNs;
491
if (
_stack
[_top - 1].defaultNsState != NamespaceState.Uninitialized)
492
_stack
[_top].defaultNsState = NamespaceState.NotDeclaredButInScope;
493
_stack
[_top].mixed =
_stack
[_top - 1].mixed;
531
_stack
[_top].prefix = null;
534
_stack
[_top].prefix = prefix;
546
_stack
[_top].name = localName;
1060
if (!string.IsNullOrEmpty(ns) && ns !=
_stack
[_top].defaultNs)
1101
if (s == null && ns ==
_stack
[_top].defaultNs)
1116
XmlSpace xs =
_stack
[i].xmlSpace;
1131
string? xlang =
_stack
[i].xmlLang;
1243
_stack
[_top].mixed = true;
1314
_stack
[_top].mixed = true;
1356
if (_namespaces &&
_stack
[_top].prefix != null)
1358
_textWriter.Write(
_stack
[_top].prefix);
1361
_textWriter.Write(
_stack
[_top].name);
1366
int prevNsTop =
_stack
[_top].prevNsTop;
1386
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1399
if ((
_stack
[_top].defaultNs !=
_stack
[_top - 1].defaultNs) &&
1400
(
_stack
[_top].defaultNsState == NamespaceState.DeclaredButNotWrittenOut))
1404
_xmlEncoder.Write(
_stack
[_top].defaultNs);
1406
_stack
[_top].defaultNsState = NamespaceState.DeclaredAndWrittenOut;
1437
else if (!
_stack
[_top].mixed)
1467
switch (
_stack
[_top].defaultNsState)
1477
_stack
[_top].defaultNs = ns;
1484
_stack
[_top].defaultNsState = (declared ? NamespaceState.DeclaredAndWrittenOut : NamespaceState.DeclaredButNotWrittenOut);
1507
if (existingNsIndex != -1 && existingNsIndex >
_stack
[_top].prevNsTop)
1583
int temp =
_stack
[_top].prefixCount++ + 1;
1636
if (nsIndex >
_stack
[_top].prevNsTop)
1644
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1746
_stack
[_top].xmlLang = value;
1753
_stack
[_top].xmlSpace = XmlSpace.Default;
1756
_stack
[_top].xmlSpace = XmlSpace.Preserve;
1782
if (_top ==
_stack
.Length - 1)
1784
TagInfo[] na = new TagInfo[
_stack
.Length + 10];
1785
if (_top > 0) Array.Copy(
_stack
, na, _top + 1);
1790
_stack
[_top].Init(_nsTop);