docs: update rustdoc comments
This commit is contained in:
parent
4803788ffa
commit
ee54f8f8d3
3 changed files with 410 additions and 60 deletions
|
@ -506,7 +506,6 @@ fn convert_parse_error_to_formatter_error(
|
|||
suggestion: None,
|
||||
},
|
||||
ParseError::MissingToken { expected } => {
|
||||
// Try to find current position from last token
|
||||
let (line, column) = if let Some(last_token) = tokens.last() {
|
||||
position_from_range(&last_token.range, source)
|
||||
} else {
|
||||
|
@ -520,7 +519,6 @@ fn convert_parse_error_to_formatter_error(
|
|||
}
|
||||
}
|
||||
ParseError::InvalidExpression { message } => {
|
||||
// Try to find the current token position
|
||||
let (line, column) = find_current_parse_position(tokens, source);
|
||||
FormatterError::SyntaxError {
|
||||
line,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue