public static void Transpile(this Syntax.CommentSyntax commentNode, ref StringBuilder sb) { _ = commentNode ?? throw new ArgumentNullException(nameof(commentNode)); sb.Append("--"); if (commentNode.EmptyCommentNode is null) { sb.Append(commentNode.CommentNode.ValueText); } sb.AppendLine(); }
public static string Transpile(this Syntax.CommentSyntax commentNode) { _ = commentNode ?? throw new ArgumentNullException(nameof(commentNode)); return($"{commentNode.DoubleForwardSlashToken}{commentNode.CommentNode}{commentNode.NewlineToken}"); }