Lines Matching refs:namespace
37 // The Namespace interface is just a marker interface for usage by the NameInterface,
38 // to allow a NameInterface to specify that a certain parameter should be a Namespace.
42 type Namespace interface {
43 namespace(Namespace)
48 func (m *NamespaceMarker) namespace(Namespace) {
55 NewModule(ctx NamespaceContext, group ModuleGroup, module Module) (namespace Namespace, err []error)
58 ModuleFromName(moduleName string, namespace Namespace) (group ModuleGroup, found bool)
62 MissingDependencyError(depender string, dependerNamespace Namespace, depName string) (err error)
65 Rename(oldName string, newName string, namespace Namespace) []error
70 // gets the namespace for a given path
71 GetNamespace(ctx NamespaceContext) (namespace Namespace)
73 // returns a deterministic, unique, arbitrary string for the given name in the given namespace
78 // to choose the namespace for any given module
106 func (s *SimpleNameInterface) NewModule(ctx NamespaceContext, group ModuleGroup, module Module) (namespace Namespace, err []error) {
121 func (s *SimpleNameInterface) ModuleFromName(moduleName string, namespace Namespace) (group ModuleGroup, found bool) {
126 func (s *SimpleNameInterface) Rename(oldName string, newName string, namespace Namespace) (errs []error) {
161 // Namespace. The SimpleNameInterface should catch this in NewModule, however, so this
168 func (s *SimpleNameInterface) MissingDependencyError(depender string, dependerNamespace Namespace, dependency string) (err error) {
172 func (s *SimpleNameInterface) GetNamespace(ctx NamespaceContext) Namespace {