foundry
foundry copied to clipboard
Coverage: Unhandled AST nodes
There are a few AST nodes that are not handled by the coverage visitor:
Unhandled:
YulSwitchYulForLoopYulFunctionDefinitionYulVariableDeclarationYulFunctionCallTupleExpression
I'm not sure what this one is:
ElementaryTypeNameExpression
I'm not sure how to handle these:
MemberAccessNewExpression
cc @seanyoung @jpopesculian @rkrasiuk any ideas on ElementaryTypeNameExpression, MemberAccess, NewExpression?
NewExpression occurs in these three forms which have different parse trees.
(new D{value: 1})();
(new D){value: 1}();
new D{value: 1}();
MemberAccess occurs here in s.f1:
struct S { int f1; };
function f(S s) returns (int) { return s.f1; }
I don't think ElementaryTypeNameExpression is a thing, that's ethereum solidity.
@LucasSte knows about the yul expressions.
There are a few AST nodes that are not handled by the coverage visitor:
Unhandled:
YulSwitchYulForLoopYulFunctionDefinitionYulVariableDeclarationYulFunctionCall
Do you need any help with these nodes? I didn't quite understand the context here.
No, I think I know how to handle those, I'm mostly unsure about the new keyword :smile: