mirror of https://github.com/crytic/slither
Improve import alias support (#1133)
* Improve import alias - Fix #962 - Fix #1106 - Fix #1067pull/1149/head
parent
61bcec4468
commit
81daa56f66
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.
@ -0,0 +1,14 @@ |
||||
contract Test{} |
||||
|
||||
|
||||
struct St{ |
||||
uint v; |
||||
} |
||||
|
||||
uint constant A = 0; |
||||
|
||||
library Lib { |
||||
struct Data { |
||||
uint256 version; |
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
import {Test as TestAlias, St as StAlias, A as Aalias, Lib as LibAlias} from "./import.sol"; |
||||
|
||||
contract C is TestAlias{ |
||||
|
||||
using LibAlias for LibAlias.Data; |
||||
|
||||
function f(StAlias storage s) internal{ |
||||
s.v = Aalias; |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"Test": {}, |
||||
"Lib": {}, |
||||
"C": { |
||||
"f(St)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
Loading…
Reference in new issue