1
0
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:
Lukas Neubert 2021-06-28 15:23:34 +02:00 committed by GitHub
parent 0ac0ab6b4b
commit 806719786f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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