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

Method visit

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

Source from the content-addressed store, hash-verified

200 return ret;
201
202 function visit(c: IConstruct) {
203 if (order === ConstructOrder.PREORDER) {
204 ret.push(c);
205 }
206
207 for (const child of c.node.children) {
208 visit(child);
209 }
210
211 if (order === ConstructOrder.POSTORDER) {
212 ret.push(c);
213 }
214 }
215 }
216
217 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected