Some template implementation/tests

This commit is contained in:
Nathan Braswell
2014-05-08 01:07:57 -04:00
parent 6c3267a8b2
commit 5de2ff58bb
3 changed files with 25 additions and 3 deletions

View File

@@ -26,10 +26,13 @@ class ASTData {
~ASTData();
std::string toString();
static std::string ASTTypeToString(ASTType type);
void addTemplateTypeDefToReplace(NodeTree<ASTData>* typeDefToReplace);
std::vector<NodeTree<ASTData>*> getTemplateTypeDefsToReplace();
ASTType type;
Type* valueType;
Symbol symbol;
std::map<std::string, std::vector<NodeTree<ASTData>*>> scope;
std::vector<NodeTree<ASTData>*> templateTypeDefsToReplace; //Used only by template classes/functions to keep track of pointers to the typedefs that need to be changed
private:
};