diff --git a/lib/modules/coverage/contract_source.js b/lib/modules/coverage/contract_source.js index 7bca32a0d..3ca944787 100644 --- a/lib/modules/coverage/contract_source.js +++ b/lib/modules/coverage/contract_source.js @@ -127,9 +127,11 @@ class ContractSource { switch(node.nodeType) { case 'Assignment': case 'EventDefinition': + case 'ImportDirective': case 'Literal': case 'PlaceholderStatement': case 'PragmaDirective': + case 'StructDefinition': case 'VariableDeclaration': // We don't need to do anything with these. Just carry on. break;