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

Class Predicate

crates/ty_python_core/src/predicate.rs:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, get_size2::GetSize, salsa::SalsaValue)]
76pub struct Predicate<'db> {
77 pub node: PredicateNode<'db>,
78 pub is_positive: bool,
79}
80
81#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, get_size2::GetSize)]
82pub(crate) enum PredicateOrLiteral<'db> {

Callers 5

negatedMethod · 0.85
fromMethod · 0.85
build_predicateMethod · 0.85
visit_stmt_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected