patrick
/
plasp
Archived
1
0
Fork 0

Assuming parent types to be declared properly.

This commit is contained in:
Patrick Lühne 2016-06-01 18:09:40 +02:00
parent 0a4541a401
commit 7e4a05e1db
1 changed files with 2 additions and 3 deletions

View File

@ -78,9 +78,8 @@ PrimitiveType &PrimitiveType::parseDeclaration(utils::Parser &parser, Context &c
parentType.setDirty(false);
// Type object is an implicit primitive type
if (parentType.name() == "object")
parentType.setDeclared();
// Flag parent tpe as correctly declared in the types section
parentType.setDeclared();
// Assign parent type to all types that were previously flagged
std::for_each(context.primitiveTypes.begin(), context.primitiveTypes.end(),