Fix CommentedTypeDecl to track whether it's in a record like TypeDecl does.

This commit is contained in:
Jon Siwek 2011-05-12 19:55:26 -05:00
parent da5618b9ba
commit 70e14cb7d5
4 changed files with 14 additions and 4 deletions

View file

@ -936,6 +936,7 @@ type_decl:
if ( generate_documentation )
{
// TypeDecl ctor deletes the attr list, so make a copy
attr_list* a = $5;
attr_list* a_copy = 0;
@ -947,7 +948,7 @@ type_decl:
}
last_fake_type_decl = new CommentedTypeDecl(
$4, $2, a_copy, concat_opt_docs($1, $7));
$4, $2, a_copy, (in_record > 0), concat_opt_docs($1, $7));
}
$$ = new TypeDecl($4, $2, $5, (in_record > 0));