Skip to main content

Crate depyler_analysis

Crate depyler_analysis 

Source
Expand description

§Depyler Analysis - Type Inference, Optimization, and Analysis Passes

All analysis, type inference, borrowing analysis, and optimization passes for the Depyler Python-to-Rust transpiler.

Modules§

annotation_aware_type_mapper
borrowing
borrowing_context
Enhanced borrowing context for proper ownership pattern inference
borrowing_shim
Borrowing Shim - pure logic separated from I/O
const_generic_inference
container_element_inference
Container element type inference from usage patterns
depylint
DEPYLER-0951: Depylint - Proactive detection of unsupported Python features
error_reporting
Enhanced error reporting with source location tracking and helpful suggestions
escape_analysis
Escape Analysis for Ownership Inference
generator_state
Generator State Analysis
generator_yield_analysis
Generator Yield Point Analysis
generic_inference
inlining
lifetime_analysis
Lifetime analysis and inference for safe Rust code generation
migration_suggestions
optimization
optimizer
Optimization passes for generated Rust code
param_type_inference
Parameter type inference from usage patterns in function body
performance_warnings
profiling
Profiling integration for performance analysis of transpiled code
scoring
DEPYLER-SCORE-001: 100-Point Single-Shot Compile Score
string_optimization
type_hints
type_inference_telemetry
DEPYLER-0970: Type Inference Telemetry for Oracle Training
type_mapper
type_propagation
Cross-function type propagation for HIR
type_system
Type System - Constraint-based type inference with subtyping support

Macros§

record_unknown_type
Helper macro to record unknown type with minimal boilerplate