| 1694 | } |
| 1695 | |
| 1696 | Value *SymbolScanner::getAnnotationValue(AstNode *annotation) |
| 1697 | { |
| 1698 | if (AstNode *annotation_value = annotation->getChild(2)) |
| 1699 | { |
| 1700 | // Strip TOK_EXPR token |
| 1701 | if (0 == strcmp("TOK_EXPR", annotation_value->getToken().getTokenName())) |
| 1702 | { |
| 1703 | return annotation_value->getChild(0)->getToken().getValue(); |
| 1704 | } |
| 1705 | |
| 1706 | return annotation_value->getToken().getValue(); |
| 1707 | } |
| 1708 | |
| 1709 | return nullptr; |
| 1710 | } |
| 1711 | |
| 1712 | Annotation::program_lang_t SymbolScanner::getAnnotationLang(AstNode *annotation) |
| 1713 | { |
nothing calls this directly
no test coverage detected