CallArg

struct CallArg

A call argument with source label, ownership mode, and expression value.

Missing spans use -1 sentinels. bare_string records the paren-less leading string form separately because it changes trailing-block call parsing.

Properties

let label: String?

The source-level label.

let label_start: Int

The label token's span (the underscore for _:); -1 = positional (the reference then uses the argument's own span).

let label_end: Int

The exclusive ending byte offset of the label.

let mode: ArgMode?

The ownership or access mode, when explicitly written.

let mode_start: Int

The inclusive starting byte offset of the mode.

let mode_end: Int

The exclusive ending byte offset of the mode.

let bare_string: Bool

The paren-less leading string argument (expect "..." { }).

let value: Expr

The argument expression.

let start: Int

The inclusive starting byte offset in the source.

let end: Int

The exclusive ending byte offset in the source.