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

Method scope

crates/ty_python_core/src/statement.rs:68–70  ·  view source on GitHub ↗
(self, db: &'db dyn Db)

Source from the content-addressed store, hash-verified

66 }
67
68 pub fn scope(self, db: &'db dyn Db) -> ScopeId<'db> {
69 self.file_scope(db).to_scope_id(db, self.program_file(db))
70 }
71
72 pub fn program(self, db: &'db dyn Db) -> Program<'db> {
73 self.scope(db).program(db)

Callers 1

programMethod · 0.45

Calls 3

to_scope_idMethod · 0.80
file_scopeMethod · 0.80
program_fileMethod · 0.45

Tested by

no test coverage detected