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

Method handleInterface

erpcgen/src/SymbolScanner.cpp:1044–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044AstNode *SymbolScanner::handleInterface(AstNode *node, top_down)
1045{
1046 AstNode *ident = (*node)[0];
1047 const Token &tok = ident->getToken();
1048 const string &name = tok.getStringValue();
1049 Log::debug("interface: %s\n", name.c_str());
1050
1051 Interface *iface = new Interface(tok);
1052 iface->getScope().setParent(m_globals);
1053 m_currentInterface = iface;
1054 addGlobalSymbol(iface);
1055
1056 // Get comment if exist.
1057 addDoxygenComments(iface, node->getChild(3), node->getChild(4));
1058
1059 return nullptr;
1060}
1061
1062AstNode *SymbolScanner::handleInterface(AstNode *node, bottom_up)
1063{

Callers

nothing calls this directly

Calls 12

syntax_errorClass · 0.85
format_stringFunction · 0.85
getTokenMethod · 0.80
getChildMethod · 0.80
getSymbolsOfTypeMethod · 0.80
getTrueDataTypeMethod · 0.80
isFunctionMethod · 0.80
setParentMethod · 0.45
getDataTypeMethod · 0.45
getNameMethod · 0.45
getInterfaceMethod · 0.45
setDataTypeMethod · 0.45

Tested by

no test coverage detected