diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-15 12:36:49 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-21 16:27:48 +0100 |
commit | e528762c1c59bc0bd0bd6d78246c14269630cf0f (patch) | |
tree | e8ee4eec737685c2a0ea5c2ba78fb86fd54035e5 /Zend/zend_globals.h | |
parent | 1cf84f1579c54233c69a9394a8c02d29e092e32a (diff) | |
download | php-git-e528762c1c59bc0bd0bd6d78246c14269630cf0f.tar.gz |
Switch to bison location tracking
Locations for AST nodes are now tracked with the help of bison
location tracking. This is more accurate than what we currently do
and easier to extend with more information.
A zend_ast_loc structure is introduced, which is used for the location
stack. Currently it only holds the start lineno, but can be extended
to also hold end lineno and offset/column information in the future.
All AST constructors now accept a zend_ast_loc* as first argument, and
will use it to determine their lineno. Previously this used either the
CG(zend_lineno), or the smallest AST lineno of child nodes.
On the parser side, the location structure for a whole rule can be
obtained using the &@$ character salad.
Diffstat (limited to 'Zend/zend_globals.h')
-rw-r--r-- | Zend/zend_globals.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h index c95faef22b..24ca1c52a2 100644 --- a/Zend/zend_globals.h +++ b/Zend/zend_globals.h @@ -94,7 +94,6 @@ struct _zend_compiler_globals { struct _zend_ini_parser_param *ini_parser_param; uint32_t start_lineno; - zend_bool increment_lineno; zend_string *doc_comment; uint32_t extra_fn_flags; |