Reformulate StatementContextFactory.createEffective()
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / rpc / RpcEffectiveStatementImpl.java
index 48b20a66356d5dccd2eb16e03ca55462ff91f23b..741d06adde16716cdf17769a8906527d4464f0cc 100644 (file)
@@ -19,17 +19,17 @@ import org.opendaylight.yangtools.yang.model.api.stmt.RpcEffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.RpcStatement;
 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredEffectiveStatement.DefaultWithDataTree.WithSubstatements;
 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementMixins.OperationDefinitionMixin;
-import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
+import org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference;
 
 final class RpcEffectiveStatementImpl extends WithSubstatements<QName, RpcStatement, RpcEffectiveStatement>
         implements RpcDefinition, RpcEffectiveStatement, OperationDefinitionMixin<RpcStatement> {
     private final @NonNull SchemaPath path;
     private final int flags;
 
-    RpcEffectiveStatementImpl(final RpcStatement declared, final SchemaPath path, final int flags,
-            final StmtContext<QName, RpcStatement, RpcEffectiveStatement> ctx,
-            final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
-        super(declared, ctx, substatements);
+    RpcEffectiveStatementImpl(final RpcStatement declared,
+        final ImmutableList<? extends EffectiveStatement<?, ?>> substatements, final StatementSourceReference ref,
+            final int flags, final SchemaPath path) {
+        super(declared, substatements, ref);
         this.path = requireNonNull(path);
         this.flags = flags;
     }