MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / getAnnotationValue

Method getAnnotationValue

erpcgen/src/SymbolScanner.cpp:1696–1710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1694}
1695
1696Value *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
1712Annotation::program_lang_t SymbolScanner::getAnnotationLang(AstNode *annotation)
1713{

Callers

nothing calls this directly

Calls 4

getChildMethod · 0.80
getTokenNameMethod · 0.80
getTokenMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected