(e ast.NavigableExpr)
| 800 | } |
| 801 | |
| 802 | func isNestedComprehension(e ast.NavigableExpr) bool { |
| 803 | parent, found := e.Parent() |
| 804 | for found { |
| 805 | if parent.Kind() == ast.ComprehensionKind { |
| 806 | return true |
| 807 | } |
| 808 | parent, found = parent.Parent() |
| 809 | } |
| 810 | return false |
| 811 | } |
| 812 | |
| 813 | func aggregateLiteralMatcher(e ast.NavigableExpr) bool { |
| 814 | return e.Kind() == ast.ListKind || e.Kind() == ast.MapKind || e.Kind() == ast.StructKind |
no test coverage detected