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

Function is_literal_receiver

codegraph-kernel/src/go.rs:1195–1209  ·  view source on GitHub ↗
(kind: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected