com php-src: export type from ast ... note that there are still outstanding bugs in AST exporter not connected to this RFC: Zend/zend_ast .c

From: Date: Thu, 10 Mar 2016 06:10:07 +0000
Subject: com php-src: export type from ast ... note that there are still outstanding bugs in AST exporter not connected to this RFC: Zend/zend_ast .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95694@lists.php.net to get a copy of this message
Commit: 2beab02338aab8f2aab07c113d7209385231362d Author: Joe Watkins <krakjoe@php.net> Thu, 10 Mar 2016 06:10:07 +0000 Parents: d195bce89e1171c01efbf2c1328d581694b9ebcc Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2beab02338aab8f2aab07c113d7209385231362d Log: export type from ast ... note that there are still outstanding bugs in AST exporter not connected to this RFC Changed paths: M Zend/zend_ast.c Diff: diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c index 64df7e9..3b93564 100644 --- a/Zend/zend_ast.c +++ b/Zend/zend_ast.c @@ -1437,7 +1437,11 @@ simple_list: } break; case ZEND_AST_PROP_ELEM: - /* TODO(krakjoe) export type */ + if (ast->child[0]) { + zend_ast_export_name( + str, ast->child[0], 0, indent); + smart_str_appendc(str, ' '); + } smart_str_appendc(str, '$'); zend_ast_export_name(str, ast->child[1], 0, indent); APPEND_DEFAULT_VALUE(2);

« previous php.cvs (#95694) next »