Less dumb fix for attribute declarations
This commit is contained in:
parent
fbb811fd4d
commit
cd3bb40730
|
@ -1601,18 +1601,12 @@ class ClassFour(A, B) if (someTest()) : Super {}}c;
|
||||||
if (currentIs(TokenType.colon))
|
if (currentIs(TokenType.colon))
|
||||||
{
|
{
|
||||||
node.attributeDeclaration = parseAttributeDeclaration(attr);
|
node.attributeDeclaration = parseAttributeDeclaration(attr);
|
||||||
break;
|
return node;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
node.attributes ~= attr;
|
node.attributes ~= attr;
|
||||||
} while (moreTokens());
|
} while (moreTokens());
|
||||||
|
|
||||||
if (!moreTokens)
|
|
||||||
{
|
|
||||||
error("Declaration expected");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
with (TokenType) switch (current.type)
|
with (TokenType) switch (current.type)
|
||||||
{
|
{
|
||||||
case semicolon:
|
case semicolon:
|
||||||
|
|
Loading…
Reference in New Issue