public DecompileFunction ( System.Function fun, int indent ) : string | ||
fun | System.Function | the JavaScript function to decompile |
indent | int | the number of spaces to indent the result |
return | string |
public string DecompileFunction(Function fun, int indent)
{
if (fun is BaseFunction)
{
return ((BaseFunction)fun).Decompile(indent, 0);
}
else
{
return "function " + fun.GetClassName() + "() {\n\t[native code]\n}\n";
}
}