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

js.prompto.declaration.ClosureDeclaration.js Maven / Gradle / Ivy

var AbstractMethodDeclaration = require("./AbstractMethodDeclaration").AbstractMethodDeclaration;

function ClosureDeclaration(closure) {
    AbstractMethodDeclaration.call(this, closure.type.method.id, closure.type.method.args, closure.type.method.returnType);
	this.closure = closure;
	return this;
}

ClosureDeclaration.prototype = Object.create(AbstractMethodDeclaration.prototype);
ClosureDeclaration.prototype.constructor = ClosureDeclaration;

ClosureDeclaration.prototype.interpret = function(context) {
	return this.closure.interpret(context);
};

exports.ClosureDeclaration = ClosureDeclaration;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy