Allow derived context to be reused
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / output / OutputStatementSupport.java
index 9ac6b4a7c6fd8b5446313f3303624f3a1b3b7490..07848beb732edb67fff8e823af569ca28603fc38 100644 (file)
@@ -104,6 +104,20 @@ public final class OutputStatementSupport
         }
     }
 
+    @Override
+    protected OutputEffectiveStatement copyDeclaredEffective(final int flags,
+            final Current<QName, OutputStatement> stmt, final OutputEffectiveStatement original) {
+        return new DeclaredOutputEffectiveStatement(flags, (DeclaredOutputEffectiveStatement) original,
+            stmt.wrapSchemaPath());
+    }
+
+    @Override
+    protected OutputEffectiveStatement copyUndeclaredEffective(final int flags,
+            final Current<QName, OutputStatement> stmt, final OutputEffectiveStatement original) {
+        return new UndeclaredOutputEffectiveStatement(flags, (UndeclaredOutputEffectiveStatement) original,
+            stmt.wrapSchemaPath());
+    }
+
     @Override
     protected OutputEffectiveStatement createDeclaredEffective(final int flags,
             final Current<QName, OutputStatement> stmt,