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;
 }
Esempio n. 2
0
 public But(Text stepText, MultilineText multilineTextArgument, Table tableArg)
     : base(stepText, multilineTextArgument, tableArg)
 {
 }
Esempio n. 3
0
 public Background(Text title, ScenarioSteps scenarioSteps)
 {
     Title = title == null ? "" : title.Value;
     Steps = scenarioSteps ?? new ScenarioSteps();
 }
Esempio n. 4
0
 public Cell(Text value)
 {
     Value = value.Value;
 }
    // $ANTLR end "step"


    // $ANTLR start "text"
    // SpecFlowLangWalker.g:208:1: text returns [Text text] : ^( TEXT f= wordchar (ws= WS | wc= wordchar | nl= NEWLINE )* ) ;
    public Text text() // throws RecognitionException [1]
    {   
        Text text = default(Text);

        CommonTree ws = null;
        CommonTree nl = null;
        string f = default(string);

        string wc = default(string);



            var elements = new List<string>();

        try 
    	{
            // SpecFlowLangWalker.g:215:5: ( ^( TEXT f= wordchar (ws= WS | wc= wordchar | nl= NEWLINE )* ) )
            // SpecFlowLangWalker.g:215:9: ^( TEXT f= wordchar (ws= WS | wc= wordchar | nl= NEWLINE )* )
            {
            	Match(input,TEXT,FOLLOW_TEXT_in_text1563); 

            	Match(input, Token.DOWN, null); 
            	PushFollow(FOLLOW_wordchar_in_text1580);
            	f = wordchar();
            	state.followingStackPointer--;

            	 elements.Add(f); 
            	// SpecFlowLangWalker.g:217:13: (ws= WS | wc= wordchar | nl= NEWLINE )*
            	do 
            	{
            	    int alt25 = 4;
            	    switch ( input.LA(1) ) 
            	    {
            	    case WS:
            	    	{
            	        alt25 = 1;
            	        }
            	        break;
            	    case AT:
            	    case WORDCHAR:
            	    	{
            	        alt25 = 2;
            	        }
            	        break;
            	    case NEWLINE:
            	    	{
            	        alt25 = 3;
            	        }
            	        break;

            	    }

            	    switch (alt25) 
            		{
            			case 1 :
            			    // SpecFlowLangWalker.g:217:17: ws= WS
            			    {
            			    	ws=(CommonTree)Match(input,WS,FOLLOW_WS_in_text1611); 
            			    	 elements.Add(ws.Text); 

            			    }
            			    break;
            			case 2 :
            			    // SpecFlowLangWalker.g:218:17: wc= wordchar
            			    {
            			    	PushFollow(FOLLOW_wordchar_in_text1643);
            			    	wc = wordchar();
            			    	state.followingStackPointer--;

            			    	 elements.Add(wc); 

            			    }
            			    break;
            			case 3 :
            			    // SpecFlowLangWalker.g:219:17: nl= NEWLINE
            			    {
            			    	nl=(CommonTree)Match(input,NEWLINE,FOLLOW_NEWLINE_in_text1669); 
            			    	 elements.Add(nl.Text); 

            			    }
            			    break;

            			default:
            			    goto loop25;
            	    }
            	} while (true);

            	loop25:
            		;	// Stops C# compiler whining that label 'loop25' has no statements


            	Match(input, Token.UP, null); 

            }


                text = new Text(elements.ToArray());

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return text;
    }
Esempio n. 6
0
 public DescriptionLine(Text lineText)
 {
     LineText = lineText.Value;
 }
Esempio n. 7
0
 public ExampleSet(Text title, Table table)
 {
     Title = title == null ? string.Empty : title.Value;
     Table = table;
 }