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; }
public But(Text stepText, MultilineText multilineTextArgument, Table tableArg) : base(stepText, multilineTextArgument, tableArg) { }
public Background(Text title, ScenarioSteps scenarioSteps) { Title = title == null ? "" : title.Value; Steps = scenarioSteps ?? new ScenarioSteps(); }
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; }
public DescriptionLine(Text lineText) { LineText = lineText.Value; }
public ExampleSet(Text title, Table table) { Title = title == null ? string.Empty : title.Value; Table = table; }