2 writes to stack
System.Xml (2)
System\Xml\Core\XmlTextWriter.cs (2)
253
stack
= new TagInfo[10];
1451
stack
= na;
41 references to stack
System.Xml (41)
System\Xml\Core\XmlTextWriter.cs (41)
255
stack
[top].Init( -1 );
424
stack
[top].defaultNs =
stack
[top-1].defaultNs;
425
if (
stack
[top-1].defaultNsState != NamespaceState.Uninitialized)
426
stack
[top].defaultNsState = NamespaceState.NotDeclaredButInScope;
427
stack
[top].mixed =
stack
[top-1].mixed;
455
stack
[top].prefix = null;
457
stack
[top].prefix = prefix;
467
stack
[top].name = localName;
874
if (ns != null && ns.Length != 0 && ns !=
stack
[top].defaultNs) {
906
if (s == null && ns ==
stack
[top].defaultNs) {
916
XmlSpace xs =
stack
[i].xmlSpace;
928
String xlang =
stack
[i].xmlLang;
1021
stack
[top].mixed = true;
1079
stack
[top].mixed = true;
1112
if (this.namespaces &&
stack
[top].prefix != null) {
1113
textWriter.Write(
stack
[top].prefix);
1116
textWriter.Write(
stack
[top].name);
1121
int prevNsTop =
stack
[top].prevNsTop;
1136
for (int i = nsTop; i >
stack
[top].prevNsTop; i--) {
1148
if ((
stack
[top].defaultNs !=
stack
[top - 1].defaultNs) &&
1149
(
stack
[top].defaultNsState == NamespaceState.DeclaredButNotWrittenOut)) {
1153
xmlEncoder.Write(
stack
[top].defaultNs);
1155
stack
[top].defaultNsState = NamespaceState.DeclaredAndWrittenOut;
1178
else if (!
stack
[top].mixed) {
1195
switch (
stack
[top].defaultNsState) {
1204
stack
[top].defaultNs = ns;
1210
stack
[top].defaultNsState = (declared ? NamespaceState.DeclaredAndWrittenOut : NamespaceState.DeclaredButNotWrittenOut);
1227
if (existingNsIndex != -1 && existingNsIndex >
stack
[top].prevNsTop) {
1281
int temp =
stack
[top].prefixCount++ + 1;
1318
if ( nsIndex >
stack
[top].prevNsTop ) {
1324
for ( int i = nsTop; i >
stack
[top].prevNsTop; i-- ) {
1409
stack
[top].xmlLang = value;
1415
stack
[top].xmlSpace = XmlSpace.Default;
1418
stack
[top].xmlSpace = XmlSpace.Preserve;
1448
if (top ==
stack
.Length - 1) {
1449
TagInfo[] na = new TagInfo[
stack
.Length + 10];
1450
if (top > 0) Array.Copy(
stack
,na,top + 1);
1455
stack
[top].Init(nsTop);