ava-labs / ava-labs/reforge

Add the lines added to the Adjustment type

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement rust
Dominant language
Rust
Stars
0
Forks
0
Avg merge
10d 6h
Merged PRs (30d)
4

Description

## Problem
Currently the Adjustment type only tracks the overall delta in lines. This means that if the delta is negative, it is possible to fail to attribute some trailing macro generated code correctly.

## Proposed solution

The Adjustment type should also keep track of the number of lines it added. This should be used to determine if expanded source code originates from a macro or not.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Rust Adjustment type and the code that uses its overall line delta during macro expansion. Trace how expanded Solidity source is attributed, then verify that negative deltas and trailing macro-generated code are handled using the added-line count.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, solidity
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.