* replaced vector of strings as name hierarchy by a new NameHierarchy class. * Adjusted code in ASTVisitor, Storage and various test cases.
27 lines
570 B
C++
27 lines
570 B
C++
#ifndef PARSE_FUNCTION_H
|
|
#define PARSE_FUNCTION_H
|
|
|
|
#include "data/name/NameHierarchy.h"
|
|
#include "data/parser/ParseTypeUsage.h"
|
|
|
|
struct ParseFunction
|
|
{
|
|
ParseFunction(
|
|
const ParseTypeUsage& returnType,
|
|
const NameHierarchy& nameHierarchy,
|
|
const std::vector<ParseTypeUsage>& parameters,
|
|
bool isStatic = false,
|
|
bool isConst = false
|
|
);
|
|
|
|
std::string getFullName() const;
|
|
|
|
const ParseTypeUsage returnType;
|
|
const NameHierarchy nameHierarchy;
|
|
const std::vector<ParseTypeUsage> parameters;
|
|
const bool isStatic;
|
|
const bool isConst;
|
|
};
|
|
|
|
#endif // PARSE_FUNCTION_H
|