LITERAL_RECEIVER_TYPES (shared table).
(kind: &str)
| 1739 | |
| 1740 | /// LITERAL_RECEIVER_TYPES (shared table). |
| 1741 | fn is_literal_receiver(kind: &str) -> bool { |
| 1742 | matches!( |
| 1743 | kind, |
| 1744 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 1745 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 1746 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 1747 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 1748 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 1749 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 1750 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 1751 | | "null_literal" | "undefined" |
| 1752 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 1753 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 1754 | ) |
| 1755 | } |
| 1756 | |
| 1757 | /// BUILTIN_TYPES (shared table — port the WHOLE set: a rust `String` |
| 1758 | /// type_identifier IS suppressed via the Scala row). |