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

Method program

crates/ty_python_core/src/scope.rs:34–36  ·  view source on GitHub ↗
(self, db: &'db dyn Db)

Source from the content-addressed store, hash-verified

32 }
33
34 pub fn program(self, db: &'db dyn Db) -> Program<'db> {
35 self.program_file(db).program(db)
36 }
37
38 pub fn is_annotation(self, db: &'db dyn Db) -> bool {
39 self.node(db).scope_kind().is_annotation()

Callers 5

program_fileFunction · 0.45
visit_stmtMethod · 0.45
resolver_environmentMethod · 0.45
python_versionMethod · 0.45
visit_stmt_implMethod · 0.45

Calls 1

program_fileMethod · 0.45

Tested by

no test coverage detected