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

Method visit

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

Source from the content-addressed store, hash-verified

213 return ret;
214
215 function visit(c: IConstruct) {
216 if (order === ConstructOrder.PREORDER) {
217 ret.push(c);
218 }
219
220 for (const child of c.node.children) {
221 visit(child);
222 }
223
224 if (order === ConstructOrder.POSTORDER) {
225 ret.push(c);
226 }
227 }
228 }
229
230 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected