mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Rename Parameter#arg
and ParameterWithDefault#def
fields (#6255)
## Summary This PR renames... - `Parameter#arg` to `Parameter#name` - `ParameterWithDefault#def` to `ParameterWithDefault#parameter` (such that `ParameterWithDefault` has a `default` and a `parameter`) ## Test Plan `cargo test`
This commit is contained in:
parent
adc8bb7821
commit
9c708d8fc1
56 changed files with 268 additions and 260 deletions
|
@ -47,7 +47,7 @@ impl Identifier for Parameter {
|
|||
/// ...
|
||||
/// ```
|
||||
fn identifier(&self) -> TextRange {
|
||||
self.arg.range()
|
||||
self.name.range()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ impl Identifier for ParameterWithDefault {
|
|||
/// ...
|
||||
/// ```
|
||||
fn identifier(&self) -> TextRange {
|
||||
self.def.identifier()
|
||||
self.parameter.identifier()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue