pub unsafe extern "C" fn ts_parser_set_language(
self_: *mut TSParser,
language: *const TSLanguage,
) -> bool
Expand description
Set the language that the parser should use for parsing.
Returns a boolean indicating whether or not the language was successfully
assigned. True means assignment succeeded. False means there was a version
mismatch: the language was generated with an incompatible version of the
Tree-sitter CLI. Check the language’s version using ts_language_version
and compare it to this library’s TREE_SITTER_LANGUAGE_VERSION
and
TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION
constants.