Group

struct Group

A balanced token-tree group with explicit opening and closing tokens.

delimiter agrees with both token kinds, and children excludes the outer pair. Source ranges remain on the original tokens rather than the group.

Properties

let delimiter: Delimiter

The kind shared by the opening and closing delimiters.

let open: Token

The opening delimiter token.

let close: Token

The closing delimiter token.

let children: [TokenTree]

The token trees nested inside the group.