public static IEnumerable <TableRow> GetTemplateRows(this IEnumerable <TableRow> rows, TokenPosition start, TokenPosition end) { return(rows .Skip(start.RowIndex) .Take(end.RowIndex - start.RowIndex + 1)); }
public static Token CollectionBegin(ModelDescription modelDescription, TokenPosition position) { return(new Token(TokenType.CollectionBegin, modelDescription, position)); }
public static Token ConditionEnd(ModelDescription modelDescription, TokenPosition position) { return(new Token(TokenType.ConditionEnd, modelDescription, position)); }
public static Token SingleValue(ModelDescription modelDescription, TokenPosition position) { return(new Token(TokenType.SingleValue, modelDescription, position)); }