diff options
author | Ting-Wei Lan <tingwei.lan@cobinhood.com> | 2019-02-21 18:28:32 +0800 |
---|---|---|
committer | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-04-11 10:39:58 +0800 |
commit | 5245db1f425ffb50f1a3a5b6381559fb693ae39a (patch) | |
tree | dffef354fb783edef25c646a5430d84cecbc9c80 /miner/unconfirmed.go | |
parent | a7b864ec65ad37e7332fcc3e375faee5414a9b75 (diff) | |
download | dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar.gz dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar.bz2 dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar.lz dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar.xz dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.tar.zst dexon-5245db1f425ffb50f1a3a5b6381559fb693ae39a.zip |
core: vm: sqlvm: fill source code position in AST nodes
Now all AST nodes should have position information recorded during
parsing. These fields are intended to be used to report errors and make
debugging easier. However, precise location of each token is currently
unavailable. It can be done in the future if it becomes necessary.
To make it easier to traverse an AST, GetChildren is modified to skip
nil nodes in the output. This means callers of GetChildren don't have
to check for nil in returned slices.
AST printer is modified to print the position and the corresponding
source code token. A few special handling for interfaces are removed
because reflection works better for structs.
Diffstat (limited to 'miner/unconfirmed.go')
0 files changed, 0 insertions, 0 deletions