def opens_angle

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

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

161# `<` or `<&` right after a name opens type arguments
162def opens_angle(kk: Lex.TokKind, +tt: String, glued: Bool) -> Bool:
163  match kk:
164    case Lex.TOp{}:
165      Bool.and(glued, Bool.or(String.eq(tt, "<"), String.eq(tt, "<&")))
166    case other:
167      False{}

Uses (6)

Used by (1)