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

Function is_static_object_key

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

STATIC_OBJECT_KEY_TYPES (tree-sitter.ts, #2300): keys that name a member — a computed `[expr]` key names nothing static.

(kind: &str)

Source from the content-addressed store, hash-verified

150/// STATIC_OBJECT_KEY_TYPES (tree-sitter.ts, #2300): keys that name a member — a
151/// computed `[expr]` key names nothing static.
152fn is_static_object_key(kind: &str) -> bool {
153 matches!(kind, "property_identifier" | "string" | "number")
154}
155
156/// OBJECT_DATA_MEMBER_* (tree-sitter.ts, #3408): how deep a named literal's
157/// data members are followed (a bound on the recursion, nothing a person

Callers 1

owned_member_functionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected