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

Function is_literal_receiver

codegraph-kernel/src/rustlang.rs:1806–1820  ·  view source on GitHub ↗

LITERAL_RECEIVER_TYPES (shared table).

(kind: &str)

Source from the content-addressed store, hash-verified

1804
1805/// LITERAL_RECEIVER_TYPES (shared table).
1806fn is_literal_receiver(kind: &str) -> bool {
1807 matches!(
1808 kind,
1809 "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal"
1810 | "template_string" | "concatenated_string" | "formatted_string" | "f_string"
1811 | "line_string_literal" | "string_content" | "heredoc_body"
1812 | "number" | "number_literal" | "integer" | "integer_literal" | "float"
1813 | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal"
1814 | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal"
1815 | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil"
1816 | "null_literal" | "undefined"
1817 | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression"
1818 | "dictionary" | "dict_literal" | "object" | "tuple" | "set"
1819 )
1820}
1821
1822/// BUILTIN_TYPES (shared table — port the WHOLE set: a rust `String`
1823/// type_identifier IS suppressed via the Scala row).

Callers 1

extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected