当前位置: 首页 > 知识库问答 >
问题:

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

白泽语
2024-07-06

请问一下GitHub上的代码展示区域,右侧有代码的方法和属性和类(任何语言都可以提取出)的罗列展示:

请问一下,这个是基于什么库做的呢?
311e8fd601b015fc163e9335b10c650e.png

共有1个答案

裴硕
2024-07-06

这部分是有文档的 �� Navigating code on GitHub - GitHub Docs

  • tree-sitter/tree-sitter: An incremental parsing system for programming tools
  • github/stack-graphs: Rust implementation of stack graphs

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
Code navigation uses the open source tree-sitter library. The following languages and navigation strategies are supported.


GitHub has developed two code navigation approaches based on the open source tree-sitter and stack-graphs 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://geek-docs.com/php/php_function_reference/1010102_php_... 他用的代码展示插件叫什么名字,知道的大神请告知下,小弟跪谢!!!

  • umi4 在用 vite 启动的时候,我自己写的 npm 包会报错, 但用 webpack 启动则不会有这个问题 在仓库提了 issues 后,官方的回答是下图 我用 rollup 和 father 打包过,都有这个问题, 【互操作的胶水和提示代码】是什么,该怎么产出呢? 求解

  • 示例的Python源代码或者交互界面都可以使用标准reST模块实现.在正常段落后面跟着 :: 开始,再加上适当缩进. 交互界面需包含提示及Python代码的输出. 交互界面没有特别的标记. 在最后一行输入或输出之后,不应出现空的提示; 这是一个什么都不做的例子: >>> 1 + 1 2 >>> 语法高亮显示由 Pygments (如果安装) 优雅的显示: 每个源文件都有高亮语言”highlight

  • 使用 Dreamweaver 的代码提示和代码完成功能,最大限度缩短编码时间。 Dreamweaver 的智能代码完成或代码提示功能通过减少拼写和其他常见错误,使您可以快速插入和编辑代码。 您也可以使用此功能查看: 标签的可用属性, 函数的可用参数,或 对象的可用方法。 受支持的语言和技术 Dreamweaver 支持下列语言和技术的代码提示: HTML CSS JavaScript  PHP 阅

  • 如果(新名称) 我可以理解在vanillaJS中检查newName是否真实,但在Typescript中,这是为了什么?Typescript已经保证newName是string,并且它具有。长度属性。 完整代码在这里:https://www.typescriptlang.org/docs/handbook/classes.html

  • 本文向大家介绍请分析一下同步方法和同步代码块的区别是什么?相关面试题,主要包含被问及请分析一下同步方法和同步代码块的区别是什么?时的应答技巧和注意事项,需要的朋友参考一下 考察点:JAVA代码块同步 参考回答: 区别:同步方法默认用this或者当前类class对象作为锁; 同步代码块可以选择以什么来加锁,比同步方法要更细颗粒度,我们可以选择只同步会发生同步问题的部分代码而不是整个方法。  

  • 我从Horstmann book(Volume2)中复制了代码示例,不明白为什么它不能工作。你能帮我吗?我试图删除IOException,但它引发了另一个问题 控制台日志

  • 本文向大家介绍iOS中Cell的Section展开和收起的示例代码,包括了iOS中Cell的Section展开和收起的示例代码的使用技巧和注意事项,需要的朋友参考一下 整理文档,搜刮出一个iOS中Cell的Section展开和收起的示例代码,稍微整理精简一下做下分享。 首先,先上图,让大家看看效果   相信大家对于TableViewd数据的设置都熟悉,这方面就不多说的,重点的还是来看: 1.如何实