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

Function is_literal_receiver

codegraph-kernel/src/kotlin.rs:51–65  ·  view source on GitHub ↗

LITERAL_RECEIVER_TYPES (tree-sitter.ts:373) — full shared set.

(kind: &str)

Source from the content-addressed store, hash-verified

49
50/// LITERAL_RECEIVER_TYPES (tree-sitter.ts:373) — full shared set.
51fn is_literal_receiver(kind: &str) -> bool {
52 matches!(
53 kind,
54 "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal"
55 | "template_string" | "concatenated_string" | "formatted_string" | "f_string"
56 | "line_string_literal" | "string_content" | "heredoc_body"
57 | "number" | "number_literal" | "integer" | "integer_literal" | "float"
58 | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal"
59 | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal"
60 | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil"
61 | "null_literal" | "undefined"
62 | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression"
63 | "dictionary" | "dict_literal" | "object" | "tuple" | "set"
64 )
65}
66
67/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (getReturnType's ident test).
68fn ascii_ident_re() -> &'static Regex {

Callers 2

extract_infix_callMethod · 0.70
extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected