Merge pull request #105 from AndrejMitrovic/ParseBaseProtection

Emit warning for deprecated base class protection syntax.
This commit is contained in:
Hackerpilot 2014-02-11 10:13:18 -08:00
commit 1358b5ace9
1 changed files with 5 additions and 0 deletions

View File

@ -881,6 +881,11 @@ alias core.sys.posix.stdio.fileno fileno;
{
mixin(traceEnterAndExit!(__FUNCTION__));
auto node = new BaseClass;
if (current.type.isProtection())
{
warn("Use of base class protection is deprecated.");
advance();
}
if (currentIs(tok!"typeof"))
{
node.typeofExpression = parseTypeofExpression();