Esempio n. 1
0
 public Feature(Text title, Tags tags, DescriptionLine[] description, Background background, params Scenario[] scenarios)
 {
     Tags = tags;
     Description = description == null ? string.Empty : string.Join(Environment.NewLine, description.Select(d => d.LineText.Trim()).ToArray());
     Background = background;
     Scenarios = scenarios;
     Title = title.Value;
 }
    // $ANTLR end "word"


    // $ANTLR start "descriptionLine"
    // SpecFlowLangWalker.g:67:1: descriptionLine returns [DescriptionLine descriptionLine] : ^( DESCRIPTIONLINE text_= text ) ;
    public DescriptionLine descriptionLine() // throws RecognitionException [1]
    {   
        DescriptionLine descriptionLine = default(DescriptionLine);

        Text text_ = default(Text);


        try 
    	{
            // SpecFlowLangWalker.g:71:5: ( ^( DESCRIPTIONLINE text_= text ) )
            // SpecFlowLangWalker.g:71:9: ^( DESCRIPTIONLINE text_= text )
            {
            	Match(input,DESCRIPTIONLINE,FOLLOW_DESCRIPTIONLINE_in_descriptionLine428); 

            	Match(input, Token.DOWN, null); 
            	PushFollow(FOLLOW_text_in_descriptionLine444);
            	text_ = text();
            	state.followingStackPointer--;


            	Match(input, Token.UP, null); 

            }


                descriptionLine =  new DescriptionLine(text_);

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return descriptionLine;
    }