Req #70024 [Opn->Asn]: Add column information to AST

From: Date: Thu, 09 Jul 2015 07:41:23 +0000
Subject: Req #70024 [Opn->Asn]: Add column information to AST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194240@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70024&edit=1 ID: 70024 Updated by: kalle@php.net Reported by: krblock at computer dot org Summary: Add column information to AST -Status: Open +Status: Assigned Type: Feature/Change Request Package: *Compile Issues PHP Version: 7.0.0alpha2 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: I don't think we uses columns anywhere in the code to help identify errors, so we would have to add it just for this feature, Nikita do you have any input on this? (Just unassign after if desired) Previous Comments: ------------------------------------------------------------------------ [2015-07-08 14:47:10] krblock at computer dot org Description: ------------ I am evaluating PHP Parsers to use in a Static Analysis tool. When defects are reported, we like to pin point the location of the issue as precisely as possible. We also like to provide cross reference information. It would be useful to have column location stored in the AST in addition to line location. Test script: --------------- I used the AST dumper provided here: https://github.com/nikic/php-ast RFC for AST is here: https://wiki.php.net/rfc/abstract_syntax_tree Both omit column information. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70024&edit=1

« previous php.bugs (#194240) next »