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

Method program

crates/ty_python_core/src/db.rs:20–30  ·  view source on GitHub ↗

Salsa-cached because interning a program requires hashing all search paths.

(&self)

Source from the content-addressed store, hash-verified

18
19 // Salsa-cached because interning a program requires hashing all search paths.
20 fn program(&self) -> Program<'_>
21 where
22 Self: Sized,
23 {
24 #[salsa::tracked(returns(copy), heap_size=ruff_memory_usage::heap_size)]
25 fn program_inner(db: &dyn TestProgramDb) -> Program<'_> {
26 Program::from_settings(db, db.program_settings())
27 }
28
29 program_inner(self)
30 }
31}
32
33#[cfg(test)]

Callers

nothing calls this directly

Implementers 5

db.rscrates/ty_test/src/db.rs
db.rscrates/ty_python_core/src/db.rs
db.rscrates/ty_python_semantic/src/db.rs
corpus.rscrates/ty_python_semantic/tests/corpus
ty_check_invalid_syntax.rsfuzz/fuzz_targets/ty_check_invalid_syn

Calls

no outgoing calls

Tested by

no test coverage detected