LITERAL_RECEIVER_TYPES membership (shared table; python names among them).
(kind: &str)
| 955 | |
| 956 | /// LITERAL_RECEIVER_TYPES membership (shared table; python names among them). |
| 957 | fn is_literal_receiver(kind: &str) -> bool { |
| 958 | matches!( |
| 959 | kind, |
| 960 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 961 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 962 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 963 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 964 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 965 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 966 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 967 | | "null_literal" | "undefined" |
| 968 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 969 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 970 | ) |
| 971 | } |
| 972 | |
| 973 | fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef { |
| 974 | match s { |