| 1479 | } |
| 1480 | |
| 1481 | fn is_literal_receiver(kind: &str) -> bool { |
| 1482 | matches!( |
| 1483 | kind, |
| 1484 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 1485 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 1486 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 1487 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 1488 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 1489 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 1490 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 1491 | | "null_literal" | "undefined" |
| 1492 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 1493 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 1494 | ) |
| 1495 | } |
| 1496 | |
| 1497 | /// BUILTIN_TYPES (shared table). |
| 1498 | fn is_builtin_type(name: &str) -> bool { |