All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.prompto.csharp.CSharpStatement.js Maven / Gradle / Ivy

function CSharpStatement(expression, isReturn) {
	this.expression = expression;
	this.isReturn = isReturn;
	return this;
}

CSharpStatement.prototype.toString = function() {
	return "" + (this.isReturn ? "return " : "") + this.expression.toString() + ";";
};

CSharpStatement.prototype.toDialect = function(writer) {
    if(this.isReturn)
        writer.append("return ");
    this.expression.toDialect(writer);
    writer.append(';');
};

exports.CSharpStatement = CSharpStatement;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy