acceptChild method

Implementation

MatcherGenerator acceptChild(MatcherVisitor<MatcherGenerator> visitor,
    Matcher matcher, MatcherGenerator parent) {
  final generator = matcher.accept(visitor);
  generator.allocator = parent.allocator;
  return generator;
}