Lines Matching defs:protoElement
23 auto *protoElement = protoAnno.add_elements();
24 AnnotationElement::Serialize(element, *protoElement);
31 for (const auto &protoElement : protoAnno.elements()) {
32 panda::pandasm::AnnotationElement &element = AnnotationElement::Deserialize(protoElement, allocator);
38 protoPanda::AnnotationElement &protoElement)
40 protoElement.set_name(element.GetName());
42 protoElement.set_valuetype(protoPanda::AnnotationElement_ValueType::AnnotationElement_ValueType_ARRAY);
43 auto *protoArray = protoElement.mutable_array();
46 protoElement.set_valuetype(protoPanda::AnnotationElement_ValueType::AnnotationElement_ValueType_SCALAR);
47 auto *protoScalar = protoElement.mutable_scalar();
52 panda::pandasm::AnnotationElement &AnnotationElement::Deserialize(const protoPanda::AnnotationElement &protoElement,
55 if (protoElement.valuetype() == protoPanda::AnnotationElement_ValueType::AnnotationElement_ValueType_ARRAY) {
56 panda::pandasm::ArrayValue &array = ArrayValue::Deserialize(protoElement.array(), allocator);
57 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(),
62 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoElement.scalar(), allocator);
63 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(),