Extract AbstractResumedStatement
[yangtools.git] / yang / yang-parser-reactor / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / reactor / SourceSpecificContext.java
index 43eb2332aec630e6797356e58b08408bd5c4450c..f1d2652a26b0c8fcfca2d31539e45109505e39fa 100644 (file)
@@ -101,14 +101,14 @@ public class SourceSpecificContext implements NamespaceStorageNode, NamespaceBeh
         return inProgressPhase;
     }
 
-    Optional<StatementContextBase<?, ?, ?>> lookupDeclaredChild(final StatementContextBase<?, ?, ?> current,
+    Optional<AbstractResumedStatement<?, ?, ?>> lookupDeclaredChild(final AbstractResumedStatement<?, ?, ?> current,
             final int childId) {
         if (current == null) {
             return Optional.empty();
         }
 
         // Fast path: we are entering a statement which was emitted in previous phase
-        StatementContextBase<?, ?, ?> existing = current.lookupSubstatement(childId);
+        AbstractResumedStatement<?, ?, ?> existing = current.lookupSubstatement(childId);
         while (existing != null && StatementSource.CONTEXT == existing.getStatementSource()) {
             existing = existing.lookupSubstatement(childId);
         }
@@ -116,8 +116,8 @@ public class SourceSpecificContext implements NamespaceStorageNode, NamespaceBeh
         return Optional.ofNullable(existing);
     }
 
-    StatementContextBase<?, ?, ?> createDeclaredChild(final StatementContextBase<?, ?, ?> current, final int childId,
-            final QName name, final String argument, final StatementSourceReference ref) {
+    AbstractResumedStatement<?, ?, ?> createDeclaredChild(final AbstractResumedStatement<?, ?, ?> current,
+            final int childId, final QName name, final String argument, final StatementSourceReference ref) {
         StatementDefinitionContext<?, ?, ?> def = currentContext.getStatementDefinition(getRootVersion(), name);
         if (def == null) {
             def = currentContext.getModelDefinedStatementDefinition(name);