Lines Matching refs:path
38 def add_path_resolver(cls, tag, path, kind=None):
40 # `new_path` is a pattern that is matched against the path from the
54 for element in path:
62 raise ResolverError("Invalid path element: %s" % element)
98 for path, kind in self.resolver_prefix_paths[-1]:
99 if self.check_resolver_prefix(depth, path, kind,
101 if len(path) > depth:
102 prefix_paths.append((path, kind))
104 exact_paths[kind] = self.yaml_path_resolvers[path, kind]
106 for path, kind in self.yaml_path_resolvers:
107 if not path:
108 exact_paths[kind] = self.yaml_path_resolvers[path, kind]
110 prefix_paths.append((path, kind))
120 def check_resolver_prefix(self, depth, path, kind,
122 node_check, index_check = path[depth-1]