Less dumb fix for attribute declarations

This commit is contained in:
Hackerpilot 2013-09-15 19:27:32 +00:00
parent fbb811fd4d
commit cd3bb40730
1 changed files with 1 additions and 7 deletions

View File

@ -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: