mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 21:30: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))
|
||||
{
|
||||
node.attributeDeclaration = parseAttributeDeclaration(attr);
|
||||
break;
|
||||
return node;
|
||||
}
|
||||
else
|
||||
node.attributes ~= attr;
|
||||
} while (moreTokens());
|
||||
|
||||
if (!moreTokens)
|
||||
{
|
||||
error("Declaration expected");
|
||||
return null;
|
||||
}
|
||||
|
||||
with (TokenType) switch (current.type)
|
||||
{
|
||||
case semicolon:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue