terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ AddDefaultAttributeInternal()

XmlTextReaderImpl.NodeData System.Xml.XmlTextReaderImpl.AddDefaultAttributeInternal ( string localName,
string ns,
string prefix,
string value,
int lineNo,
int linePos,
int valueLineNo,
int valueLinePos,
bool isXmlAttribute )
inlineprivate

Definition at line 3511 of file XmlTextReaderImpl.cs.

3512 {
3513 int stringLength = prefix._stringLength;
3514 XmlTextReaderImpl.NodeData nodeData = this.AddAttribute(localName, prefix, prefix);
3515 if (ns != null)
3516 {
3517 nodeData.ns = ns;
3518 }
3519 nodeData.SetValue(value);
3520 int num = 1;
3521 nodeData.isEmptyOrDefault = num != 0;
3522 string prefix2 = nodeData.prefix;
3523 int num4;
3524 if (prefix2._stringLength != 0)
3525 {
3526 string xmlNs = this.XmlNs;
3527 bool flag = Ref.Equal(prefix2, xmlNs);
3528 this.OnNamespaceDecl(nodeData);
3529 if (this.attrNeedNamespaceLookup)
3530 {
3531 goto IL_00F2;
3532 }
3533 int num2 = this.attrCount;
3534 string localName2 = nodeData.localName;
3535 bool flag2 = this.nodes.prefix.Equals(localName2);
3536 XmlNamespaceManager xmlNamespaceManager = this.namespaceManager;
3537 XmlTextReaderImpl.NodeData[] array = this.nodes;
3538 int num3 = this.index;
3539 num4 = this.attrCount;
3540 }
3541 string localName3 = nodeData.localName;
3542 string xmlNs2 = this.XmlNs;
3543 bool flag3 = Ref.Equal(localName3, xmlNs2);
3544 this.OnDefaultNamespaceDecl(nodeData);
3545 if (!this.attrNeedNamespaceLookup)
3546 {
3547 string prefix3 = this.nodes.prefix;
3548 if (num4 == 0)
3549 {
3550 string defaultNamespace = this.xmlContext.defaultNamespace;
3551 this.OnXmlReservedAttribute(nodeData);
3552 }
3553 }
3554 IL_00F2:
3555 int num5 = 1;
3557 return nodeData;
3558 }
class f__AnonymousType0<< Count > j__TPar
XmlTextReaderImpl.XmlContext xmlContext
XmlNamespaceManager namespaceManager
void OnNamespaceDecl(XmlTextReaderImpl.NodeData attr)
void OnDefaultNamespaceDecl(XmlTextReaderImpl.NodeData attr)
void OnXmlReservedAttribute(XmlTextReaderImpl.NodeData attr)
XmlTextReaderImpl.NodeData[] nodes
XmlTextReaderImpl.NodeData AddAttribute(int endNamePos, int colonPos)

References System.Xml.XmlTextReaderImpl.AddAttribute(), System.array, System.Xml.XmlTextReaderImpl.attrCount, System.Xml.XmlTextReaderImpl.attrNeedNamespaceLookup, System.Xml.Ref.Equal(), System.Xml.XmlTextReaderImpl.index, j__TPar, System.Xml.XmlTextReaderImpl.NodeData.localName, System.Xml.XmlTextReaderImpl.namespaceManager, System.Xml.XmlTextReaderImpl.nodes, System.Xml.XmlTextReaderImpl.OnDefaultNamespaceDecl(), System.Xml.XmlTextReaderImpl.OnNamespaceDecl(), System.Xml.XmlTextReaderImpl.OnXmlReservedAttribute(), System.value, System.Xml.XmlTextReaderImpl.xmlContext, and System.Xml.XmlTextReaderImpl.XmlNs.