childCompoundWrite method

CompoundWrite childCompoundWrite(
  1. Path path
)

The part of this write below path, relative to it.

Implementation

CompoundWrite childCompoundWrite(Path path) {
  if (path.isEmpty) {
    return this;
  }
  final Node? shadowingNode = getCompleteNode(path);
  if (shadowingNode != null) {
    return CompoundWrite(ImmutableTree<Node>(shadowingNode));
  }
  return CompoundWrite(writeTree.subtree(path));
}