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

Function is_host_global_root

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

HOST_GLOBAL_ROOTS (tree-sitter.ts, #2300): `window.App = {…}` defines the global `App`. (`self` is usually `var self = this` in page code, not the global.)

(name: &str)

Source from the content-addressed store, hash-verified

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.)
158fn is_host_global_root(name: &str) -> bool {
159 matches!(name, "window" | "globalThis")
160}
161
162/// One scope-stack entry (TS keeps node IDs; rows are our equivalent).
163struct Scope {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected