Lines Matching refs:element
22 for (const auto &element : anno.GetElements()) {
24 AnnotationElement::Serialize(element, *protoElement);
32 panda::pandasm::AnnotationElement &element = AnnotationElement::Deserialize(protoElement, allocator);
33 anno.AddElement(std::move(element));
37 void AnnotationElement::Serialize(const panda::pandasm::AnnotationElement &element,
40 protoElement.set_name(element.GetName());
41 if (element.GetValue()->IsArray()) {
44 ArrayValue::Serialize(*(element.GetValue()->GetAsArray()), *protoArray);
48 ScalarValue::Serialize(*(element.GetValue()->GetAsScalar()), *protoScalar);
57 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(),
59 CHECK_NOT_NULL(element);
60 return *element;
63 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(),
65 CHECK_NOT_NULL(element);
66 return *element;