Add typing syntax

This commit is contained in:
George Marques committed 2018-07-20 21:55:16 -03:00
1 parent cfcb6e11f2
commit 8aab9a06d4
6 files changed
+147 -76

No files matched your search

+4
View File
@@ -430,6 +430,10 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
return dst_addr;
} break;
case GDScriptParser::Node::TYPE_CAST: {
const GDScriptParser::CastNode *cn = static_cast<const GDScriptParser::CastNode *>(p_expression);
return _parse_expression(codegen, cn->source_node, p_stack_level);
} break;
case GDScriptParser::Node::TYPE_OPERATOR: {
//hell breaks loose