Skip to content

Commit 4d24288

Browse files
Replace the heuristic lookup of Cairo variables with semantic walk in FunctionDebugInfo
1 parent abd9ac1 commit 4d24288

4 files changed

Lines changed: 432 additions & 502 deletions

File tree

crates/cairo-lang-compiler/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,10 @@ pub fn compile_prepared_db_program_artifact_for_functions<'db>(
365365

366366
if compiler_config.add_functions_debug_info {
367367
annotations.extend(Annotations::from(
368-
sierra_program_with_debug.debug_info.functions_info.extract_serializable_debug_info(
369-
db,
370-
&sierra_program_with_debug.program,
371-
&sierra_program_with_debug.debug_info.statements_locations,
372-
),
368+
sierra_program_with_debug
369+
.debug_info
370+
.functions_info
371+
.extract_serializable_debug_info(db, &sierra_program_with_debug.program),
373372
))
374373
}
375374

0 commit comments

Comments
 (0)