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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user