MCPcopy Create free account
hub / github.com/astral-sh/ruff / in_function_scope

Method in_function_scope

crates/ty_python_core/src/builder.rs:5997–6000  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

5995 }
5996
5997 fn in_function_scope(&self) -> bool {
5998 let kind = self.scopes[self.current_scope()].kind();
5999 matches!(kind, ScopeKind::Function | ScopeKind::Lambda)
6000 }
6001
6002 fn in_generator_context(&self) -> bool {
6003 for scope_info in &self.scope_stack {

Callers

nothing calls this directly

Calls 2

kindMethod · 0.45
current_scopeMethod · 0.45

Tested by

no test coverage detected