def Name.namespace

bend-lint-api@0.2.0.0 · linter/lint.bend:252

import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import Base
import bend-lint-api@0.2.0.0/shared/strings.bend as Strings

252# The namespace of a global name: what comes before its first ":", or "" for Base and the checked file's own names.
253def Name.namespace(name: String) -> String:
254  Strings.before(name, ':')

Uses (3)

Used by (2)