Skip to content

Commit

Permalink
Merge pull request #1387 from crytic/dev-modifier-virtual
Browse files Browse the repository at this point in the history
Improve support for virtual modifier
  • Loading branch information
montyly authored Sep 27, 2022
2 parents 6ee3adf + 7951ec1 commit 8c01f95
Show file tree
Hide file tree
Showing 225 changed files with 394 additions and 3 deletions.
2 changes: 1 addition & 1 deletion slither/solc_parsing/declarations/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def analyze_content(self):
self._content_was_analyzed = True

if self.is_compact_ast:
body = self._functionNotParsed["body"]
body = self._functionNotParsed.get("body", None)

if body and body[self.get_key()] == "Block":
self._function.is_implemented = True
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.0-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.0-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.1-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.1-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.10-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.10-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.11-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.11-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.12-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.12-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.13-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.13-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.14-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.14-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.15-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.15-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.16-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.16-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.17-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.17-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.18-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.18-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.19-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.19-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.2-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.2-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.20-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.20-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.21-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.21-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.22-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.22-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.23-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.23-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.24-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.24-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.25-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.25-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.26-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.26-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.3-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.3-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.4-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.4-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.5-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.5-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.6-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.6-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.7-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.7-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.8-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.8-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.9-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.4.9-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.0-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.0-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.1-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.1-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.10-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.10-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.11-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.11-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.12-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.12-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.13-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.13-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.14-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.14-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.15-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.15-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.16-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.16-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.17-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.17-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.2-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.2-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.3-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.3-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.4-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.4-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.5-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.5-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.6-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.6-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.7-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.7-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.8-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.8-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.9-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.5.9-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.0-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.0-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.1-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.1-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.10-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.10-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.11-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.11-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.12-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.12-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.2-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.2-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.3-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.3-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.4-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.4-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.5-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.5-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.6-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.6-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.7-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.7-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.8-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.8-legacy.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.9-compact.zip
Binary file not shown.
Binary file modified tests/ast-parsing/compile/modifier-all.sol-0.6.9-legacy.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.0-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.0-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.1-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.1-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.2-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.2-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.3-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.3-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.4-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.4-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.5-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.5-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.6-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.7.6-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.0-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.1-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.10-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.11-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.12-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.13-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.14-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.15-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.2-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.3-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
12 changes: 12 additions & 0 deletions tests/ast-parsing/expected/modifier-0.7.0.sol-0.8.4-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"A": {
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n",
"m()": "digraph{\n}\n"
},
"C": {
"onePlaceholder()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"multiplePlaceholders()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n1->2;\n2[label=\"Node Type: _ 2\n\"];\n2->3;\n3[label=\"Node Type: _ 3\n\"];\n}\n",
"acceptsVar(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n",
"noParams()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n"
}
}
Loading

0 comments on commit 8c01f95

Please sign in to comment.