mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 16:15:16 +00:00
Replace row/column based Location with byte-offsets.
This commit is contained in:
parent
7b8844bd3e
commit
58c35ab458
131 changed files with 12120 additions and 23198 deletions
|
@ -4,6 +4,7 @@ use crate::{
|
|||
ast,
|
||||
lexer::{LexicalError, LexicalErrorType},
|
||||
};
|
||||
use ruff_text_size::TextSize;
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
pub(crate) struct ArgumentList {
|
||||
|
@ -83,10 +84,7 @@ pub(crate) fn parse_params(
|
|||
Ok((pos_only, names, defaults))
|
||||
}
|
||||
|
||||
type FunctionArgument = (
|
||||
Option<(ast::Location, ast::Location, Option<String>)>,
|
||||
ast::Expr,
|
||||
);
|
||||
type FunctionArgument = (Option<(TextSize, TextSize, Option<String>)>, ast::Expr);
|
||||
|
||||
// Parse arguments as supplied during a function/lambda *call*.
|
||||
pub(crate) fn parse_args(func_args: Vec<FunctionArgument>) -> Result<ArgumentList, LexicalError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue