aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-02-21 18:28:32 +0800
committerlantw44 <lantw44@gmail.com>2019-02-25 16:14:12 +0800
commitafd6332d59d49ade29946653a7e8de9c9b1cc364 (patch)
treebb1aacd4d879aa80fe610fed93a63bec9d714aa1 /eth
parent4115c2e49a0af3f487c3a842223216730750fe40 (diff)
downloaddexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar.gz
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar.bz2
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar.lz
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar.xz
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.tar.zst
dexon-afd6332d59d49ade29946653a7e8de9c9b1cc364.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 'eth')
0 files changed, 0 insertions, 0 deletions