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

MapToStep() public method

public MapToStep ( Gherkin.Ast step ) : Step
step Gherkin.Ast
return Step
        public Step MapToStep(G.Step step)
        {
            if (step == null)
            {
                return null;
            }

            return new Step
            {
                Location = this.MapToLocation(step.Location),
                DocStringArgument = step.Argument is G.DocString ? this.MapToString((G.DocString) step.Argument) : null,
                Keyword = this.MapToKeyword(step.Keyword),
                NativeKeyword = step.Keyword,
                Name = step.Text,
                TableArgument = step.Argument is G.DataTable ? this.MapToTable((G.DataTable) step.Argument) : null,
            };
        }