Import directives and struct definitions don't really count as executed code

This commit is contained in:
Andre Medeiros 2018-08-30 13:46:26 -04:00
parent 0230e29a8d
commit f3857e4084

View File

@ -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;