def opens_angle
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport 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{}