Lines Matching refs:el
111 std::unique_ptr<Element> el; in StartElementHandler() local
113 el = std::move(stack->pending_element); in StartElementHandler()
115 el = util::make_unique<Element>(); in StartElementHandler()
118 el->line_number = XML_GetCurrentLineNumber(parser); in StartElementHandler()
119 el->column_number = XML_GetCurrentColumnNumber(parser); in StartElementHandler()
120 el->comment = std::move(stack->pending_comment); in StartElementHandler()
122 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
128 el->attributes.push_back(std::move(attribute)); in StartElementHandler()
132 std::sort(el->attributes.begin(), el->attributes.end(), less_attribute); in StartElementHandler()
135 Element* this_el = el.get(); in StartElementHandler()
137 stack->node_stack.top()->AppendChild(std::move(el)); in StartElementHandler()
139 stack->root = std::move(el); in StartElementHandler()
223 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) { in CopyAttributes() argument
226 el->attributes.reserve(attr_count); in CopyAttributes()
262 el->attributes.push_back(std::move(attr)); in CopyAttributes()
315 std::unique_ptr<Element> el; in Inflate() local
317 el = std::move(pending_element); in Inflate()
319 el = util::make_unique<Element>(); in Inflate()
321 el->line_number = tree.getLineNumber(); in Inflate()
326 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
331 el->name = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
334 Element* this_el = el.get(); in Inflate()
335 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate()
338 node_stack.top()->AppendChild(std::move(el)); in Inflate()
340 xml_resource->root = std::move(el); in Inflate()
468 if (const Element* el = NodeCast<Element>(child.get())) { in FindChildWithAttribute() local
469 if (ns == el->namespace_uri && name == el->name) { in FindChildWithAttribute()
471 return el; in FindChildWithAttribute()
474 const Attribute* attr = el->FindAttribute(attr_ns, attr_name); in FindChildWithAttribute()
476 return el; in FindChildWithAttribute()
495 auto el = util::make_unique<Element>(); in Clone() local
496 el->namespace_decls = namespace_decls; in Clone()
497 el->comment = comment; in Clone()
498 el->line_number = line_number; in Clone()
499 el->column_number = column_number; in Clone()
500 el->name = name; in Clone()
501 el->namespace_uri = namespace_uri; in Clone()
502 el->attributes.reserve(attributes.size()); in Clone()
503 el_cloner(*this, el.get()); in Clone()
504 el->children.reserve(children.size()); in Clone()
506 el->AppendChild(child->Clone(el_cloner)); in Clone()
508 return std::move(el); in Clone()
544 void PackageAwareVisitor::BeforeVisitElement(Element* el) { in BeforeVisitElement() argument
546 for (const NamespaceDecl& decl : el->namespace_decls) { in BeforeVisitElement()
554 void PackageAwareVisitor::AfterVisitElement(Element* el) { in AfterVisitElement() argument