2 writes to _nsdecls
System.Private.Xml (2)
System\Xml\XmlNamespacemanager.cs (2)
63
_nsdecls
= new NamespaceDeclaration[8];
162
_nsdecls
= newNsdecls;
49 references to _nsdecls
System.Private.Xml (49)
System\Xml\XmlNamespacemanager.cs (49)
65
_nsdecls
[0].Set(emptyStr, emptyStr, -1, -1);
66
_nsdecls
[1].Set(_xmlNs, nameTable.Add(XmlReservedNs.NsXmlNs), -1, -1);
67
_nsdecls
[2].Set(_xml, nameTable.Add(XmlReservedNs.NsXml), 0, -1);
102
Debug.Assert(
_nsdecls
!= null);
104
while (
_nsdecls
[decl].scopeId == _scopeId)
109
_hashTable[
_nsdecls
[decl].prefix] =
_nsdecls
[decl].previousNsIndex;
127
Debug.Assert(
_nsdecls
!= null);
144
if (
_nsdecls
[declIndex].scopeId == _scopeId)
147
_nsdecls
[declIndex].uri = uri;
158
if (_lastDecl ==
_nsdecls
.Length - 1)
160
NamespaceDeclaration[] newNsdecls = new NamespaceDeclaration[
_nsdecls
.Length * 2];
161
Array.Copy(
_nsdecls
, newNsdecls,
_nsdecls
.Length);
165
_nsdecls
[++_lastDecl].Set(prefix, uri, _scopeId, previousDeclIndex);
181
_hashTable[
_nsdecls
[i].prefix] = i;
193
Debug.Assert(
_nsdecls
!= null);
198
if (string.Equals(
_nsdecls
[declIndex].uri, uri) &&
_nsdecls
[declIndex].scopeId == _scopeId)
200
_nsdecls
[declIndex].uri = null;
202
declIndex =
_nsdecls
[declIndex].previousNsIndex;
208
Debug.Assert(
_nsdecls
!= null);
213
if (
_nsdecls
[thisDecl].uri != null)
215
prefixes[
_nsdecls
[thisDecl].prefix] =
_nsdecls
[thisDecl].prefix;
226
Debug.Assert(
_nsdecls
!= null);
239
while (
_nsdecls
[i].scopeId == _scopeId)
251
string? prefix =
_nsdecls
[i].prefix;
252
string? uri =
_nsdecls
[i].uri;
274
Debug.Assert(
_nsdecls
!= null);
276
return (declIndex == -1) ? null :
_nsdecls
[declIndex].uri;
281
Debug.Assert(
_nsdecls
!= null);
289
while (declIndex != -1 &&
_nsdecls
[declIndex].uri == null)
291
declIndex =
_nsdecls
[declIndex].previousNsIndex;
302
if ((object)
_nsdecls
[thisDecl].prefix == (object)prefix &&
_nsdecls
[thisDecl].uri != null)
311
if (string.Equals(
_nsdecls
[thisDecl].prefix, prefix) &&
_nsdecls
[thisDecl].uri != null)
322
Debug.Assert(
_nsdecls
!= null);
327
if (string.Equals(
_nsdecls
[thisDecl].uri, uri))
329
string prefix =
_nsdecls
[thisDecl].prefix;
341
Debug.Assert(
_nsdecls
!= null);
344
for (int thisDecl = _lastDecl;
_nsdecls
[thisDecl].scopeId == _scopeId; thisDecl--)
346
if (string.Equals(
_nsdecls
[thisDecl].prefix, prefix) &&
_nsdecls
[thisDecl].uri != null)
348
if (prefix.Length > 0 ||
_nsdecls
[thisDecl].uri!.Length > 0)
367
Debug.Assert(
_nsdecls
!= null);
368
prefix =
_nsdecls
[idx].prefix;
369
uri =
_nsdecls
[idx].uri;