2 writes to _stack
System.Private.Xml (2)
System\Xml\Core\XmlTextWriter.cs (2)
269
_stack
= new TagInfo[10];
1787
_stack
= na;
41 references to _stack
System.Private.Xml (41)
System\Xml\Core\XmlTextWriter.cs (41)
271
_stack
[_top].Init(-1);
491
_stack
[_top].defaultNs =
_stack
[_top - 1].defaultNs;
492
if (
_stack
[_top - 1].defaultNsState != NamespaceState.Uninitialized)
493
_stack
[_top].defaultNsState = NamespaceState.NotDeclaredButInScope;
494
_stack
[_top].mixed =
_stack
[_top - 1].mixed;
532
_stack
[_top].prefix = null;
535
_stack
[_top].prefix = prefix;
547
_stack
[_top].name = localName;
1061
if (!string.IsNullOrEmpty(ns) && ns !=
_stack
[_top].defaultNs)
1102
if (s == null && ns ==
_stack
[_top].defaultNs)
1117
XmlSpace xs =
_stack
[i].xmlSpace;
1132
string? xlang =
_stack
[i].xmlLang;
1244
_stack
[_top].mixed = true;
1315
_stack
[_top].mixed = true;
1357
if (_namespaces &&
_stack
[_top].prefix != null)
1359
_textWriter.Write(
_stack
[_top].prefix);
1362
_textWriter.Write(
_stack
[_top].name);
1367
int prevNsTop =
_stack
[_top].prevNsTop;
1387
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1400
if ((
_stack
[_top].defaultNs !=
_stack
[_top - 1].defaultNs) &&
1401
(
_stack
[_top].defaultNsState == NamespaceState.DeclaredButNotWrittenOut))
1405
_xmlEncoder.Write(
_stack
[_top].defaultNs);
1407
_stack
[_top].defaultNsState = NamespaceState.DeclaredAndWrittenOut;
1438
else if (!
_stack
[_top].mixed)
1468
switch (
_stack
[_top].defaultNsState)
1478
_stack
[_top].defaultNs = ns;
1485
_stack
[_top].defaultNsState = (declared ? NamespaceState.DeclaredAndWrittenOut : NamespaceState.DeclaredButNotWrittenOut);
1508
if (existingNsIndex != -1 && existingNsIndex >
_stack
[_top].prevNsTop)
1584
int temp =
_stack
[_top].prefixCount++ + 1;
1637
if (nsIndex >
_stack
[_top].prevNsTop)
1645
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1747
_stack
[_top].xmlLang = value;
1754
_stack
[_top].xmlSpace = XmlSpace.Default;
1757
_stack
[_top].xmlSpace = XmlSpace.Preserve;
1783
if (_top ==
_stack
.Length - 1)
1785
TagInfo[] na = new TagInfo[
_stack
.Length + 10];
1786
if (_top > 0) Array.Copy(
_stack
, na, _top + 1);
1791
_stack
[_top].Init(_nsTop);