Skip to content
This repository was archived by the owner on Sep 27, 2020. It is now read-only.

Commit afa4165

Browse files
committed
Add support for inheritance specifiers with empty args
1 parent f81a6a5 commit afa4165

File tree

5 files changed

+1136
-1148
lines changed

5 files changed

+1136
-1148
lines changed

solidity-antlr4

src/ASTBuilder.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,13 @@ const transformAST = {
137137
},
138138

139139
InheritanceSpecifier(ctx) {
140+
const exprList = ctx.expressionList()
141+
const args = (exprList != null)
142+
? this.visit(exprList.expression()) : []
143+
140144
return {
141145
baseName: this.visit(ctx.userDefinedTypeName()),
142-
arguments: this.visit(ctx.expression())
146+
arguments: args
143147
}
144148
},
145149

src/lib/Solidity.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)