Sarcasm.Unparsing.Formatter.GetDecoratedCommentTextLines C# (CSharp) Method

GetDecoratedCommentTextLines() public method

public GetDecoratedCommentTextLines ( UnparsableAst owner, Comment comment ) : string[]
owner UnparsableAst
comment Comment
return string[]
        public virtual string[] GetDecoratedCommentTextLines(UnparsableAst owner, Comment comment)
        {
            if (comment.TextLines.Length > 1)
            {
                return comment.TextLines
                    .Select((textLine, lineIndex) => lineIndex > 0 && comment.IsDecorated ? MultiLineCommentDecorator + textLine : textLine)
                    .ToArray();
            }
            else
                return comment.TextLines;
        }