mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-05-02 16:20:14 +03:00
Less dumb fix for attribute declarations
This commit is contained in:
parent
fbb811fd4d
commit
cd3bb40730
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue