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

Method dispatch

erpcgen/src/AstNode.cpp:241–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void AstPrinter::dispatch(AstNode *node, int childIndex)
242{
243 // Print this node.
244 print(node, childIndex);
245
246 if (node)
247 {
248 // Push current depth.
249 m_depthStack.push(m_depth);
250 ++m_depth;
251
252 // Dispatch to children.
253 childIndex = 0;
254 for (auto i : *node)
255 {
256 dispatch(i, childIndex);
257 ++childIndex;
258 }
259
260 // Pop depth.
261 m_depth = m_depthStack.top();
262 m_depthStack.pop();
263 }
264}
265
266void AstPrinter::print(AstNode *node, int childIndex)
267{

Callers 1

parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected