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

Function is_object_member_function

codegraph-kernel/src/tsjs/mod.rs:146–148  ·  view source on GitHub ↗

OBJECT_MEMBER_FUNCTION_TYPES (tree-sitter.ts, #2300): the function values an owned object literal's member can hold.

(kind: &str)

Source from the content-addressed store, hash-verified

144/// OBJECT_MEMBER_FUNCTION_TYPES (tree-sitter.ts, #2300): the function values an
145/// owned object literal's member can hold.
146fn is_object_member_function(kind: &str) -> bool {
147 matches!(kind, "arrow_function" | "function_expression" | "generator_function")
148}
149
150/// STATIC_OBJECT_KEY_TYPES (tree-sitter.ts, #2300): keys that name a member — a
151/// computed `[expr]` key names nothing static.

Callers 1

owned_member_functionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected