def arrow

bolt@1.27.0.0 · src/syntax/tree.bend:308

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

308# does the chain after an `@` bind a name, `@x:` or with a quantity mark
309# `@+x:`, as a dependent arrow does, rather than name an attribute (`@unsafe`)?
310def arrow(rest: Node) -> Bool:
311  match rest:
312    case NCons{Leaf{Lex.Tok{Lex.TOp{}, _t, _l, _c}}, more}:
313      arrow.named(more)
314    case other:
315      arrow.named(other)

Uses (5)

Used by (1)