visitProg method
The default implementation returns the result of calling
visitChildren on ctx
.
Implementation
@override
IDLType<RuleContext> visitProg(ProgContext ctx) {
final imports = ctx.imps().map((e) => visit(e) as Import);
final defs = ctx.defs().map((e) => visit(e) as Def);
final actor = ctx.actor() == null ? null : visit(ctx.actor()!) as Actor;
return Prog(ctx, imports, defs, actor);
}