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)
| 435 | |
| 436 | // NewComprehension implements the ExprHelper interface method. |
| 437 | func (e *exprHelper) NewComprehension( |
| 438 | iterRange ast.Expr, |
| 439 | iterVar string, |
| 440 | accuVar string, |
| 441 | accuInit ast.Expr, |
| 442 | condition ast.Expr, |
| 443 | step ast.Expr, |
| 444 | result ast.Expr) ast.Expr { |
| 445 | return e.exprFactory.NewComprehension( |
| 446 | e.nextMacroID(), iterRange, iterVar, accuVar, accuInit, condition, step, result) |
| 447 | } |
| 448 | |
| 449 | // NewComprehensionTwoVar implements the ExprHelper interface method. |
| 450 | func (e *exprHelper) NewComprehensionTwoVar( |
nothing calls this directly
no test coverage detected