• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{%- for field in union.fields %}
2{%-   set kind = field.kind %}
3{%-   set name = field.name %}
4
5{%-   if kind|is_object_kind %}
6inline void {{union.name}}DataView::Get{{name|under_to_camel}}DataView(
7    {{kind|cpp_data_view_type}}* output) {
8  DCHECK(is_{{name}}());
9  *output = {{kind|cpp_data_view_type}}(data_->data.f_{{name}}.Get(), context_);
10}
11{%-   endif %}
12{%- endfor %}
13