2 writes to _stack
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (2)
264
_stack
= new TagInfo[10];
1736
_stack
= na;
41 references to _stack
dotnet-svcutil-lib (41)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (41)
266
_stack
[_top].Init(-1);
466
_stack
[_top].defaultNs =
_stack
[_top - 1].defaultNs;
467
if (
_stack
[_top - 1].defaultNsState != NamespaceState.Uninitialized)
468
_stack
[_top].defaultNsState = NamespaceState.NotDeclaredButInScope;
469
_stack
[_top].mixed =
_stack
[_top - 1].mixed;
506
_stack
[_top].prefix = null;
509
_stack
[_top].prefix = prefix;
521
_stack
[_top].name = localName;
1026
if (ns != null && ns.Length != 0 && ns !=
_stack
[_top].defaultNs)
1066
if (s == null && ns ==
_stack
[_top].defaultNs)
1080
XmlSpace xs =
_stack
[i].xmlSpace;
1095
String xlang =
_stack
[i].xmlLang;
1208
_stack
[_top].mixed = true;
1279
_stack
[_top].mixed = true;
1320
if (_namespaces &&
_stack
[_top].prefix != null)
1322
_textWriter.Write(
_stack
[_top].prefix);
1325
_textWriter.Write(
_stack
[_top].name);
1330
int prevNsTop =
_stack
[_top].prevNsTop;
1348
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1362
if ((
_stack
[_top].defaultNs !=
_stack
[_top - 1].defaultNs) &&
1363
(
_stack
[_top].defaultNsState == NamespaceState.DeclaredButNotWrittenOut))
1368
_xmlEncoder.Write(
_stack
[_top].defaultNs);
1370
_stack
[_top].defaultNsState = NamespaceState.DeclaredAndWrittenOut;
1398
else if (!
_stack
[_top].mixed)
1420
switch (
_stack
[_top].defaultNsState)
1430
_stack
[_top].defaultNs = ns;
1436
_stack
[_top].defaultNsState = (declared ? NamespaceState.DeclaredAndWrittenOut : NamespaceState.DeclaredButNotWrittenOut);
1459
if (existingNsIndex != -1 && existingNsIndex >
_stack
[_top].prevNsTop)
1526
int temp =
_stack
[_top].prefixCount++ + 1;
1574
if (nsIndex >
_stack
[_top].prevNsTop)
1582
for (int i = _nsTop; i >
_stack
[_top].prevNsTop; i--)
1686
_stack
[_top].xmlLang = value;
1693
_stack
[_top].xmlSpace = XmlSpace.Default;
1697
_stack
[_top].xmlSpace = XmlSpace.Preserve;
1732
if (_top ==
_stack
.Length - 1)
1734
TagInfo[] na = new TagInfo[
_stack
.Length + 10];
1735
if (_top > 0) Array.Copy(
_stack
, na, _top + 1);
1740
_stack
[_top].Init(_nsTop);