From f1654fcd9c98ed607eebc8b3025e90a1022b44d0 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Tue, 19 Dec 2017 17:38:17 +0700 Subject: [PATCH] Remove .DS_Store files --- .DS_Store | Bin 8196 -> 0 bytes .gitignore | 1 + assets/.DS_Store | Bin 6148 -> 0 bytes assets/img/.DS_Store | Bin 6148 -> 0 bytes src/app/editor/contextualListener.js | 5 +++-- 5 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 .DS_Store delete mode 100644 assets/.DS_Store delete mode 100644 assets/img/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 21e42f8ebdb9a8355d9050597005a33cceae41a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHML2lDP6#dht;H0f+C8T!g4HApCYLQA72q~oPq7ooP5G(+-c487!*REoxX$e8u zaEEdPZo&i^i!&5sY0h1LeX*EWjJh2 z+mW)0PD0U1=#hoaP=p*EJXgX=)ReWYRlq7Ru7G+0utq+4sJZ;zj}jkn{yIHCz57cR z>7Ybw)TWR!&hvA)uLiDijsvz$F(r665EMCL$>7X_lL6<^F<2>%PU(;$gZ0^9-2gtt zCjd7!us{EX_510OUcop2C<@bTef_(bnl8=Uxal|*r!rr8+vp_yM&@O`wC;6Z^U*Ue z>-f6=B1xi)zURLTgZ|#a?X4uvyf6;Bk{q@IK;FCx<5tqIC%w3pNb1K^{2;uVK-f;Hc*@jvPC|{MRs_nA!%OBcI1tfakRabOJ^P zb06DTyk_C#)?A^-v`bsGLrm;<+}2oC@?Bg!{}VgiMr%RnFdF{k^FO~60AZVRf5vIhs`@0 z?}i_RwQ3x6^5wUu4^}|kqRPDQ3p{K@TdV?COo3@NpJmSfcP798zhbkt)3FLz1^%T1 zqO{%EuEXQ`PfF7{=h`mnJ}MW+jg*xXG%_8BmFYO_#UF;~yMQvMrtL^soI&~TF9ML! N*yq2L-Zs}*f#2m;q%Hse diff --git a/.gitignore b/.gitignore index 349416d020..99ccc8b448 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ npm-debug.log* babelify-src package-lock.json remix +.DS_Store diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index e3562e55f6482ff65267714d687da39948a8d5ec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}&BV5T4~n7mSgE2_Abf@xTF0kb^O45D(r=YV@E6TR>=1x`q~sBBqa_kKmj5 z20o6?{$PUO)xXRnv)}CO%x?E=rz80b49Itvh89E+9R@S+Zx=_l-jt|~WZ?<~gb>d~K7Wc#gAaY^&d$e*i=(_z zbZx$x7wh zM$N+dz6fL24?6>u?6*4@a(?QEZ855gVc3q;JdPgVJjZj*LUBCau2xG{wK6GL<65m; zvUX~<$t1^%o0Yx8%l_@%_JtV4+I14JI1Z(SeOB0T46jR)V(r`A4**1JO2^XhaVR z)2WC$m6;NQnc9KrbR4%$e4Y5PhpD0yeP`%Pp;f5v**E5DV-4fM`?>;gS=LV!40EU#aiytjd{d6_FX3 zeRH!jv%3#&KLCX3)6E1J0T@z+K}L_r-P^TOf`uX1*x(8q+@Zy~r_f(?Y3}=|Iqyfz zIrp#mFK~)ujB(Gk)E7;Ay=>Ygqeay#_2?}NE#LqTxW$Sqf58F`*I!drVS*F-496Vf zd8^jhw_3TNH_m`F;0!ne&cKf`z%yGi+%xpn8E^)iflmgsKSZjqDwquO*1<;CXY~(+ z656^T3uD2mU@~M6C0HuaQbT!S1WTtsmbj{5GPHDrJTmK)kv|?UA&*Xf%;5-?p|{R} zGtgyV*FHx&|Ihi$^gi;tDgNaQI0OHTfiRfOXHzb!oUL2S(^(s-msE-3k_-y%&Lw~! h+D8s^r}anKjH?PJLsgMKrxX1mkO}d|8TbVT-T@X8F023m diff --git a/src/app/editor/contextualListener.js b/src/app/editor/contextualListener.js index 2c2530fa38..51bdec10f2 100644 --- a/src/app/editor/contextualListener.js +++ b/src/app/editor/contextualListener.js @@ -143,12 +143,13 @@ class ContextualListener { var executionCost var codeDepositCost if (node.name === 'FunctionDefinition') { + var visibility = node.attributes.visibility if (!node.attributes.isConstructor) { var fnName = node.attributes.name var fn = fnName + this._getInputParams(node) - if (node.attributes.visibility === 'public') { + if (visibility === 'public' || visibility === 'external') { executionCost = this.estimationObj.external[fn] - } else if (node.attributes.visibility === 'private') { + } else if (visibility === 'private' || visibility === 'internal') { executionCost = this.estimationObj.internal[fn] } } else {