Added isProtection
This commit is contained in:
parent
6f00a166c7
commit
c8c3f58867
|
@ -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)
|
public struct DLexer(R)
|
||||||
{
|
{
|
||||||
import std.conv;
|
import std.conv;
|
||||||
|
|
Loading…
Reference in New Issue