NewComprehension implements the ExprHelper interface method.
( iterRange ast.Expr, iterVar string, accuVar string, accuInit ast.Expr, condition ast.Expr, step ast.Expr, result ast.Expr)
| 476 | |
| 477 | // NewComprehension implements the ExprHelper interface method. |
| 478 | func (e *exprHelper) NewComprehension( |
| 479 | iterRange ast.Expr, |
| 480 | iterVar string, |
| 481 | accuVar string, |
| 482 | accuInit ast.Expr, |
| 483 | condition ast.Expr, |
| 484 | step ast.Expr, |
| 485 | result ast.Expr) ast.Expr { |
| 486 | return e.exprFactory.NewComprehension( |
| 487 | e.nextMacroID(), iterRange, iterVar, accuVar, accuInit, condition, step, result) |
| 488 | } |
| 489 | |
| 490 | // NewComprehensionTwoVar implements the ExprHelper interface method. |
| 491 | func (e *exprHelper) NewComprehensionTwoVar( |
nothing calls this directly
no test coverage detected