Block

struct Block

An executable block with optional leading parameters and ordered items.

Parameters model trailing closures and loop binders. copied marks a desugaring duplicate that intentionally carries no independent node metadata.

Properties

let params: [Parameter]

Trailing-closure or loop parameters declared before in.

let body: [Item]

Declarations and statements in evaluation order.

let start: Int

The inclusive starting byte offset in the source.

let end: Int

The exclusive ending byte offset in the source.

let copied: Bool

A desugaring copy (the reference freshens node ids when a multi-clause if duplicates a block): carries no node meta.