protected override void LLWrite(ICodeWriter writer, object o) { writer.BeginNewLine(true); if (Name != null) { Name.WriteAll(writer); } else { Subscript.WriteAll(writer); } if (TypeAnnotation != null) { writer.Write(": ", true); TypeAnnotation.WriteAll(writer); } if (Value != null) { writer.Write(" = ", true); Value.WriteAll(writer); } writer.EndLine(); }
protected override void LLWrite(ICodeWriter writer, object o) { if (Name != null) { Name.WriteAll(writer); } if (TypeAnnotation != null) { if (Name != null) { writer.Write(": ", true); } if (ParameterKind != SLParameterKind.None) { writer.Write(ToParameterKindString(ParameterKind), false); writer.Write(' ', false); } TypeAnnotation.WriteAll(writer); } }