Description

TreePath is a structurally significant path descriptor for a def. For many languages, it may be identical or similar to DefKey.Path. However, it has the following constraints, which allow it to define a def tree.

A tree-path is a chain of '/'-delimited components. A component is either a def name or a ghost component. - A def name satifies the regex [^/-][^/]* - A ghost component satisfies the regex -[^/]* Any prefix of a tree-path that terminates in a def name must be a valid tree-path for some def. The following regex captures the children of a tree-path X: X(/-[^/]*)*(/[^/-][^/]*)

TreePath is referenced in 2 repositories

github.com/sourcegraph/srclib sourcegraph.com/sourcegraph/srclib-python