MCPcopy Create free account
hub / github.com/SplootCode/splootcode / getScope

Function getScope

packages/language-python/src/nodes/python_node.ts:24–32  ·  view source on GitHub ↗
(skipSelf = false)

Source from the content-addressed store, hash-verified

22 }
23
24 getScope(skipSelf = false): PythonScope {
25 if (!skipSelf && isScopedNodeType(this.type)) {
26 return this.scope
27 }
28 if (this.parent === null) {
29 return null
30 }
31 return (this.parent.node as PythonNode).getScope()
32 }
33
34 addSelfToScope() {
35 // No-op default implementation.

Callers

nothing calls this directly

Calls 2

isScopedNodeTypeFunction · 0.90
getScopeMethod · 0.80

Tested by

no test coverage detected