More enum fixes
This commit is contained in:
parent
55091c8b5c
commit
f7ffced8ee
|
@ -165,6 +165,11 @@ private:
|
||||||
bool canFindImmutable(const VariableDeclaration dec)
|
bool canFindImmutable(const VariableDeclaration dec)
|
||||||
{
|
{
|
||||||
import std.algorithm : canFind;
|
import std.algorithm : canFind;
|
||||||
|
foreach (storageClass; dec.storageClasses)
|
||||||
|
{
|
||||||
|
if (storageClass.token == tok!"enum")
|
||||||
|
return true;
|
||||||
|
}
|
||||||
foreach (attr; dec.attributes)
|
foreach (attr; dec.attributes)
|
||||||
{
|
{
|
||||||
if (attr.attribute.type == tok!"immutable")
|
if (attr.attribute.type == tok!"immutable")
|
||||||
|
|
Loading…
Reference in New Issue