1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

token: rename Position to Pos, rename position() to pos() (#13279)

This commit is contained in:
yuyi
2022-01-26 18:36:28 +08:00
committed by GitHub
parent d71fc0d13f
commit 291a1ffd8d
61 changed files with 958 additions and 962 deletions

View File

@ -43,7 +43,7 @@ fn (d Decoder) modify(mut value ast.Value) ? {
}
// excerpt returns a string of the token's surroundings
fn (d Decoder) excerpt(tp token.Position) string {
fn (d Decoder) excerpt(tp token.Pos) string {
return d.scanner.excerpt(tp.pos, 10)
}