-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from ConsenSys/support-solidity-084
Support for Solidity 0.8.4
- Loading branch information
Showing
30 changed files
with
15,093 additions
and
2,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,30 +87,31 @@ | |
"solc-0.8.1": "npm:[email protected]", | ||
"solc-0.8.2": "npm:[email protected]", | ||
"solc-0.8.3": "npm:[email protected]", | ||
"solc-0.8.4": "npm:[email protected]", | ||
"src-location": "^1.1.0", | ||
"web3-eth-abi": "^1.3.4" | ||
"web3-eth-abi": "^1.3.5" | ||
}, | ||
"devDependencies": { | ||
"@types/fs-extra": "^9.0.9", | ||
"@types/fs-extra": "^9.0.11", | ||
"@types/minimist": "^1.2.1", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^12.20.7", | ||
"@types/semver": "^7.3.4", | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"@types/node": "^12.20.10", | ||
"@types/semver": "^7.3.5", | ||
"@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"codecov": "^3.8.1", | ||
"eslint": "^7.23.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint": "^7.25.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"expect": "^26.6.2", | ||
"mocha": "^8.3.2", | ||
"nyc": "^15.1.0", | ||
"pegjs": "^0.10.0", | ||
"prettier": "2.2.1", | ||
"ts-node": "^9.1.1", | ||
"typedoc": "^0.20.34", | ||
"typescript": "^4.2.3", | ||
"pegjs": "^0.10.0", | ||
"ts-pegjs": "^0.3.1" | ||
"ts-pegjs": "^0.3.1", | ||
"typedoc": "^0.20.36", | ||
"typescript": "^4.2.4" | ||
}, | ||
"homepage": "https://consensys.github.io/solc-typed-ast", | ||
"bugs": "https://github.com/ConsenSys/solc-typed-ast/issues", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { ASTNode } from "../../ast_node"; | ||
import { SourceUnit } from "../meta"; | ||
import { ParameterList } from "../meta/parameter_list"; | ||
import { StructuredDocumentation } from "../meta/structured_documentation"; | ||
import { ContractDefinition } from "./contract_definition"; | ||
|
||
export class ErrorDefinition extends ASTNode { | ||
/** | ||
* The name of the error | ||
*/ | ||
name: string; | ||
|
||
/** | ||
* The source range for name string | ||
*/ | ||
nameLocation?: string; | ||
|
||
/** | ||
* Optional documentation appearing above the error definition: | ||
* - Is `undefined` when not specified. | ||
* - Is type of `string` for compatibility reasons (for and instance, during node creation). | ||
* - Is instance of `StructuredDocumentation` in other cases. | ||
*/ | ||
documentation?: string | StructuredDocumentation; | ||
|
||
/** | ||
* A list of values that is passed on to the EVM logging facility | ||
*/ | ||
vParameters: ParameterList; | ||
|
||
constructor( | ||
id: number, | ||
src: string, | ||
type: string, | ||
name: string, | ||
parameters: ParameterList, | ||
documentation?: string | StructuredDocumentation, | ||
nameLocation?: string, | ||
raw?: any | ||
) { | ||
super(id, src, type, raw); | ||
|
||
this.name = name; | ||
this.documentation = documentation; | ||
this.nameLocation = nameLocation; | ||
|
||
this.vParameters = parameters; | ||
|
||
this.acceptChildren(); | ||
} | ||
|
||
get children(): readonly ASTNode[] { | ||
return this.pickNodes(this.documentation, this.vParameters); | ||
} | ||
|
||
/** | ||
* Reference to a scoped `ContractDefinition` if event is declared in contract. | ||
* Reference to a scoped `SourceUnit` if event is declared on file level. | ||
*/ | ||
get vScope(): ContractDefinition | SourceUnit { | ||
return this.parent as ContractDefinition | SourceUnit; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.