From 672c4b312ce1002a04354da5731bc386e66888cc Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Tue, 7 Jun 2022 13:15:52 +0200 Subject: [PATCH 1/2] Improve support for IdentifierPath (solidity 0.8) --- .../expressions/expression_parsing.py | 4 +++- .../solc_parsing/expressions/find_variable.py | 13 ++++++++++++- ...odifier_identifier_path.sol-0.8.0-compact.zip | Bin 0 -> 1507 bytes ...odifier_identifier_path.sol-0.8.1-compact.zip | Bin 0 -> 1506 bytes ...difier_identifier_path.sol-0.8.10-compact.zip | Bin 0 -> 1547 bytes ...difier_identifier_path.sol-0.8.11-compact.zip | Bin 0 -> 1546 bytes ...difier_identifier_path.sol-0.8.12-compact.zip | Bin 0 -> 1544 bytes ...odifier_identifier_path.sol-0.8.2-compact.zip | Bin 0 -> 1535 bytes ...odifier_identifier_path.sol-0.8.3-compact.zip | Bin 0 -> 1537 bytes ...odifier_identifier_path.sol-0.8.4-compact.zip | Bin 0 -> 1540 bytes ...odifier_identifier_path.sol-0.8.5-compact.zip | Bin 0 -> 1540 bytes ...odifier_identifier_path.sol-0.8.6-compact.zip | Bin 0 -> 1540 bytes ...odifier_identifier_path.sol-0.8.7-compact.zip | Bin 0 -> 1542 bytes ...odifier_identifier_path.sol-0.8.8-compact.zip | Bin 0 -> 1533 bytes ...odifier_identifier_path.sol-0.8.9-compact.zip | Bin 0 -> 1545 bytes ...difier_identifier_path.sol-0.8.0-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.1-compact.json | 10 ++++++++++ ...ifier_identifier_path.sol-0.8.10-compact.json | 10 ++++++++++ ...ifier_identifier_path.sol-0.8.11-compact.json | 10 ++++++++++ ...ifier_identifier_path.sol-0.8.12-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.2-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.3-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.4-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.5-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.6-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.7-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.8-compact.json | 10 ++++++++++ ...difier_identifier_path.sol-0.8.9-compact.json | 10 ++++++++++ tests/ast-parsing/modifier_identifier_path.sol | 12 ++++++++++++ tests/test_ast_parsing.py | 1 + 30 files changed, 158 insertions(+), 2 deletions(-) create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.0-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.1-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.10-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.11-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.12-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.2-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.3-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.4-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.5-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.6-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.7-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.8-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.9-compact.zip create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.0-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.1-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.10-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.11-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.12-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.2-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.3-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.4-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.5-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.6-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.7-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.8-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.9-compact.json create mode 100644 tests/ast-parsing/modifier_identifier_path.sol diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index 759d3d6a2..b0228e094 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/slither/solc_parsing/expressions/expression_parsing.py @@ -636,7 +636,9 @@ def parse_expression(expression: Dict, caller_context: CallerContextExpression) else: referenced_declaration = None - var, was_created = find_variable(value, caller_context, referenced_declaration) + var, was_created = find_variable( + value, caller_context, referenced_declaration, is_identifier_path=True + ) if was_created: var.set_offset(src, caller_context.compilation_unit) diff --git a/slither/solc_parsing/expressions/find_variable.py b/slither/solc_parsing/expressions/find_variable.py index d1236f78e..c908c5d16 100644 --- a/slither/solc_parsing/expressions/find_variable.py +++ b/slither/solc_parsing/expressions/find_variable.py @@ -155,6 +155,7 @@ def _find_in_contract( contract: Optional[Contract], contract_declarer: Optional[Contract], is_super: bool, + is_identifier_path: bool = False, ) -> Optional[Union[Variable, Function, Contract, Event, Enum, Structure, CustomError]]: if contract is None or contract_declarer is None: return None @@ -197,6 +198,13 @@ def _find_in_contract( if var_name in modifiers: return modifiers[var_name] + if is_identifier_path: + for sig, modifier in modifiers.items(): + if "(" in sig: + sig = sig[0 : sig.find("(")] + if sig == var_name: + return modifier + # structures are looked on the contract declarer structures = contract.structures_as_dict if var_name in structures: @@ -294,6 +302,7 @@ def find_variable( caller_context: CallerContextExpression, referenced_declaration: Optional[int] = None, is_super: bool = False, + is_identifier_path: bool = False, ) -> Tuple[ Union[ Variable, @@ -321,6 +330,8 @@ def find_variable( :type referenced_declaration: :param is_super: :type is_super: + :param is_identifier_path: + :type is_identifier_path: :return: :rtype: """ @@ -381,7 +392,7 @@ def find_variable( else: assert isinstance(underlying_func, FunctionTopLevel) - ret = _find_in_contract(var_name, contract, contract_declarer, is_super) + ret = _find_in_contract(var_name, contract, contract_declarer, is_super, is_identifier_path) if ret: return ret, False diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.0-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.0-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..f8a3c1a16ac6e8ba34e5df8d09f7796ca198ac85 GIT binary patch literal 1507 zcmb7^Z9LNn0LTBckrc~foO3d)M4nnG(LBr&BQiZ$wq#>tMk7xn=5cu_PoF3>$#LmP zOVRRB3VDtTcNKZwFj+^Mr**n}eJ}3!d-46f`Mv$RyMQ5RKn73()~RiH3G8}2LKXmq z)BwN~0D#~SGR>bxVUlQM3M2gA8R{EOH4Y1*lPFQ4AhJ`S;LSz9S z07w7;8xAJ`wT`-QtH0;zVa4JW1`XMym6CNrlnU9Et>({9XBCqo|;cKO2 z$;V5LSzsg*1$24K@5Bh7zz^!{ab5QwXM?W&;Q={Y7R1+u148tzsWtS*gHZCnD_+Oj?3+5)g$td_4LYQ z7+TjoAWN!0AR>-fJU@+4h`2~ozEd?`scTAbGZ3!zUx?uL>X|E>Jnr0hnZ^l$qUy9{t|?<*1;C<4b{f7KdAK_sCgFPer4NZb>U(A zUt27B<6Bwk4#nVsQDm=CXN~47hn*Q}+myTs0=Q#6_Rve7p|v^%sn>(ugCmwU%pZu( zKv3hQwx#ru2-}9ZRL}iWWVo&R%&3t>KJdr@B@`V>QW5_9~&L?WD z+2wl{uJqefke?uEq9uHd>JIAaoZxyo7fut34nS5s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0&9mIG}5Dio}_t^GTBSR@SZ8QcfInLB*<|-Boz%rDdV9f4VA7qPUCFZNR zu$)J|cIu*{1bdU0GJNVFUkMNT(BgG$(8%fKVgG}zf#AjfH@&|`s~(6+@RZ;h41;x? zY$IIpWfU#0k&7n51`7TtPNS9H)i0Uvb0meeyI}3m7LMZPSbf6dvF+2R5Jedp^`>7( z6bSkkoZuzu^maKs@zSB%qq6$`85HOI+Pqo)%V;=Bl{?L|w|b)yFGnW=_c$Si1dPu5 z(*-~2!Qq5=-yKR?AK8-km-Merg=t64WRg-(-p|p_esOPcYc(sh)f>MwerKk9Cbgf| zw4k3m%^;2m3`t;^ZMcCeNi~qmEId=j@p7 z3R!=ugmD1BLQeOjseCT#^7M2 z#c(_Rb!g_5X9Z{-U}HDvai)MW!N#$j-z~78@?}W8@sCJ|<7E zv3w`kQ@aLPiiv^Fc6L|`C0dLq)~Ivd7J$#?P7zGOC2f{F?h}c_??d%Fcdbl!J0*=X z4=6ptk;qw1&_{5bhG3gwu(e_UP(uh!phb3kRY@0g>w%mS$}1tw%YREijwH z)2&EN@z6{BAjFB-%H#gIs7y+V7gmvtOP4NHjyVkJUg%?uuTd>p{&ZPxbQ&U7m{|+4 zqM1^}z;$|@eNUC#(257TRK;-m(5`_Ad(oNvB;UQdcFmw@q@NgG9WYq_N6&_{k=Ers z=rg3#t01(o&Lky|+a-vkv&qEIjv0x zYVq)LVu596rP8chZQqG`nr{CM+9RPR-MO1m%AS0h4akrJs?K+2-R2ux8#Z<$(0}{( eSh@csn(YVvuYGN8z??sRY{&IDX27w@0pM?%l+mpK literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.10-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.10-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..5fb6cde6b1ab3ec7bf2cb5ab40dfe88cdb4a2b24 GIT binary patch literal 1547 zcmb7^X*|;n0LTCCO-qzxJcXJ`%(-0gv?Aq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lM9 zmzg}gAvj-K&*A7yXJhEd)2m1Y@7aE83)U?zFwKt5MV`nW8bI3ZVa4-mSVXxyA0Nmw zCM+Ig@Rf+p;AF8!*bL6YXUi5k{duGzP2nr%%s6}%+Gs>}2nUifvutu#)^zUc z2H)P7Fmx zvh-l&9KX$Zd<&l)y>M)g1*dNFc=rMqycu1DP1QGDzJ&|d9UQc`$7FoB)+fhIjbwAU zs^?r4LZ2FcZV0T?7*Za(uWCQ=9EzC3c%&QH-1VmwTpDNy!{KPOkN#Pp3Ea00^c32O zI^KagyI5ZJVf|3Asmh?uz}ivGY8tXki7&twF;pd{yD#v<0O%2p4Awj*Ikl){1siC zjqS*J-_B%6-wi0Qhf*BfuZPE%6`Ezk^1uCd39P$?)HFo);_z01Ou&~{QV*=1>0Ly(ux-r6*)8Dv%B18;VvRm=hXc@7K$P5 zwsg8+Lyptzy^7cwr)cC8pw7=4$NbcqM4;MEXIRVnpNUa=ZMiiu#5# ze(Ygpf-6Z_lIVUdT2uB;GE&EDtMm4ZYpEYiDeZx zs$dJ*Tqng$HrTU%WFk$kQQFB*a{x5 zG4?8oPF1;OHXgwBG@q_ffTc)UB#2r;IYJZ&{RrZQOQ_uYvpt)vcKx-r!Hd!1Dl){5 zz}qFbFDdgCUGdNoT8Oc9OYQ~mxz@;;PX54(gqxGVK5N1Mw(<`#|C1DfpZLFyc5?y= R|NII3=(!)v`{8>4_#2?1%v%5e literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.2-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.2-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..b5fea85ed10758b44f497479882939b141ff6b84 GIT binary patch literal 1535 zcmb7^dmz&Z0LOpKG=)%>x_Km;_iVN0)y!)%&&X@GDJ7#!WLJqa ziq26XDMhU9yfqaw^6I+gaCP_h{c+##AD{0(-+w=7H;|kiAPXo10O6T$?+XQ*4Hy9Y zH2}aI0D!2N2m+pfB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&5q>}TPZ29?X55&Bal?s7JIy!1v*R3+kmK=U>tL#B~`Q%(^@Hk3q9&fXGM?KfdH2*({EM`Q(Vb3M;UZ^0eUwh| ziXJ_#Q6kEIb<~_I1gGdRdk+*3=RM3XT7Hxu_uGBPwWluLo2(p?LkiP5`>;o*nOBwcI2V=uR3suUqoMdoZrC;AHc;d5bk+o8Z&?>3m-dcPmSvIW1; zHDwCUmwdX32+$=xr@q+S6wq1<(QY!bcA)>3@i!m;lXRKy_`hmKyMg7u|75;3_!|qp IX&wOn2A-zQod5s; literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.3-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.3-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..728beb81f1b5d58e398ac780e49e1a6831ebadaa GIT binary patch literal 1537 zcmb7^X*|;n0LTB1Im!`h>`^qbk>yxx(}P-cJq#)3Lt?ql*lf-@Hkznh6{!$oG09Di z6m726Bohx(LZRh(u*va=r=I8a^WypaUVMLVes8}HcqwTdAPFb|k^$Z4bRzu?aUcMQ zfC7LC005Umy#ss$e8LC;-aa9ee<#s{;%`I_4JPVC43pc`P@*q|6Tl2;Xn9ac@^~CZ zuE}b1-Y99WaVKwmf%=^u<9cbm+sjHS5|Iku6PYDv28Kr1Yp4*BNk)8I_2>pUlQgMo zrklauhjfK!9L2+3I`lDLEa{nW@h!vE33M2Ld~=5a-PXoomOGWFw}_UgrHv|q+IKG% zt$nFF7{pW~%(9MUl*IHL;6q3U`dtJnF(n_w8Y%|`U-9?Qa17+8mNiHht$P-l=;+=BU}XXtpwqwB3f z?3>j?UFi#~YW9@^|Dg8um{idn1OM}`I8IMwIQiYqge*B2ZTfrt#f5VZ^VA!~ES8R1 z%oztWr-<|Hs(k2?L2lFFNm1h9RMyEf%CV&@HOf(jC4Dm;Hlx=1VAQW*VtXomT8NIu zLaZ@%%o?Rm>re#*Oozn!u5B-u*VxNr+*t9uOy9VodAnAw7PDz$fM2goGxR)k6Hx-K z-t`Ms{(}9Q6_PJ5rm2^W$t@>`J5%B{nK4BMAwYTz}J!@lHkikwey z_d+(Jp!U#ynuPs^bQgp-Yx0V*Y0TJdiUwKk-}zRCNp(dyXO6zv>wgBlVOq;EzxSfs zt_4PoExFE*{e-%uS4=+22;Z_8q>I~zN@IfcsJwc+oBz1};GC6VWxnuu-QY!VC%#6DH`m+z_0H-#!h_O3+KQwNXgv>wdp<*yE0tA=Xz)ko0}DB~9nzJelQTO4 z@fK?*ngdFu3ksUNn`7dh0r-TlIN64jK);DR^M1;RWA>rV3`NL&SRGc|nV2(^+j$~* z+4-|$VT%>k!dOABkpJQd-Q+3F87DG6uL&j>h$vS|S+ol8uTmbZ>+yZ)%DH1A1Iv0pjA;uG5v0cMhR zeX^&RVOB=#lCUgig6^_cv1>=limq$_5*j zE$)E_GEk@BQFD0&nu8nQD4A@P;bbZX3SCK26 z&cZ-6Hn?=yaW!H60(a@!y=`}4`!#nt`s1Fx;Ncx@?54tNPkoYa5o_=l1I2~FZB{;!-J@F1C=KZzf8 M|G~5$q6dJ#0c7dMw*UYD literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.4-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.4-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..1eb88493e65a540d7a635b94019e1ceb5f093d32 GIT binary patch literal 1540 zcmb7^X*|>k0EYi_IA$A1?9Y{qXc%&aa)eMMvyOB)a>Y#Km~l1@6+dHyFfwIar42dP zFm7@VW)mW!Vb>Cg+=e1Ev)cW*Ht#ftmwgKoo!k^j$7u;>Ron0DvX~ z06G8w1mpYyumPAbuK+(xNW{Mr?-Sv#6^;w?!VvJdum~@oFkk6S=z=FX0?NL$ixw{6! zjh4I>t$1bap4WTp(cCzqyZ2t7uO;NRN)i%rJ44u5QYOk??lAsDyw(6(`c9p&PAVk% zG%v`{@c0)eXU=%9QrsjK-L*}u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T$)eca90&O z?AG7BkTcnJQ|ukKwRp{&%#sK32eD0XM>`PM9P-~rK9KT1i3R<@|Mjz@oq*tvALyW- L2c#Uh9svFZQ2Nv* literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.5-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.5-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..316ec58632cc9b25f57cccca07cbee229b659590 GIT binary patch literal 1540 zcmb7^X*|;n0LTAGSur9vVQnHT**u1v&s>q4CgH(mn``bnIUgoN<;bxZJ*CH0A9F4# z_s8QZnxn<&py5NyEqe4kub&ss@Au;Sd-HqywYTOwW(4p8V1S?4?;Mo)0&mI>0QaQ; zKobCfAQG17N5qAB5wW=7h<|5@cLV_*P73tG#e|T;BD}oAdK~am|W+hmE@PK@ODF3|!F0MDKB|M(f(`d3=Cr`MVXQO1|w= zx-O=8L8@**gH+RC(mb!>)U_hlOzNIvJzg!leVJ(^JK7~T8@KMwdT`z`G%Z&!acs<3 zt#?K>Wibqu8$kShLw%kpdpTBR5cHlO{+E@bOK1$4V}XUi3Z%2i)2R)0h$ur?OVaD; zH?;hV()2eJWXdkDLbrHgql}fi5;T=j9A>e+s#X}AZ9YpMIHBxY6IvjqZr4rJHSXAiyqpxN#k)oEw?#y!=vj8x9H5HI)-MYW2~8Z&!0PD;_k($$Li-!$|(xdlpx$1 z`yGf~7(#Q(;bbtDe2nQ_UQie63=g6 zKLac@VaMBsbdJ|=IOBZJmXz&Vw9ig>l?&z*7`{c&{J8wJ5Em&Gxh>;nnou2D01n1P%f{3pic@0j5r>rCWMW4K96*SOQFl$%o^1V+jA|T?yabHgq$w_RhL1=D=wQ6QY%@NS>;y#=`_~-`JrE|%&aj=>t<03Q8 z ztaM5Vnl>TZJ5ies&4w2F>HemimOHGjo8R$7Bc`eu~n$!gc7S;HmVQ&#ktZKWK^3hr#Gfo+Pu-%Ydix0TOh6Sh37-q zq?tVVKpA?Me(^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RRvwABhJtakA*4(=UB|b=I1tMz7dB z&z8d|m8${Isnwr^u;hMsXwdQ z*~I$@Hy%2->-lQnIsA2cw-41G>SSj3cv7eUhfNuFhNKUx5D$f1M9GWP7CzE@sjr~< zU*j=QI-C}j#Bus{u2c5S=CFOsTD)9sV*U#?GAekRO OiLIiyn7ieA0QehI7ShE4 literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.7-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.7-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..041c5ea9eae38b1ceca80bbaf2342fa0adb0a084 GIT binary patch literal 1542 zcmb7^X*|;n0LTBvHX%o2$%kB{fNa^DK($peRUIca!4ItP@;?I8;IXw)X^`c$!{YT= zAs-#DxxcG#V=-#;dZaUMqsJ2~8m4s%sT!6lehj7Z z?`43Pv$0zp@7B0J;e7|15Xn*#71kPZ18k^#3O-es$WRr`uJfVOw1qBzH9xY z&hS$9lp^CfidbG{&f=o%+UJ#7#EuV>CH&kZBHfnucMYH2usaBjwq5muN{(ptx6Zo` zKhF4eg61prB2Y0Rta`)J+p!pbUz7KCL{GoDQVR)M)JV9=D0rOnLMmA>dsVVBIxp(z zxS@49m&t}rqz>FH5@5ivgO?@5Zs~wk?krL#_x$(~x8Vtyqh6U$(v^rj!z0aebjyJVnt>pJq&n|)5b#g(@#Kq~(9qTBtucTjwj?==X zNiIA{FF>|79r9|^0lPTUvz)GValoP229lmNZ_YhT@{J!I9pGz`09rEBU`GKzu zV85q7u{?8?Mhb6DFo;hvD%;=Mq!fl3hb|37l?zBH~1nA)%h8)|g&w*Yx_7)>s5Q zeF>`KBZD~H^;02B_k00skb$nM=bXEj`yTP8y#Z;PgBi|qdp~l$%tRos;?Ddr1s9ss zJbkS(Gh;q#&d;>`!%e!P9+zE_#y-?~nXVOMiroMGofKm2Kwiq#lGW~-fhbSs;oE3Q zmF1%xIHH%zM>7=eMt-7EgKJ;z2SD&I)KG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UUVWby{||;efSLqO2t4ovwvBm zk|Wi4*Xy9!Q7hEr8AaY@XVd*Wjl`MP4_`<$$Kq`dq2ch*YW+o#diDaiFr&VlV+KlS zT;ProxNBL|IC-{Pk(>_MA|@b%^I8@z_)1`KY#^^ir>gpV_f@gT{q|!0oZ4w95}u;q z@AB-MhrR9KQin9q=!=1UDGp8g4Z$C^LD6rJQ{%+B$yC^YK+*6Vqg>%ug@g&&Yx134 zd?{kvso}nO>9kbL+NUR~W?l@PNZQhK)0XS07S?Ssv+g*YGNGC>|7_)$PZo8wR$nWW zFQu3T+q5xxNjyW*DVXcs`y!J*g#^d1WTj&qv7?JL=}Fj04YVg@QwH|!5rTDd(02k- zR&}KVoH5!)U^7#+S@SGc+KepNA-Ki4Vf~{-HTt%(I#XWR_<^s;!eQ$+wdlecVf2D+ z#QnHK`>m!tLz@U?v`$=Xe)|Eob`;U(NVrd+P)&jRh#=dp(R}ALhj`RJfwq)s$N4M` z%TLhGEa|LkT5ofcL6k%xgY$Btja;+5`p=ckD9LJX{K;DMFZn|uv}bF=B29yT6_>9a z$aLoBKu8PeM(QHbk>4}M!rnO83J4-W|E=O5HvT7Z0zdJ8#q3}!wD0Fn;77fFFzJWn G0pM>jV$f~? literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.9-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.9-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..1a06a3c57b31ede0971d44cab7c828531b42e627 GIT binary patch literal 1545 zcmb7^c_7mZ0LOo}(a5o|Ig+6nxpG9xRqjZxhQ}PaSKch!a};vrKAMGDV9`}_UzzTZDS-+#XUeq0>E5DNeVhyx-x_GzElrXo8*0LYdB z09^n8evb^sh2lb@{Bgk{c+$UhzzKiED=H=7F;h z^CNXdA zxEw2pX3uxFeLP^UAQgBH=`5$eA%m89&oO?sYuIcfCoFROeW=y z7mW1y{xR1`z4~K4KR_>V*;RZfg<9)rbJvy$GGmUufPGSBk^65IZ2MI=2PO42FiAvi zLr~sE;%X151STr+!^C71c+h&IdPpxB4h$(?@ySQK<9)ShV zOe@ib`o@_QhO*PHMUC86AtYyh*yhn1uM_lmH~$l(`Y9DJb)mlMfXVe>)|SzO&?Uoi zW<18bm8YQM*w^!=cKX$$pu?C`G&sDZcvnIOZLU(@&eJp})pCupJNI)AO`fxHB64!S zabNxxypD`cf|uRhC3gK#LWX$;d}n=&Mz6mAHm}=?7hNMIp=D`qRYk>ZI1OXK4c~4> zQ5H(GBSeYdl;z=MiGEu@1B`;SBh}fO5)_~J44Lp}8tQFA`^;q9x7>S|G(LDplz}xe zTQ|o~skd5Y)wL`(EHTj<@C|;>!796(BX;=8t=q z@Z&M|>g|1(x@~gk3ns!fg7))o7lQJh=a! z(}s2wpS1~1XddNTT|9KZH%`Onl*veyWL$K~*Yg9~M_4!FcV6CEEw9fi@=cc59pUlt zJel_y+ zkZa#LJEe!w`~!`R5YX~w)3I)}v=;^t{vx1sN@ES>V~xIk7lY= zkNm|+N!09Ab5Op6n9B!y%?Zbk-SyV%f?C_j;X;k>qcG|Af%!3Xzz^oSx}J2r9h2!E z-nkVA+A(XRU&Y*;4fxWm{*R$afS|jrAxST1j1))KVa5D>6NG zv*y|+Jut-?%Q)>~Dg{l~`;h16J>o)^oA=5f`A^&!fwAv$_S6v^`5B=j6hg+7ukAvx$p!=FTyt2IZS#($Ue zAQId<9=Ke8EkgUjPYZ_Y&wd>35N8bpX~~^X-1*QkT;k#=0I~r8x0ZjJ`JW^S{KEg0 Vw2Pyl(667s&-(pj(NEz6z~754$7TQk literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.0-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.0-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.0-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.1-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.1-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.1-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.10-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.10-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.10-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.11-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.11-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.11-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.12-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.12-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.12-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.2-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.2-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.2-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.3-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.3-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.3-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.4-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.4-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.4-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.5-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.5-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.5-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.6-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.6-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.6-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.7-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.7-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.7-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.8-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.8-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.8-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.9-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.9-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.9-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/modifier_identifier_path.sol b/tests/ast-parsing/modifier_identifier_path.sol new file mode 100644 index 000000000..196de8d61 --- /dev/null +++ b/tests/ast-parsing/modifier_identifier_path.sol @@ -0,0 +1,12 @@ +contract A{ + + function f() public m {} + modifier m()virtual {_;} + +} + +contract B is A{ + + modifier m() override {_;} + +} diff --git a/tests/test_ast_parsing.py b/tests/test_ast_parsing.py index eafe6a2f3..c8d24e741 100644 --- a/tests/test_ast_parsing.py +++ b/tests/test_ast_parsing.py @@ -404,6 +404,7 @@ ALL_TESTS = [ # 0.8.9 crashes on our testcase Test("user_defined_types.sol", ["0.8.8"] + make_version(8, 10, 12)), Test("bytes_call.sol", ["0.8.12"]), + Test("modifier_identifier_path.sol", VERSIONS_08), ] # create the output folder if needed try: From a34c87812b7b02f3335dd3a69c8d681c51a6ad07 Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Mon, 15 Aug 2022 17:13:27 +0200 Subject: [PATCH 2/2] Add tests for solc 0.8.13+ --- ...difier_identifier_path.sol-0.8.13-compact.zip | Bin 0 -> 1543 bytes ...difier_identifier_path.sol-0.8.14-compact.zip | Bin 0 -> 1546 bytes ...difier_identifier_path.sol-0.8.15-compact.zip | Bin 0 -> 1547 bytes ...ifier_identifier_path.sol-0.8.13-compact.json | 10 ++++++++++ ...ifier_identifier_path.sol-0.8.14-compact.json | 10 ++++++++++ ...ifier_identifier_path.sol-0.8.15-compact.json | 10 ++++++++++ 6 files changed, 30 insertions(+) create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.13-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.14-compact.zip create mode 100644 tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.15-compact.zip create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.13-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.14-compact.json create mode 100644 tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.15-compact.json diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.13-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.13-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..47066aa8b650a72f72f2a5098cee0c3179304acb GIT binary patch literal 1543 zcmb7^Ydq5n0EYjWWiBH>cgYf)W{f2&lFP3Pxg6KrS!1ze8#9zmX70C|%CQhNhjNK> z%k3aWI+;5aGL=gSA&WAdI_LBGaNhUB^L}~1K905^QFA~9kOuNoW!&ohwBV<}0FbT( z00sa6gpvXY7YO)pe?lOh81e5UpN|MeQ%INm@zG>bc!dA?@PJ@KBp!W{LL!Qbf&pIu zhywt#l$0RDZNsp;L%e!ZXg-%nfVZh9W;&~$fQ?gH6*21{i}=7icx+=tTI3|%2=c^g zX9>;J)aO3`_Blq#xZ;id))Qa_ibABqVNooIiJWqzgQ_eU#YFenDP69E7-WLdj_h0t zJgT+m_`v7ACFO;8^Y%b-T3G1|r$F31;Zf_Q&Ln?9mO-(DjIR(Z}jr zJK3NICf1;-g{5j_A}SRe95Q3i(5vuSiY{gg0yQ#z3xa3|kD&x|XRvYYgObUD;h0V( z&&+;V)55uY#;mw9rV*@aux%@*JFa;xZ{9K7!0imnL4baD^Wf$B>YO8`EmrA{#PCggVE~{<_ovhlhRtu_R$J_mw)h+y5FzTD?RqE5o;J_hP}Lk zN+U!5JIq_)fZ6+W@4Jn~j?!C*Zi&+hVy^1bhZi=HXJxS#Iq$88@*71q^%$X zuIO1VB2t5~ROy=&E;OgXczHEG_wj5d;=8?_gYhsmYq(2Kb#B4k`{j!#@a|*Tt;(RA zT_?ulOLk1Ot-W<09~{_9IGlA7S0-T`hTPwH!GWJM`vmV~hs&jnKAvVEEKB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AOO8u{tv+=r_ z6k_;V4$JS48Qp#)-iS?W8hhNf)#L1{@8mf*?reJRMWHBQ==GFWE$JJI8as z5xqV)yIjIt=leFHND}jLINU&^b5-#!Nl+Bceb`gk{4<^= zohb}siUaT-#APF{=)~l9O%%6uX}r>w?8799tO9m~jX~Po0@K#gPgFy!uH31%NwtwH zV-Vl>c~_NI5aM*$sAMnc4ZoRWFPTQ4#zCC#)jCMvwxY{dhXe(O_@_l`_zLlz1hn|H%mlF&bDlTAwW zW}2&aB3$LWuCNk9`U443PHZ|@s6n@Gob9s%2f=rK*L(AgzmL(`Z1UDp-1YnQF`nkM z5hYkZv$*W`F1kPnl6O|#W+g&^*wEgHot|p6Xady?GTzz=}xTAg*amK_e`#s zXrbB)1Nle>>>1B{)D;D$PKQzgopVi*!88c_3c!21*G_Bxid}q=@f_b zjVqD6g=wW_{~0qYm=-hNg`PVy_Ma%7*YiwhpR{aF@VOQy^JoEt0-l!w4&OSp1 zCNJ!gjucD<7lG%aN%B4ShFjG+FHC%#yYtRa^tK_~>?}CWOKYoZpVh?j0f zLggd3n~LZ%uLkkWh*%l!bLIA07J)>&eRP>`&uItmy&*&>R3z{3urImLV~n$HjB}c< zd45K-OL=Qw71Gw@QN!RI6l(`#OhhQ;X&kCrN0)R1s3US9NBRHu@`jrKNvhlr{9j9> UjwmYq_{nWFc!LES#s`4E0Rhh5NB{r; literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.15-compact.zip b/tests/ast-parsing/compile/modifier_identifier_path.sol-0.8.15-compact.zip new file mode 100644 index 0000000000000000000000000000000000000000..233e4a87ff97cf671338678f36bc3cc6c7e4300b GIT binary patch literal 1547 zcmb7^Ydq5n0EYi#%w=M(XF_3;IgQBSRI(zG}@5vAGQf;jlq&I8Q8|`0ot3PV`0v6a3t;;Q@poqTBVL8{W83EXpUCfENY}04@L! z0|17}$v1VkbpuOB1{+U_753n9Y8^_6X}0ob4vhsrmp#6*P%;h73ow3+9^f;%r6<&U zZg&|Kud3D4&s~e$i6uF^b9--`;}1KMqIM`OQ|P4BZ=sjvVF8-)sDVpz5e-7xY5b}B zyMCSqh(#N_?_;l2Vn1Ma&JVi5u@dij2D2&3Et4-etuVf9W(WF8y}iTP`Ooye?RR5r ze8yag=Wr(Cq}~PJ=L#7G4Vin7447V|rqNW(dEH%6!vbD4eLCwZMURhB{GrMT+7NJ) z*L22LPr$dOBASFtJipGa@ir^$VL>rPW=rLZm2=fH9MwFGF~YLWM^TKBJDxlgm<=u_ zcU`(v1?{LzxUQ38F^`kb`bgUb@Y*;mObd)}j$7rt?R4EcE z)KvL$46SiFr1zANQ1O8KaJPls>Of8;7_5;z-VV1?N(nvg0Wm!+(NAEVX zB@10cd?8pB8QmP>rHN2PXQv@&Mc5RspcmhACrYGC{Pb-7BDJ6A3&$6CXiy*z;Wfvr zl@AQ_!h zI^T zj7C~>uF5~~civc?KP+PN{&eq@)CnD@mDtSfx_V>~Upl~!CrV6{OoiXU)61NrepE%j{JUt!5j!oZ^Q}`|_VEabXm{)AX zl=Eka7;tI^nUAJ!TO-Wo6SAAD?iIFmHSG|Z)zY@v=bp_JP zgXcOdy)WyzgYOhhbu$ZS{yBmVyu^S+z^Net*0{;#I3 TEd&IA{XqM5-Dlpu@&Vv)#ZJ!C literal 0 HcmV?d00001 diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.13-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.13-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.13-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.14-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.14-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.14-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.15-compact.json b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.15-compact.json new file mode 100644 index 000000000..5b48c6fdf --- /dev/null +++ b/tests/ast-parsing/expected/modifier_identifier_path.sol-0.8.15-compact.json @@ -0,0 +1,10 @@ +{ + "A": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + }, + "B": { + "f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n", + "m()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: _ 1\n\"];\n}\n" + } +} \ No newline at end of file