def Draft.kind

bend-lint-rules@0.2.0.0 · lib/linter/directives.bend:332

import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives
import Base
import bend-lint-api@0.2.0.0/shared/names.bend as Names

332def Draft.kind(parts: List<&2, String>) -> Maybe<&2, Keyword>:
333  match parts:
334    case Con{a, Con{s, Nil{}}}:
335      do Maybe<&2, Keyword>:
336        action: Action <- Names.lookup(Action, a, Action.names())
337        scope: Scope <- Names.lookup(Scope, s, Scope.names())
338        return Keyword{action, scope}
339    case _:
340      None{}

Uses (11)

Used by (1)