Add file/line information for parray data type.
This commit is contained in:
parent
754899c99e
commit
cd992b4d5a
7
parse.y
7
parse.y
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue