浏览代码

Insert TS function var names in the precompile step, allowing unreferenced parameters to be used

James Urquhart 11 年之前
父节点
当前提交
b991adb033
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Engine/source/console/astNodes.cpp

+ 3 - 0
Engine/source/console/astNodes.cpp

@@ -1831,7 +1831,10 @@ U32 FunctionDeclStmtNode::precompileStmt(U32)
 
    argc = 0;
    for(VarNode *walk = args; walk; walk = (VarNode *)((StmtNode*)walk)->getNext())
+   {
+      precompileIdent(walk->varName);
       argc++;
+   }
    
    CodeBlock::smInFunction = true;