diff --git a/scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala b/scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala index b8416c72..1d9f5656 100644 --- a/scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala +++ b/scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala @@ -293,6 +293,9 @@ class ScoverageInstrumentationComponent(val global: Global, extraAfterPhase: Opt // ignore macro expanded code, do not send to super as we don't want any children to be instrumented case t if t.attachments.all.toString().contains("MacroExpansionAttachment") => t + // ignore "meta" macro generated code + case t if t.pos.isDefined && t.pos.source.path == "" => t + // /** // * Object creation from new. // * Ignoring creation calls to anon functions