- implemented super calls and proper dispatch of scripted virtual overrides for Destroy.

This commit is contained in:
Christoph Oelckers 2016-11-11 21:52:08 +01:00
commit 924096694e
5 changed files with 93 additions and 4 deletions

View file

@ -2898,6 +2898,16 @@ FxExpression *ZCCCompiler::ConvertNode(ZCC_TreeNode *ast)
return list;
}
case AST_Expression:
{
auto ret = static_cast<ZCC_Expression *>(ast);
if (ret->Operation == PEX_Super)
{
return new FxSuper(*ast);
}
break;
}
case AST_ExpressionStmt:
return ConvertNode(static_cast<ZCC_ExpressionStmt *>(ast)->Expression);