File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ sourceUnit: (
1919 | constantVariableDeclaration
2020 | structDefinition
2121 | enumDefinition
22+ | userDefinedValueTypeDefinition
2223 | errorDefinition
2324)* EOF ;
2425
@@ -89,6 +90,7 @@ contractBodyElement:
8990 | receiveFunctionDefinition
9091 | structDefinition
9192 | enumDefinition
93+ | userDefinedValueTypeDefinition
9294 | stateVariableDeclaration
9395 | eventDefinition
9496 | errorDefinition
@@ -247,6 +249,11 @@ structMember: type=typeName name=identifier Semicolon;
247249 * Definition of an enum. Can occur at top-level within a source unit or within a contract, library or interface.
248250 */
249251enumDefinition : Enum name=identifier LBrace enumValues+=identifier (Comma enumValues+=identifier)* RBrace;
252+ /* *
253+ * Definition of a user defined value type. Can occur at top-level within a source unit or within a contract, library or interface.
254+ */
255+ userDefinedValueTypeDefinition :
256+ Type name=identifier Is elementaryTypeName[true] Semicolon;
250257
251258/* *
252259 * The declaration of a state variable.
You can’t perform that action at this time.
0 commit comments