mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removing ';' from the end of EnumDefinition
This commit is contained in:
parent
68cf1bf37d
commit
41647fd75f
@ -293,7 +293,6 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition()
|
||||
|
||||
nodeFactory.markEndPosition();
|
||||
expectToken(Token::RBrace);
|
||||
expectToken(Token::Semicolon);
|
||||
return nodeFactory.createNode<EnumDefinition>(name, members);
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ FunctionDefinition = 'function' Identifier ParameterList
|
||||
( 'returns' ParameterList )? Block
|
||||
|
||||
EnumValue = Identifier
|
||||
EnumDefinition = 'enum' '{' EnumValue (',' EnumValue)* '}' ';'
|
||||
EnumDefinition = 'enum' '{' EnumValue (',' EnumValue)* '}'
|
||||
ParameterList = '(' ( VariableDeclaration (',' VariableDeclaration)* )? ')'
|
||||
// semantic restriction: mappings and structs (recursively) containing mappings
|
||||
// are not allowed in argument lists
|
||||
|
Loading…
Reference in New Issue
Block a user