LITERAL_RECEIVER_TYPES membership (shared table; python names among them).
(kind: &str)
| 969 | |
| 970 | /// LITERAL_RECEIVER_TYPES membership (shared table; python names among them). |
| 971 | fn is_literal_receiver(kind: &str) -> bool { |
| 972 | matches!( |
| 973 | kind, |
| 974 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 975 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 976 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 977 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 978 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 979 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 980 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 981 | | "null_literal" | "undefined" |
| 982 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 983 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 984 | ) |
| 985 | } |
| 986 | |
| 987 | fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef { |
| 988 | match s { |