Commit 799f83e
authored
fix: expose VyperSourceLocation fields (#333)
Expose individual fields in `VyperSourceLocation` for usage downstream.
This is already the case [for the corresponding solc
fields](https://github.com/foundry-rs/compilers/blob/326f79435783173bacfaaa9162a6b801fb7a7fe3/crates/artifacts/solc/src/error.rs#L8):
```rust
// 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>,
}
```1 parent 2d6fbeb commit 799f83e
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments