Rhino.BaseFunction.Decompile C# (CSharp) Method

Decompile() private method

Decompile the source information associated with this js function/script back into a string.
Decompile the source information associated with this js function/script back into a string.
private Decompile ( int indent, int flags ) : string
indent int How much to indent the decompiled result.
flags int Flags specifying format of decompilation output.
return string
		internal virtual string Decompile(int indent, int flags)
		{
			StringBuilder sb = new StringBuilder();
			bool justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG));
			if (!justbody)
			{
				sb.Append("function ");
				sb.Append(GetFunctionName());
				sb.Append("() {\n\t");
			}
			sb.Append("[native code, arity=");
			sb.Append(GetArity());
			sb.Append("]\n");
			if (!justbody)
			{
				sb.Append("}\n");
			}
			return sb.ToString();
		}