Added isProtection

This commit is contained in:
Hackerpilot 2014-01-13 23:00:35 +00:00
parent 6f00a166c7
commit c8c3f58867
1 changed files with 15 additions and 0 deletions

View File

@ -366,6 +366,21 @@ public bool isStringLiteral(IdType type) pure nothrow @safe
}
}
public bool isProtection(IdType type) pure nothrow @safe
{
switch (type)
{
case tok!"export":
case tok!"package":
case tok!"private":
case tok!"public":
case tok!"protected":
return true;
default:
return false;
}
}
public struct DLexer(R)
{
import std.conv;