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

js.prompto.statement.SwitchCase.js Maven / Gradle / Ivy

var Section = require("../parser/Section").Section;

function SwitchCase(expression, statements) {
	Section.call(this);
	this.expression = expression;
	this.statements = statements;
	return this;
}


SwitchCase.prototype  = Object.create(Section.prototype);
SwitchCase.prototype.constructor = SwitchCase;

SwitchCase.prototype.checkReturnType = function(context) {
	return this.statements.check(context, null);
};

SwitchCase.prototype.interpret = function(context) {
	return this.statements.interpret(context);
};

exports.SwitchCase = SwitchCase;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy