请问一下GitHub上的代码展示区域,右侧有代码的方法和属性和类(任何语言都可以提取出)的罗列展示,这个是基于什么库做的呢?-灵析社区

正确计算方式

请问一下GitHub上的代码展示区域,右侧有代码的方法和属性和类(任何语言都可以提取出)的罗列展示: 请问一下,这个是基于什么库做的呢? ![311e8fd601b015fc163e9335b10c650e.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240922/dd93cb5be118ab344ca134fab57c664d.png)

阅读量:207

点赞量:0

问AI
这部分是有文档的 👉 "Navigating code on GitHub - GitHub Docs" (https://link.segmentfault.com/?enc=B%2FO6%2BH9aAC9OnnjfobrWEA%3D%3D.Uf4XPzKZXj4xaOJK9pg55ujttVbfWJJofDBMIOIzjxxAeSe8udIoylkfIaSsEZ2riUX62MvtK3TUTZKpjM05JbMtFl9tfDmGLqXqyXPMErFgD99eSnpXShCzZVq34%2BUab6%2BLcONN9Ea9pZ%2BdVyRaIg%3D%3D) * "tree-sitter/tree-sitter: An incremental parsing system for programming tools" (https://link.segmentfault.com/?enc=AbiX1BHE9%2BvQBHeiqbf4%2BQ%3D%3D.g%2Bl1C%2FpVgZYsUWCWoBaG1nU89iMjhQ%2F6e9UkRbnr8e97Z28BWeZc2FARrjTxP0mx) * "github/stack-graphs: Rust implementation of stack graphs" (https://link.segmentfault.com/?enc=PRP%2BTVDWksDBnAfm1BWpWw%3D%3D.LBoLdjwxmpwaBtF9kQ2b3P4JV1giITnr9J%2BObKUu1HitSrX%2BT1%2Fyrw2cx9iKqw1x) *** «About navigating code on GitHub Code navigation helps you to read, navigate, and understand code by showing and linking definitions of a named entity corresponding to a reference to that entity, as well as references corresponding to an entity's definition. ![code-navigation-popover](https://wmprod.oss-cn-> shanghai.aliyuncs.com/c/user/20240922/9155315980c5a9b3b63053bb05122dee.png) Code navigation uses the open source "tree-> sitter" (https://link.segmentfault.com/?enc=Js6NPEk1oV4nwQIbuoJlBw%3D%3D.BVsiMF%2Bk%2F4Qz6UrlUj%2B8TiIVeNc0r6MNaRVWPyoEtu1jcJ0freQMESO1InhpfvGh) library. The following languages and navigation strategies are supported.» *** «GitHub has developed two code navigation approaches based on the open source "tree-> sitter" (https://link.segmentfault.com/?enc=QB9%2FLFFkLFu%2F0FNNsexQvw%3D%3D.4rGN1vh8HjdqibRqY7NQOf0QB0jo9vNPCZPzUl35%2FPrvNOZN61MEnEs7P1a%2Bjwu3) and "stack-> graphs" (https://link.segmentfault.com/?enc=mhPaXjZz3XI1nvvNC4lvYg%3D%3D.1LSAFbxlzRc9TCQqxz8w%2BuVbgFTtvNqXKtot5rWZhmiMai92qz65QZokSpp34tN3) library: Search-based - searches all definitions and references across a repository to find entities with a given name* Precise - resolves definitions and references based on the set of classes, functions, and imported definitions at a given point in your code * To learn more about these approaches, see ""Precise and search-based navigation" (https://link.segmentfault.com/?enc=fwSKjk%2FzqI%2F8bioTryk%2Fvw%3D%3D.54kezYwbeIw1C%2FDYLBhXbzBz%2FEYNgiVJS19CdbgFYYtJLVXUHu29LXuNAxA0qxK8FbbBXs9qvM6rjUbtJPIQhPnDdaAwVDE%2FNfh7t2u8%2FRpy%2BQZZr2bDdXLpmknL%2FGFQSGCn%2BT1qBc3eNYb723OKom%2BY%2FRr8IBh2LtOCJFVvwJjs6hyO1e%2FVXiRmpG9WqDli)."»