protected XExpression _generate(SarlAssertExpression assertStatement, IAppendable it, IExtraLanguageGeneratorContext context) {
		final boolean haveAssert = !assertStatement.isIsStatic() && assertStatement.getCondition() != null;
		if (haveAssert) {
			it.append("assert (lambda:"); //$NON-NLS-1$
			it.increaseIndentation().newLine();
			generate(assertStatement.getCondition(), it, context);
			it.decreaseIndentation().newLine();
			it.append(")()"); //$NON-NLS-1$
		}
		if (context.getExpectedExpressionType() != null) {
			if (haveAssert) {
				it.newLine();
			}
			it.append("return ").append(toDefaultValue(context.getExpectedExpressionType().toJavaCompliantTypeReference())); //$NON-NLS-1$
		}
		return assertStatement;
	}
protected XExpression _generate ( SarlAssertExpression assertStatement , IAppendable it , IExtraLanguageGeneratorContext context ) { final boolean haveAssert = ! assertStatement . isIsStatic ( ) && assertStatement . getCondition ( ) != null ; if ( haveAssert ) { it . append ( "assert (lambda:" ) ; it . increaseIndentation ( ) . newLine ( ) ; generate ( assertStatement . getCondition ( ) , it , context ) ; it . decreaseIndentation ( ) . newLine ( ) ; it . append ( ")()" ) ; } if ( context . getExpectedExpressionType ( ) != null ) { if ( haveAssert ) { it . newLine ( ) ; } it . append ( "return " ) . append ( toDefaultValue ( context . getExpectedExpressionType ( ) . toJavaCompliantTypeReference ( ) ) ) ; } return assertStatement ; }
Generate the given object.

@param assertStatement the assert statement.
@param it the target for the generated content.
@param context the context.
@return the statement.