Children returns all children of a node. It supports ASTs before and after desugaring.
(node ast.Node)
| 348 | |
| 349 | // Children returns all children of a node. It supports ASTs before and after desugaring. |
| 350 | func Children(node ast.Node) []ast.Node { |
| 351 | var result []ast.Node |
| 352 | result = append(result, DirectChildren(node)...) |
| 353 | result = append(result, thunkChildren(node)...) |
| 354 | result = append(result, specialChildren(node)...) |
| 355 | return result |
| 356 | } |
| 357 | |
| 358 | func functionContext(funcName string) *string { |
| 359 | r := "function <" + funcName + ">" |
searching dependent graphs…