merge method

SmithyAst merge(
  1. SmithyAst other
)

Implementation

SmithyAst merge(SmithyAst other) {
  return SmithyAst(
    (b) => b
      ..version = version
      ..metadata.addAll(metadata.toMap())
      ..metadata.addAll(other.metadata.toMap())
      ..shapes = ShapeMap(shapes)
      ..shapes!.addAll(other.shapes),
  );
}