mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 10:23:22 +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
|
@ -1721,7 +1721,7 @@ ArgumentList: ArgumentList = {
|
|||
}
|
||||
};
|
||||
|
||||
FunctionArgument: (Option<(ast::Location, ast::Location, Option<String>)>, ast::Expr) = {
|
||||
FunctionArgument: (Option<(crate::Location, crate::Location, Option<String>)>, ast::Expr) = {
|
||||
<location:@L> <e:NamedExpressionTest> <c:CompFor?> <end_location:@R> => {
|
||||
let expr = match c {
|
||||
Some(c) => ast::Expr::new(
|
||||
|
@ -1776,7 +1776,7 @@ Identifier: String = <s:name> => s;
|
|||
|
||||
// Hook external lexer:
|
||||
extern {
|
||||
type Location = ast::Location;
|
||||
type Location = crate::Location;
|
||||
type Error = LexicalError;
|
||||
|
||||
enum token::Tok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue