mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vast: print Position.last_line (#10600)
This commit is contained in:
parent
0ac0ab6b4b
commit
806719786f
@ -430,6 +430,7 @@ fn (t Tree) import_symbol(node ast.ImportSymbol) &Node {
|
||||
fn (t Tree) position(p token.Position) &Node {
|
||||
mut obj := new_object()
|
||||
obj.add('line_nr', t.number_node(p.line_nr))
|
||||
obj.add('last_line', t.number_node(p.last_line))
|
||||
obj.add('pos', t.number_node(p.pos))
|
||||
obj.add('len', t.number_node(p.len))
|
||||
return obj
|
||||
|
Loading…
Reference in New Issue
Block a user