Sfoglia il codice sorgente

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

James Urquhart 11 anni fa
parent
commit
b991adb033
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;