ParentNode

public protocol ParentNode: Node

Represents a node that can have children.

  • The children of this node.

    Declaration

    Swift

    var children: [Node]
  • append(child:) Extension method

    Appends the specified node to the end of the children array.

    Declaration

    Swift

    public final mutating func append(child: Node)

    Parameters

    child

    The node to append

  • normalize() Extension method

    Appends the specified node to the end of the children array.

    Declaration

    Swift

    public final mutating func normalize()