summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-05-29 23:16:51 -0300
committerGeorge Marques <george@gmarqu.es>2018-07-20 21:55:16 -0300
commit8aab9a06d4db1106dc733022f951db979e39f97b (patch)
treefd01fb0fde601f3788812eb90c39510811214d2a /modules/gdscript/gdscript_compiler.cpp
parentcfcb6e11f25adb13177ba08777263288a5ec6f61 (diff)
Add typing syntax
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r--modules/gdscript/gdscript_compiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp
index 70f3d704ae..69a0575efe 100644
--- a/modules/gdscript/gdscript_compiler.cpp
+++ b/modules/gdscript/gdscript_compiler.cpp
@@ -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