Skip to main content

Crate ty_python_core

Crate ty_python_core 

Source

Re-exports§

pub use crate::statement::Statement;
pub use crate::statement::StatementNodeKey;
pub use ast_ids::ExpressionNodeKey;
pub use place::PlaceExprRef;
pub use place::PlaceTable;
pub use reachability_constraints::ReachabilityConstraintsBuilder;
pub use scope::FileScopeId;
pub use program::Program;
pub use program_file::ProgramFile;

Modules§

ast_ids
ast_node_ref
definition
expression
frozen
narrowing_constraints
Narrowing constraints
node_key
place
platform
predicate
Predicates are Python expressions whose runtime values can affect type inference.
program
program_file
rank
A boxed bit slice that supports a constant-time rank operation.
reachability_constraints
Core data structures for recording reachability constraints.
scope
statement
symbol
unpack

Structs§

AncestorsIter
BindingWithConstraints
BindingWithConstraintsIterator
ChildrenIter
DeclarationWithConstraint
DeclarationsIterator
LiveBinding
One of the live bindings for a single place at some point in control flow.
LoopHeader
All the bindings made in a loop, which are visible to the entire loop via “loop header definitions” (a.k.a. loop-back bindings)
LoopHeaderId
Identifies a LoopHeader within a single scope’s UseDefMap.
NarrowingAliasPredicate
NarrowingEvaluator
PredicateNarrowingTargets
Predicate-place pairs for which type narrowing may produce a constraint.
ScopedDefinitionId
An index into a scope’s use-def history. A combined definition can have separate declaration and binding entries when they take effect at different points in control flow.
SemanticIndex
The place tables and use-def maps for all scopes in a file.
UseDefMap
Applicable definitions and constraints for every use of a name.
VisibleAncestorsIter

Enums§

ApplicableConstraints
BoundnessAnalysis
Specifies how the boundness of a place should be determined.
EnclosingSnapshotResult
EvaluationMode
Truthiness

Traits§

Db
Database giving access to semantic information about a Python program.
HasTrackedScope
Implemented by types for which the semantic index tracks their scope.

Functions§

attribute_scopes
Returns all attribute assignments as scope IDs for a specific class body scope.
global_scope
Returns the module global scope of file.
place_table
Returns the place table for a specific scope.
semantic_index
Returns the semantic index for file.
use_def_map
Returns the use-def map for a specific scope.

Type Aliases§

PossiblyNarrowedPlaces
A set of places that could possibly be narrowed by a predicate.