Rename compiler Location to TextSize

This commit is contained in:
Jeong YunWon 2023-05-06 17:49:47 +09:00
parent 58c35ab458
commit f47dfca4e3
13 changed files with 9423 additions and 9427 deletions

View file

@ -1721,7 +1721,7 @@ ArgumentList: ArgumentList = {
}
};
FunctionArgument: (Option<(crate::Location, crate::Location, Option<String>)>, ast::Expr) = {
FunctionArgument: (Option<(crate::text_size::TextSize, crate::text_size::TextSize, 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 = crate::Location;
type Location = crate::text_size::TextSize;
type Error = LexicalError;
enum token::Tok {