Skip to content

Conversation

@0xpolarzero
Copy link
Contributor

@0xpolarzero 0xpolarzero commented Oct 21, 2025

Expose individual fields in VyperSourceLocation for usage downstream.

This is already the case for the corresponding solc fields:

// crates/artifacts/solc/src/error.rs
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct SourceLocation {
    pub file: String,
    pub start: i32,
    pub end: i32,
}

#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct SecondarySourceLocation {
    pub file: Option<String>,
    pub start: Option<i32>,
    pub end: Option<i32>,
    pub message: Option<String>,
}

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable

pending @DaniPopes

@mattsse
Copy link
Member

mattsse commented Oct 21, 2025

clippy unrelated #334

@mattsse mattsse merged commit 799f83e into foundry-rs:main Oct 21, 2025
18 checks passed
@0xpolarzero
Copy link
Contributor Author

Thanks!

@0xpolarzero 0xpolarzero deleted the 0xpolarzero-expose-vyper-source-location-fields branch October 22, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants