public override void Execute() { BuildTargetCommand buildTargetCommand = new BuildTargetCommand(); buildTargetCommand.Execute(false); TES5FunctionFactoryUseTracker.WriteTableOfUnknownFunctions(); }
public ITES5ValueCodeChunk CreateCodeChunk(ITES4Callable chunk, TES5CodeScope codeScope, TES5GlobalScope globalScope, TES5MultipleScriptsScope multipleScriptsScope) { TES4Function function = chunk.Function; ITES5Referencer calledOnReference = this.CreateCalledOnReferenceOfCalledFunction(chunk, codeScope, globalScope, multipleScriptsScope); string functionName = function.FunctionCall.FunctionName; string functionKey = functionName.ToLower(); IFunctionFactory?factory; if (!this.functionFactories.TryGetValue(functionKey, out factory)) { throw new ConversionException("Cannot convert function " + functionName + " as conversion handler is not defined."); } TES5FunctionFactoryUseTracker.Add(functionKey, factory, globalScope.ScriptHeader.OriginalScriptName); ITES5ValueCodeChunk codeChunk = factory.ConvertFunction(calledOnReference, function, codeScope, globalScope, multipleScriptsScope); return(codeChunk); }