(e ast.NavigableExpr)
| 592 | } |
| 593 | |
| 594 | func isCelBind(e ast.NavigableExpr) bool { |
| 595 | if !isEmptyRangeComprehension(e) { |
| 596 | return false |
| 597 | } |
| 598 | compre := e.AsComprehension() |
| 599 | loopCond := compre.LoopCondition() |
| 600 | loopStep := compre.LoopStep() |
| 601 | return compre.IterVar() == unusedIterVar && |
| 602 | loopCond.Kind() == ast.LiteralKind && loopCond.AsLiteral().Value() == false && |
| 603 | loopStep.Kind() == ast.IdentKind && loopStep.AsIdent() == compre.AccuVar() |
| 604 | } |
| 605 | |
| 606 | func isRegexFunctionName(fn string) bool { |
| 607 | return fn == overloads.Matches || fn == "matches" || fn == "regex.extract" || fn == "regex.extractAll" || fn == "regex.replace" |
no test coverage detected