Google introduced a system for searching and navigating the code of its open projects

Google company presented new search service cs.opensource.google, designed to search by code in the git repositories of open projects, the development of which is carried out with the participation of Google. Indexed projects include Angular, Bazel, Dart, ExoPlayer, Firebase SDK, Flutter, Go, gVisor, Kythe, Nomulus, Outline, and Tensorflow. Similar search engines were previously launched to search by code Chromium ΠΈ Android.

Search queries can use regular expressions and qualifiers (for example, you can specify that you need to find a function whose name matches the specified mask, and also determine in the code in which programming language the search should be performed). To build a link graph in the project and cross-link navigation, the toolkit is used Kythe. Which search engine is involved is not specified, but Google is developing two open source code search projects βˆ’ searches ΠΈ codesearch.

The search takes into account the various classes of elements found in the code, and the result is displayed in a visual form with syntax highlighting, the ability to cross-reference navigation and view the history of changes. For example, you can click on the name of a function in the code and navigate to where it is defined or see where else it is called. You can also switch between different branches and evaluate changes between them.

Source: opennet.ru

Add a comment