Lines Matching defs:NameResolver
78 type NameResolver struct { struct
79 rootNamespace *Namespace
82 nextNamespaceId int32
85 sortedNamespaces sortedNamespaces
88 namespacesByDir sync.Map // if generics were supported, this would be sync.Map[string]*Namespace
91 namespaceExportFilter func(*Namespace) bool
126 func (r *NameResolver) newNamespace(path string) *Namespace {
134 func (r *NameResolver) addNewNamespaceForModule(module *NamespaceModule, path string) error {
148 func (r *NameResolver) addNamespace(namespace *Namespace) (err error) {
166 func (r *NameResolver) namespaceAt(path string) (namespace *Namespace, found bool) {
175 func (r *NameResolver) findNamespace(path string) (namespace *Namespace) {
195 …oup blueprint.ModuleGroup, module blueprint.Module) (namespace blueprint.Namespace, errs []error) {
228 …wSkippedModule(ctx blueprint.NamespaceContext, name string, skipInfo blueprint.SkippedModuleInfo) {
232 func (r *NameResolver) AllModules() []blueprint.ModuleGroup {
248 …me string, namespace blueprint.Namespace) (skipInfos []blueprint.SkippedModuleInfo, skipped bool) {
254 …Resolver) parseFullyQualifiedName(name string) (namespaceName string, moduleName string, ok bool) {
267 …r) getNamespacesToSearchForModule(sourceNamespace blueprint.Namespace) (searchOrder []*Namespace) {
277 …uleFromName(name string, namespace blueprint.Namespace) (group blueprint.ModuleGroup, found bool) {
298 …c (r *NameResolver) Rename(oldName string, newName string, namespace blueprint.Namespace) []error {
303 func (r *NameResolver) FindNamespaceImports(namespace *Namespace) (err error) {
320 func (r *NameResolver) chooseId(namespace *Namespace) {
328 …pender string, dependerNamespace blueprint.Namespace, depName string, guess []string) (err error) {
374 func (r *NameResolver) GetNamespace(ctx blueprint.NamespaceContext) blueprint.Namespace {
378 func (r *NameResolver) findNamespaceFromCtx(ctx blueprint.NamespaceContext) *Namespace {
382 func (r *NameResolver) UniqueName(ctx blueprint.NamespaceContext, name string) (unique string) {