Closed duaraghav8 closed 7 years ago
Hi @duaraghav8! Are you using latest master? Rules to parse these cases were added only very recently. Are you going to try to plug SP into Solium?
hey @cgewecke let me update my module and re-try. I AM currently working on moving to SP and deprecating solparse
it works in 0.3.0, my bad :)
@cgewecke IDK I might be doing something stupid here, but I still can't get it to work.
when I remove the { x: 100 }
from inside fs ()
, it gets parsed with no trouble.
using latest version
Can you please use the below code and see if SP parses it without any problems for you?
contract foo {\n struct fs { uint x; }\n function b () {\n if (true) fs ({ x: 100 });\n }\n}\n
@duaraghav8 I'm sorry I should have been clearer above - these changes are in master but haven't been published to npm yet. That segment should parse when the version gets bumped. . .
oh cool. Just let me know when you guys are planning to make the next release.
According to solidity struct doc, this should get compiled:
(compiles in solc)
However, SP throws a parse error
this is because it doesn't recognise patterns like:
where foo is: