- return new RegularBaseEffectiveStatement(declared, substatements);
- }
-
- @Override
- protected BaseEffectiveStatement createEmptyEffective(
- final StmtContext<QName, BaseStatement, BaseEffectiveStatement> ctx, final BaseStatement declared) {
- return new EmptyBaseEffectiveStatement(declared);
+ return substatements.isEmpty() ? new EmptyBaseEffectiveStatement(stmt.declared())
+ : new RegularBaseEffectiveStatement(stmt.declared(), substatements);