(node *ast.Node)
| 1229 | } |
| 1230 | |
| 1231 | func getEnclosingContainer(node *ast.Node) *ast.Node { |
| 1232 | return ast.FindAncestor(node.Parent, func(n *ast.Node) bool { |
| 1233 | return binder.GetContainerFlags(n)&binder.ContainerFlagsIsContainer != 0 |
| 1234 | }) |
| 1235 | } |
| 1236 | |
| 1237 | func getDeclarationsOfKind(symbol *ast.Symbol, kind ast.Kind) []*ast.Node { |
| 1238 | return core.Filter(symbol.Declarations, func(d *ast.Node) bool { return d.Kind == kind }) |
no test coverage detected