LeafNode

public protocol LeafNode: Node

Represents a node that cannot have children.

  • children Default implementation

    A leaf node does not have children. The value of this property is always an empty array.

    Default Implementation

    A leaf node does not have children. The value of this property is always an empty array.

    Declaration

    Swift

    var children: [Node]
  • normalize() Extension method

    A leaf node does not have children. The value of this property is always an empty array.

    Declaration

    Swift

    public final mutating func normalize()