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

Function is_literal_receiver

codegraph-kernel/src/ccpp/mod.rs:210–224  ·  view source on GitHub ↗

LITERAL_RECEIVER_TYPES (tree-sitter.ts) — full set; membership is what the TS code tests even though only a few kinds occur in the c/cpp grammars.

(kind: &str)

Source from the content-addressed store, hash-verified

208/// LITERAL_RECEIVER_TYPES (tree-sitter.ts) — full set; membership is what the
209/// TS code tests even though only a few kinds occur in the c/cpp grammars.
210fn is_literal_receiver(kind: &str) -> bool {
211 matches!(
212 kind,
213 "string" | "string_literal" | "interpreted_string_literal" | "raw_string_literal"
214 | "template_string" | "concatenated_string" | "formatted_string" | "f_string"
215 | "line_string_literal" | "string_content" | "heredoc_body"
216 | "number" | "number_literal" | "integer" | "integer_literal" | "float"
217 | "float_literal" | "int_literal" | "decimal_integer_literal" | "real_literal"
218 | "char_literal" | "character_literal" | "rune_literal" | "regex" | "regex_literal"
219 | "true" | "false" | "boolean_literal" | "bool_literal" | "none" | "null" | "nil"
220 | "null_literal" | "undefined"
221 | "list" | "list_literal" | "array" | "array_literal" | "array_creation_expression"
222 | "dictionary" | "dict_literal" | "object" | "tuple" | "set"
223 )
224}
225
226/// stripCppTemplateArgs (languages/c-cpp.ts): depth-counted removal of every
227/// balanced `<…>` group; `<` and `>` never reach the output.

Callers 1

extract_callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected