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

@@ -222,7 +222,7 @@ fn (vt &Vet) e2string(err vet.Error) string {
}
fn (mut vt Vet) error(msg string, line int, fix vet.FixKind) {
pos := token.Position{
pos := token.Pos{
line_nr: line + 1
}
vt.errors << vet.Error{
@@ -236,7 +236,7 @@ fn (mut vt Vet) error(msg string, line int, fix vet.FixKind) {
}
fn (mut vt Vet) warn(msg string, line int, fix vet.FixKind) {
pos := token.Position{
pos := token.Pos{
line_nr: line + 1
}
mut w := vet.Error{