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); 102Debug.Assert(_nsdecls != null); 104while (_nsdecls[decl].scopeId == _scopeId) 109_hashTable[_nsdecls[decl].prefix] = _nsdecls[decl].previousNsIndex; 127Debug.Assert(_nsdecls != null); 144if (_nsdecls[declIndex].scopeId == _scopeId) 147_nsdecls[declIndex].uri = uri; 158if (_lastDecl == _nsdecls.Length - 1) 160NamespaceDeclaration[] newNsdecls = new NamespaceDeclaration[_nsdecls.Length * 2]; 161Array.Copy(_nsdecls, newNsdecls, _nsdecls.Length); 165_nsdecls[++_lastDecl].Set(prefix, uri, _scopeId, previousDeclIndex); 181_hashTable[_nsdecls[i].prefix] = i; 193Debug.Assert(_nsdecls != null); 198if (string.Equals(_nsdecls[declIndex].uri, uri) && _nsdecls[declIndex].scopeId == _scopeId) 200_nsdecls[declIndex].uri = null; 202declIndex = _nsdecls[declIndex].previousNsIndex; 208Debug.Assert(_nsdecls != null); 213if (_nsdecls[thisDecl].uri != null) 215prefixes[_nsdecls[thisDecl].prefix] = _nsdecls[thisDecl].prefix; 226Debug.Assert(_nsdecls != null); 239while (_nsdecls[i].scopeId == _scopeId) 251string? prefix = _nsdecls[i].prefix; 252string? uri = _nsdecls[i].uri; 274Debug.Assert(_nsdecls != null); 276return (declIndex == -1) ? null : _nsdecls[declIndex].uri; 281Debug.Assert(_nsdecls != null); 289while (declIndex != -1 && _nsdecls[declIndex].uri == null) 291declIndex = _nsdecls[declIndex].previousNsIndex; 302if ((object)_nsdecls[thisDecl].prefix == (object)prefix && _nsdecls[thisDecl].uri != null) 311if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 322Debug.Assert(_nsdecls != null); 327if (string.Equals(_nsdecls[thisDecl].uri, uri)) 329string prefix = _nsdecls[thisDecl].prefix; 341Debug.Assert(_nsdecls != null); 344for (int thisDecl = _lastDecl; _nsdecls[thisDecl].scopeId == _scopeId; thisDecl--) 346if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 348if (prefix.Length > 0 || _nsdecls[thisDecl].uri!.Length > 0) 367Debug.Assert(_nsdecls != null); 368prefix = _nsdecls[idx].prefix; 369uri = _nsdecls[idx].uri;