Skip to content

Commit

Permalink
Parse override keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Feb 27, 2020
1 parent 5309a44 commit dc65a4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ASTBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,22 @@ const transformAST = {
break
}

let override
const overrideSpecifier = ctx.modifierList().overrideSpecifier()
if (overrideSpecifier.length === 0) {
override = null
} else {
override = this.visit(overrideSpecifier[0].userDefinedTypeName())
}

return {
name,
parameters,
returnParameters,
body: block,
visibility,
modifiers,
override,
isConstructor,
isReceiveEther,
isFallback,
Expand Down

0 comments on commit dc65a4b

Please sign in to comment.