Skip to content

Instantly share code, notes, and snippets.

@cgewecke
Created January 23, 2017 05:16
Show Gist options
  • Save cgewecke/db2ae22236c139252fa424a0c6599624 to your computer and use it in GitHub Desktop.
Save cgewecke/db2ae22236c139252fa424a0c6599624 to your computer and use it in GitHub Desktop.

Proposed AST for:

uint [ 7 ] x;
{
 "type": "StateVariableDeclaration",
 "name": "x",
 "literal": {
  "type": "Type",
  "literal": "uint",
  "members": [],
  "array_parts": [
   7
  ],
  "start": 8029,
  "end": 8039
 },
 "visibility": null,
 "is_constant": false,
 "value": null,
 "start": 8029,
 "end": 8042
}

Current AST for:

uint[7] x;
{
 "type": "StateVariableDeclaration",
 "name": "x",
 "literal": {
  "type": "Type",
  "literal": "uint",
  "members": [],
  "array_parts": [
   7
  ],
  "start": 8029,
  "end": 8036
 },
 "visibility": null,
 "is_constant": false,
 "value": null,
 "start": 8029,
 "end": 8039
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment