33 lines
671 B
C++
33 lines
671 B
C++
/*
|
|
* SenchaFunction.h
|
|
*
|
|
* Created on: Dec 30, 2012
|
|
* Author: att
|
|
*/
|
|
|
|
#ifndef SENCHAFUNCTION_H_
|
|
#define SENCHAFUNCTION_H_
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include "SenchaObject.h"
|
|
#include "Element.h"
|
|
#include "../Utils/to_string.h"
|
|
#include "../ContextManager.h"
|
|
#include "../AST/ASTNode.h"
|
|
|
|
|
|
class SenchaFunction : public Element
|
|
{
|
|
public:
|
|
std::string name;
|
|
std::vector<std::string> names_of_arguments;
|
|
ASTNode * body;
|
|
ContextManager * context;
|
|
|
|
SenchaFunction(std::string name, std::vector<std::string> names_of_arguments, ASTNode * body, ContextManager * context);
|
|
virtual ~SenchaFunction();
|
|
};
|
|
|
|
#endif /* SENCHAFUNCTION_H_ */
|