nodes: 0, module; 1, function_definition; 2, function_name:transformChildrenToNative; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, for_statement; 8, comment:"""
          Recursively replace children with their native representation.
  
          Sort to get dependency order right, like vtimezone before vevent.
          """; 9, identifier:childArray; 10, generator_expression; 11, block; 12, subscript; 13, for_in_clause; 14, for_statement; 15, attribute; 16, identifier:k; 17, identifier:k; 18, call; 19, identifier:child; 20, identifier:childArray; 21, block; 22, identifier:self; 23, identifier:contents; 24, attribute; 25, argument_list; 26, expression_statement; 27, expression_statement; 28, identifier:self; 29, identifier:sortChildKeys; 30, assignment; 31, call; 32, identifier:child; 33, call; 34, attribute; 35, argument_list; 36, attribute; 37, argument_list; 38, identifier:child; 39, identifier:transformChildrenToNative; 40, identifier:child; 41, identifier:transformToNative
code: def transformChildrenToNative(self):
          """
          Recursively replace children with their native representation.
  
          Sort to get dependency order right, like vtimezone before vevent.
          """
          for childArray in (self.contents[k] for k in self.sortChildKeys()):
              for child in childArray:
                  child = child.transformToNative()
                  child.transformChildrenToNative()