mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-20 02:20:42 +00:00
Rename ArgumentSeparator
to ParameterSeparator
(#6404)
To mirror the rename from `Arguments` to `Parameters`.
This commit is contained in:
parent
26098b8d91
commit
404e334fec
2 changed files with 13 additions and 13 deletions
|
@ -12,7 +12,7 @@ use ruff_text_size::TextRange;
|
|||
use crate::comments::visitor::{CommentPlacement, DecoratedComment};
|
||||
use crate::expression::expr_slice::{assign_comment_in_slice, ExprSliceCommentSection};
|
||||
use crate::other::parameters::{
|
||||
assign_argument_separator_comment_placement, find_argument_separators,
|
||||
assign_argument_separator_comment_placement, find_parameter_separators,
|
||||
};
|
||||
|
||||
/// Manually attach comments to nodes that the default placement gets wrong.
|
||||
|
@ -606,7 +606,7 @@ fn handle_parameters_separator_comment<'a>(
|
|||
parameters: &Parameters,
|
||||
locator: &Locator,
|
||||
) -> CommentPlacement<'a> {
|
||||
let (slash, star) = find_argument_separators(locator.contents(), parameters);
|
||||
let (slash, star) = find_parameter_separators(locator.contents(), parameters);
|
||||
let comment_range = comment.slice().range();
|
||||
let placement = assign_argument_separator_comment_placement(
|
||||
slash.as_ref(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue