Allow derived context to be reused
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / action / ActionStatementSupport.java
index 9af9e29914c4cc61ecf506fa21f4a5bb34228e64..7a661f2fd40479e0d03e3b2241526aed6f3d29c1 100644 (file)
@@ -119,4 +119,11 @@ public final class ActionStatementSupport extends
             throw new SourceException(e.getMessage(), stmt, e);
         }
     }
+
+    @Override
+    public ActionEffectiveStatement copyEffective(final Current<QName, ActionStatement> stmt,
+            final ActionEffectiveStatement original) {
+        return new ActionEffectiveStatementImpl((ActionEffectiveStatementImpl) original, stmt.wrapSchemaPath(),
+            EffectiveStatementMixins.historyAndStatusFlags(stmt.history(), original.effectiveSubstatements()));
+    }
 }