LITERAL_RECEIVER_TYPES (tree-sitter.ts:373-388).
(kind: &str)
| 52 | |
| 53 | /// LITERAL_RECEIVER_TYPES (tree-sitter.ts:373-388). |
| 54 | fn is_literal_receiver(kind: &str) -> bool { |
| 55 | matches!( |
| 56 | kind, |
| 57 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 58 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 59 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 60 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 61 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 62 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 63 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 64 | | "null_literal" | "undefined" |
| 65 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 66 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 67 | ) |
| 68 | } |
| 69 | |
| 70 | /// BUILTIN_TYPES (tree-sitter.ts:5768-5782) — the shared cross-language table. |
| 71 | fn is_builtin_type(name: &str) -> bool { |