1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add typing syntax

This commit is contained in:
George Marques
2018-05-29 23:16:51 -03:00
parent cfcb6e11f2
commit 8aab9a06d4
6 changed files with 147 additions and 76 deletions

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