mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 04:44:37 +00:00
Don't consume token on invalid entity typename #5504
This commit is contained in:
@@ -715,10 +715,10 @@ void IfcParse::IfcFile::load(unsigned entity_instance_name, const IfcParse::enti
|
|||||||
|
|
||||||
if (TokenFunc::isKeyword(next)) {
|
if (TokenFunc::isKeyword(next)) {
|
||||||
try {
|
try {
|
||||||
|
const auto* decl = schema_->declaration_by_name(TokenFunc::asStringRef(next));
|
||||||
parse_context ps;
|
parse_context ps;
|
||||||
tokens->Next();
|
tokens->Next();
|
||||||
load(0, nullptr, ps, -1);
|
load(0, nullptr, ps, -1);
|
||||||
const auto *decl = schema_->declaration_by_name(TokenFunc::asStringRef(next));
|
|
||||||
auto* simple_type_instance = schema_->instantiate(decl, ps.construct(-1, references_to_resolve, decl, boost::none));
|
auto* simple_type_instance = schema_->instantiate(decl, ps.construct(-1, references_to_resolve, decl, boost::none));
|
||||||
//@todo decide addEntity(((IfcUtil::IfcBaseClass*)*entity));
|
//@todo decide addEntity(((IfcUtil::IfcBaseClass*)*entity));
|
||||||
context.push(simple_type_instance);
|
context.push(simple_type_instance);
|
||||||
|
|||||||
Reference in New Issue
Block a user