def note_some

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:628

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

628# the note when the right-hand side is a call
629def note_some(+field: Bool, +nm: String, mm: Maybe<&2, Lex.Tok>) -> Maybe<&2, Note>:
630  match mm:
631    case Some{Lex.Tok{k, t, l, c}}:
632      Some{Note{l, c, note_how(field, nm)}}
633    case None{}:
634      None{}

Uses (6)

Used by (1)