docs: ResolveContext restrict(Path restrictTo) {
          if (restrictTo == restrictToChild)
              return this;
          else
              return new ResolveContext(memos, options, restrictTo, resolveStack, cycleMarkers);
      }