Tree Sitter: Add code for working with language names.

Review Request #14515 — Created July 26, 2025 and updated

Information

Review Board
master

Reviewers

This change adds the reviewboard.treesitter.language module, which has
a forwarding import for the SupportedLanguage type, a
SUPPORTED_LANGUAGES set that reflects what's in SupportedLanguage,
and three methods that are used for detecting tree sitter language names
for various situations.

Ran unit tests.

Summary ID
Tree Sitter: Add code for working with language names.
This change adds the `reviewboard.treesitter.language` module, which has a forwarding import for the `SupportedLanguage` type, a `SUPPORTED_LANGUAGES` set that reflects what's in `SupportedLanguage`, and three methods that are used for detecting tree sitter language names for various situations. Testing Done: Ran unit tests.
c45204ae63a1c44196f968e0655c7f87dfb864ae
david
Review request changed
Change Summary:

Pass tuples for pytest parametrize arg names.

Commits:
Summary ID
Tree Sitter: Add code for working with language names.
This change adds the `reviewboard.treesitter.language` module, which has a forwarding import for the `SupportedLanguage` type, a `SUPPORTED_LANGUAGES` set that reflects what's in `SupportedLanguage`, and three methods that are used for detecting tree sitter language names for various situations. Testing Done: Ran unit tests.
e8aeb00f28e223f5be8bb5be64393f9bc9fe16ff
Tree Sitter: Add code for working with language names.
This change adds the `reviewboard.treesitter.language` module, which has a forwarding import for the `SupportedLanguage` type, a `SUPPORTED_LANGUAGES` set that reflects what's in `SupportedLanguage`, and three methods that are used for detecting tree sitter language names for various situations. Testing Done: Ran unit tests.
c45204ae63a1c44196f968e0655c7f87dfb864ae

Checks run (2 succeeded)

flake8 passed.
JSHint passed.