3 writes to _top
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (3)
265
_top
= 0;// 0 is an empty sentanial element
1336
_top
--;
1739
_top
++; // Move up stack
48 references to _top
dotnet-svcutil-lib (48)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (48)
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)
1078
for (int i =
_top
; i > 0; i--)
1093
for (int i =
_top
; i > 0; i--)
1208
_stack[
_top
].mixed = true;
1234
if (s_stateTableDocument == _stateTable &&
_top
== 1)
1279
_stack[
_top
].mixed = true;
1296
while (
_top
> 0)
1306
if (
_top
<= 0)
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;
1394
if (
_top
== 0)
1398
else if (!_stack[
_top
].mixed)
1401
int i = beforeEndElement ?
_top
- 1 :
_top
;
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;
1527
return "d" +
_top
.ToString("d", CultureInfo.InvariantCulture)
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)
1735
if (
_top
> 0) Array.Copy(_stack, na,
_top
+ 1);
1740
_stack[
_top
].Init(_nsTop);