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