aboutsummaryrefslogtreecommitdiffstats
path: root/rlp
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-02-21 18:28:32 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 10:44:04 +0800
commit7628271e5d363a9a7283efb6f7d8b1b52e392e45 (patch)
tree9f945adc38fcf76a6fafae0de774e963780dad78 /rlp
parent1efc4819e3882a4c4def3bc88527fc51b6ef3a45 (diff)
downloaddexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar.gz
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar.bz2
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar.lz
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar.xz
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.tar.zst
dexon-7628271e5d363a9a7283efb6f7d8b1b52e392e45.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 'rlp')
0 files changed, 0 insertions, 0 deletions