| 383 | } |
| 384 | |
| 385 | bool DataRepresentationAnnotation::node_value_exists( |
| 386 | AST_Decl* node, DataRepresentation& value) const |
| 387 | { |
| 388 | value = DataRepresentation(); |
| 389 | bool found = false; |
| 390 | if (node) { |
| 391 | for (AST_Annotation_Appls::iterator i = node->annotations().begin(); |
| 392 | i != node->annotations().end(); ++i) { |
| 393 | AST_Annotation_Appl* appl = i->get(); |
| 394 | if (appl && appl->annotation_decl() == declaration()) { |
| 395 | found = true; |
| 396 | value.add(value_from_appl(appl)); |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | return found; |
| 401 | } |
| 402 | |
| 403 | DataRepresentation DataRepresentationAnnotation::value_from_appl(AST_Annotation_Appl* appl) const |
| 404 | { |
no test coverage detected