summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Elements/SenchaFunction.cpp
blob: df681dba07fbfebb2a778869199c0d1ea88973f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * SenchaFunction.cpp
 *
 *  Created on: Dec 30, 2012
 *      Author: att
 */

#include "SenchaFunction.h"

SenchaFunction::SenchaFunction(std::string name, std::vector<std::string> names_of_arguments, ASTNode * body)
	: name(name), names_of_arguments(names_of_arguments), body(body)
{

}

SenchaFunction::~SenchaFunction() {

}

SenchaObject SenchaFunction::operator()()
{
	return body->execute();
}