| 1184 | } |
| 1185 | |
| 1186 | fn is_literal_receiver(kind: &str) -> bool { |
| 1187 | matches!( |
| 1188 | kind, |
| 1189 | "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal" |
| 1190 | | "template_string" | "concatenated_string" | "formatted_string" | "f_string" |
| 1191 | | "line_string_literal" | "string_content" | "heredoc_body" |
| 1192 | | "number" | "number_literal" | "integer" | "integer_literal" | "float" |
| 1193 | | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal" |
| 1194 | | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal" |
| 1195 | | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil" |
| 1196 | | "null_literal" | "undefined" |
| 1197 | | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression" |
| 1198 | | "dictionary" | "dict_literal" | "object" | "tuple" | "set" |
| 1199 | ) |
| 1200 | } |
| 1201 | |
| 1202 | /// BUILTIN_TYPES (shared table). |
| 1203 | fn is_builtin_type(name: &str) -> bool { |