MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_literal_receiver

Function is_literal_receiver

codegraph-kernel/src/python.rs:1181–1195  ·  view source on GitHub ↗

LITERAL_RECEIVER_TYPES membership (shared table; python names among them).

(kind: &str)

Source from the content-addressed store, hash-verified

1179
1180/// LITERAL_RECEIVER_TYPES membership (shared table; python names among them).
1181fn is_literal_receiver(kind: &str) -> bool {
1182 matches!(
1183 kind,
1184 "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal"
1185 | "template_string" | "concatenated_string" | "formatted_string" | "f_string"
1186 | "line_string_literal" | "string_content" | "heredoc_body"
1187 | "number" | "number_literal" | "integer" | "integer_literal" | "float"
1188 | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal"
1189 | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal"
1190 | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil"
1191 | "null_literal" | "undefined"
1192 | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression"
1193 | "dictionary" | "dict_literal" | "object" | "tuple" | "set"
1194 )
1195}
1196
1197fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1198 match s {

Callers 1

extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected