bblfsh / sdk

Babelfish driver SDK
GNU General Public License v3.0
23 stars 27 forks source link

Implement the "all import paths" helper #407

Closed dennwc closed 5 years ago

dennwc commented 5 years ago

As discussed in https://github.com/src-d/ml-backlog/issues/65 (non-public link), we should implement a helper for getting a list of import paths in the UAST.

PR implements a uast.AllImportPaths function that does all required checks and extracts a single deduplicated and sorted list of import paths.

The plan is to expose this functionality in libuast and then the clients.

Signed-off-by: Denys Smirnov denys@sourced.tech


This change is Reviewable