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

Function is_literal_receiver

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

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

(kind: &str)

Source from the content-addressed store, hash-verified

955
956/// LITERAL_RECEIVER_TYPES membership (shared table; python names among them).
957fn 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
973fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
974 match s {

Callers 1

extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected