BEGIN_PUBLISH .. END_PUBLISH applies to methods too

This commit is contained in:
David Rose 2007-07-13 21:22:22 +00:00
parent 847774efb2
commit 8392266935
3 changed files with 1254 additions and 1181 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* A Bison parser, made by GNU Bison 1.875b. */
/* A Bison parser, made by GNU Bison 2.0. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -458,7 +458,11 @@ declaration:
}
| KW_PUBLIC ':'
{
current_scope->set_current_vis(V_public);
if (publish_nest_level > 0) {
current_scope->set_current_vis(V_published);
} else {
current_scope->set_current_vis(V_public);
}
}
| KW_PROTECTED ':'
{