/// <summary>
 /// Called after this object finishes visiting a <see cref="YamlDocument"/>.
 /// </summary>
 /// <param name="document">
 /// The <see cref="YamlDocument"/> that has been visited.
 /// </param>
 protected virtual void Visited(YamlDocument document)
 {
     // Do nothing.
 }
 void IYamlVisitor.Visit(YamlDocument document)
 {
     Visit(document);
     VisitChildren(document);
     Visited(document);
 }