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/// HOST_GLOBAL_ROOTS (tree-sitter.ts, #2300): `window.App = {…}` defines the
157/// global `App`. (`self` is usually `var self = this` in page code, not the global.)

Callers 1

owned_member_functionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected