LITERAL_RECEIVER_TYPES (tree-sitter.ts) — full set; membership is what the TS code tests even though only a few kinds occur in the c/cpp grammars.
(kind: &str)
| 207 | /// LITERAL_RECEIVER_TYPES (tree-sitter.ts) — full set; membership is what the |
| 208 | /// TS code tests even though only a few kinds occur in the c/cpp grammars. |
| 209 | fn is_literal_receiver(kind: &str) -> bool { |
| 210 | matches!( |
| 211 | kind, |
| 212 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 213 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 214 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 215 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 216 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 217 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 218 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 219 | | "null_literal" | "undefined" |
| 220 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 221 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 222 | ) |
| 223 | } |
| 224 | |
| 225 | /// stripCppTemplateArgs (languages/c-cpp.ts): depth-counted removal of every |
| 226 | /// balanced `<…>` group; `<` and `>` never reach the output. |