MCPcopy Create free account
hub / github.com/aws/constructs / visit

Method visit

src/construct.ts:228–240  ·  view source on GitHub ↗
(c: IConstruct)

Source from the content-addressed store, hash-verified

226 return ret;
227
228 function visit(c: IConstruct) {
229 if (order === ConstructOrder.PREORDER) {
230 ret.push(c);
231 }
232
233 for (const child of c.node.children) {
234 visit(child);
235 }
236
237 if (order === ConstructOrder.POSTORDER) {
238 ret.push(c);
239 }
240 }
241 }
242
243 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected