def Name.namespace
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport 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, ':')