PicklesDoc.Pickles.ObjectModel.Mapper.MapToComment C# (CSharp) Method

MapToComment() public method

public MapToComment ( Gherkin.Ast comment ) : Comment
comment Gherkin.Ast
return Comment
        public Comment MapToComment(G.Comment comment)
        {
            if (comment == null)
            {
                return null;
            }

            return new Comment
            {
                Text = comment.Text.Trim(),
                Location = this.MapToLocation(comment.Location)
            };
        }