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

Method walk

erpcgen/src/AstWalker.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void AstWalker::walk(AstNode *node)
31{
32 if (!node)
33 {
34 return;
35 }
36
37 // Process the node top-down.
38 dispatch<top_down>(node);
39
40 for (auto i : *node)
41 {
42 walk(i);
43 }
44
45 // Process this node bottom-up.
46 dispatch<bottom_up>(node);
47}
48
49template <typename D>
50void AstWalker::dispatch(AstNode *node)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected