public override Expression GetAccumulatedBlock() { if (_accumulatedBody == null) { _accumulatedBody = Expression.Block(_body); _accumulatedInversion = Expression.Block(Expression.Empty()); } else if (_accumulatedInversion == null && _body.Any()) { _accumulatedInversion = Expression.Block(_body); } else { _accumulatedInversion = Expression.Block(Expression.Empty()); } return(HandlebarsExpression.DeferredSection( _startingNode, _accumulatedBody, _accumulatedInversion)); }