* {@link StatementSupport} trait for statements which create intermediate parent node for some of its child nodes.
* An example of this is RFC6020/RFC7950 choice statement, which creates implicit case statements for child containers
* and others.
- *
- * @author Robert Varga
*/
@Beta
public interface ImplicitParentAwareStatementSupport {
* implementations of this interface add implicit parent to the build context hierarchy before a substatement
* is created.
*
+ * @param parent parent statement context
* @param stmtDef statement definition of substatement
* @return optional of implicit parent statement support
*/
- Optional<StatementSupport<?, ?, ?>> getImplicitParentFor(StatementDefinition stmtDef);
+ Optional<StatementSupport<?, ?, ?>> getImplicitParentFor(NamespaceStmtCtx parent, StatementDefinition stmtDef);
}