std::vector<Variable> variables;\r
std::vector<Function> functions;\r
std::vector<Struct> structs;\r
+ std::vector<Namespace> namespaces;\r
};\r
\r
enum class TypeModifierType\r
std::string name;\r
std::vector<TypeModifier> modifiers;\r
std::vector<Type> genericInstantiation;\r
+ \r
+ bool operator!=(const Type & that)\r
+ {\r
+ if (this->name != that.name)\r
+ return true;\r
+\r
+ for (int i = 0; i < this->modifiers.size(); i++)\r
+ if (this->modifiers[i].type != that.modifiers[i].type)\r
+ return true;\r
+\r
+ for (int i = 0; i < this->namespacePrefixes.size(); i++)\r
+ if (this->namespacePrefixes[i] != that.namespacePrefixes[i])\r
+ return true;\r
+ return false;\r
+ }\r
};\r
\r
struct Variable\r
{\r
std::string name;\r
std::shared_ptr<Context> ctx;\r
- std::vector<Namespace> namespaces;\r
};\r
\r
struct Program\r
{\r
std::shared_ptr<Context> ctx;\r
- std::vector<Namespace> namespaces;\r
};\r
\r
enum class ExprType\r