Simplified astNodeToSubNodes. We don't need depth, we should retrieve edges instead.