v / vlib / toml / token / pos.v
13 lines · 12 sloc · 499 bytes · 9051ac8921da3e2dcbf1785ceffa7f11fea36f5c
Raw
1// Copyright (c) 2021 Lars Pontoppidan. All rights reserved.
2// Use of this source code is governed by an MIT license
3// that can be found in the LICENSE file.
4module token
5
6// Position represents a position in a TOML document.
7pub struct Pos {
8pub:
9 len int // length of the literal in the source
10 line_nr int // the line number in the source where the token occurred
11 pos int // the position of the token in scanner text
12 col int // the column in the source where the token occurred
13}
14