Assuming parent types to be declared properly.
This commit is contained in:
parent
0a4541a401
commit
7e4a05e1db
@ -78,9 +78,8 @@ PrimitiveType &PrimitiveType::parseDeclaration(utils::Parser &parser, Context &c
|
|||||||
|
|
||||||
parentType.setDirty(false);
|
parentType.setDirty(false);
|
||||||
|
|
||||||
// Type object is an implicit primitive type
|
// Flag parent tpe as correctly declared in the types section
|
||||||
if (parentType.name() == "object")
|
parentType.setDeclared();
|
||||||
parentType.setDeclared();
|
|
||||||
|
|
||||||
// Assign parent type to all types that were previously flagged
|
// Assign parent type to all types that were previously flagged
|
||||||
std::for_each(context.primitiveTypes.begin(), context.primitiveTypes.end(),
|
std::for_each(context.primitiveTypes.begin(), context.primitiveTypes.end(),
|
||||||
|
Reference in New Issue
Block a user