/// <summary> /// Writes a textual representation of this table description to the given writer. /// </summary> /// <param name="writer">The writer to which text is written.</param> public void Dump(TextWriter writer) { writer.Write("(elem_type: "); DumpHelpers.DumpWasmType(ElementType, writer); writer.Write(", limits: "); Limits.Dump(writer); writer.Write(")"); }
/// <summary> /// Writes a textual representation of this global variable type to the given writer. /// </summary> /// <param name="writer">The writer to which text is written.</param> public void Dump(TextWriter writer) { writer.Write("{type: "); DumpHelpers.DumpWasmType(ContentType, writer); writer.Write(", is_mutable: "); writer.Write(IsMutable); writer.Write("}"); }
/// <summary> /// Writes a textual representation of this exported value to the given writer. /// </summary> /// <param name="writer">The writer to which text is written.</param> public void Dump(TextWriter writer) { writer.Write("func("); for (int i = 0; i < ParameterTypes.Count; i++) { if (i > 0) { writer.Write(", "); } DumpHelpers.DumpWasmType(ParameterTypes[i], writer); } writer.Write(") returns ("); for (int i = 0; i < ReturnTypes.Count; i++) { if (i > 0) { writer.Write(", "); } DumpHelpers.DumpWasmType(ReturnTypes[i], writer); } writer.Write(")"); }
/// <summary> /// Writes a textual representation of this local entry to the given writer. /// </summary> /// <param name="Writer">The writer to which text is written.</param> public void Dump(TextWriter Writer) { Writer.Write(LocalCount); Writer.Write(" x "); DumpHelpers.DumpWasmType(LocalType, Writer); }