mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added wildcard to UsingForDeclaration
This commit is contained in:
parent
ec0933bf9f
commit
cde629d48d
@ -8,13 +8,13 @@ ImportDirective = 'import' StringLiteral ('as' Identifier)?
|
|||||||
| 'import' ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral
|
| 'import' ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral
|
||||||
| 'import' '{' Identifier ('as' Identifier)? ( ',' Identifier ('as' Identifier)? )* '}' 'from' StringLiteral
|
| 'import' '{' Identifier ('as' Identifier)? ( ',' Identifier ('as' Identifier)? )* '}' 'from' StringLiteral
|
||||||
|
|
||||||
ContractPart = StateVariableDecOrDef | UsingDeclaration
|
ContractPart = StateVariableDeclaration | UsingForDeclaration
|
||||||
| StructDefinition | ModifierDefinition | FunctionDefinition | EventDefinition | EnumDefinition
|
| StructDefinition | ModifierDefinition | FunctionDefinition | EventDefinition | EnumDefinition
|
||||||
|
|
||||||
InheritanceSpecifier = Identifier ( '(' Expression ( ',' Expression )* ')' )?
|
InheritanceSpecifier = Identifier ( '(' Expression ( ',' Expression )* ')' )?
|
||||||
|
|
||||||
StateVariableDecOrDef = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';'
|
StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';'
|
||||||
UsingDeclaration = 'using' Identifier 'for' TypeName ';'
|
UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';'
|
||||||
StructDefinition = 'struct' Identifier '{'
|
StructDefinition = 'struct' Identifier '{'
|
||||||
( VariableDeclaration ';' (VariableDeclaration ';')* )? '}'
|
( VariableDeclaration ';' (VariableDeclaration ';')* )? '}'
|
||||||
ModifierDefinition = 'modifier' Identifier ParameterList? Block
|
ModifierDefinition = 'modifier' Identifier ParameterList? Block
|
||||||
|
Loading…
Reference in New Issue
Block a user