Object traits working now as well. Only specilized templates don't, because I have not yet decided the syntax for them.
This commit is contained in:
@@ -65,7 +65,7 @@ const bool Type::operator!=(const Type &other) const {
|
||||
return(!this->operator==(other));
|
||||
}
|
||||
|
||||
std::string Type::toString() {
|
||||
std::string Type::toString(bool showTraits) {
|
||||
std::string typeString;
|
||||
switch (baseType) {
|
||||
case none:
|
||||
@@ -106,7 +106,7 @@ std::string Type::toString() {
|
||||
}
|
||||
for (int i = 0; i < indirection; i++)
|
||||
typeString += "*";
|
||||
if (traits.size()) {
|
||||
if (traits.size() && showTraits) {
|
||||
typeString += "[ ";
|
||||
for (auto i : traits)
|
||||
typeString += i + " ";
|
||||
|
||||
Reference in New Issue
Block a user