Add file/line information for parray data type.

This commit is contained in:
Cary R 2014-11-24 18:37:06 -08:00
parent 754899c99e
commit cd992b4d5a
1 changed files with 5 additions and 2 deletions

View File

@ -1055,8 +1055,11 @@ data_type /* IEEE1800-2005: A.2.2.1 */
$$ = tmp; $$ = tmp;
} }
| TYPE_IDENTIFIER dimensions_opt | TYPE_IDENTIFIER dimensions_opt
{ if ($2) $$ = new parray_type_t($1.type, $2); { if ($2) {
else $$ = $1.type; parray_type_t*tmp = new parray_type_t($1.type, $2);
FILE_NAME(tmp, @1);
$$ = tmp;
} else $$ = $1.type;
delete[]$1.text; delete[]$1.text;
} }
| PACKAGE_IDENTIFIER K_SCOPE_RES | PACKAGE_IDENTIFIER K_SCOPE_RES