Beispiel #1
0
 public But(Text stepText, MultilineText multilineTextArgument, Table tableArg)
     : base(stepText, multilineTextArgument, tableArg)
 {
 }
        private Table Clone(Table table)
        {
            if (table == null)
                return null;

            return new Table(Clone(table.Header), table.Body.Select(r => Clone(r)).ToArray());
        }
    // $ANTLR end "indent"


    // $ANTLR start "table"
    // SpecFlowLangWalker.g:265:1: table returns [Table table] : ^( TABLE ^( HEADER header_= tableRow ) ^( BODY (row_= tableRow )+ ) ) ;
    public Table table() // throws RecognitionException [1]
    {   
        Table table = default(Table);

        Row header_ = default(Row);

        Row row_ = default(Row);



            var bodyRows = new List<Row>();

        try 
    	{
            // SpecFlowLangWalker.g:272:5: ( ^( TABLE ^( HEADER header_= tableRow ) ^( BODY (row_= tableRow )+ ) ) )
            // SpecFlowLangWalker.g:272:9: ^( TABLE ^( HEADER header_= tableRow ) ^( BODY (row_= tableRow )+ ) )
            {
            	Match(input,TABLE,FOLLOW_TABLE_in_table2044); 

            	Match(input, Token.DOWN, null); 
            	Match(input,HEADER,FOLLOW_HEADER_in_table2059); 

            	Match(input, Token.DOWN, null); 
            	PushFollow(FOLLOW_tableRow_in_table2063);
            	header_ = tableRow();
            	state.followingStackPointer--;


            	Match(input, Token.UP, null); 
            	Match(input,BODY,FOLLOW_BODY_in_table2079); 

            	Match(input, Token.DOWN, null); 
            	// SpecFlowLangWalker.g:274:20: (row_= tableRow )+
            	int cnt31 = 0;
            	do 
            	{
            	    int alt31 = 2;
            	    int LA31_0 = input.LA(1);

            	    if ( (LA31_0 == ROW) )
            	    {
            	        alt31 = 1;
            	    }


            	    switch (alt31) 
            		{
            			case 1 :
            			    // SpecFlowLangWalker.g:274:21: row_= tableRow
            			    {
            			    	PushFollow(FOLLOW_tableRow_in_table2084);
            			    	row_ = tableRow();
            			    	state.followingStackPointer--;

            			    	 bodyRows.Add(row_); 

            			    }
            			    break;

            			default:
            			    if ( cnt31 >= 1 ) goto loop31;
            		            EarlyExitException eee31 =
            		                new EarlyExitException(31, input);
            		            throw eee31;
            	    }
            	    cnt31++;
            	} while (true);

            	loop31:
            		;	// Stops C# compiler whinging that label 'loop31' has no statements


            	Match(input, Token.UP, null); 

            	Match(input, Token.UP, null); 

            }


                table =  new Table(header_, bodyRows.ToArray());

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return table;
    }
Beispiel #4
0
 public ExampleSet(Text title, Table table)
 {
     Title = title == null ? string.Empty : title.Value;
     Table = table;
 }
Beispiel #5
0
 public ExampleSet(string title, string description, Table table)
 {
     Title = title ?? string.Empty;
     Description = description;
     Table = table;
 }
Beispiel #6
0
 public ExampleSet(string title, Table table)
 {
     Title = title ?? string.Empty;
     Table = table;
 }