parameters: (self)
return_statement: return names
docstring: Returns the a list of `Name` that the with statement defines. The
          defined names are set after `as`.
docstring_summary: Returns the a list of `Name` that the with statement defines. The
          defined names are set after `as`.
docstring_tokens: Returns the a list of Name that the with statement defines . The defined names are set after as .
function: def get_defined_names(self):
          """
          Returns the a list of `Name` that the with statement defines. The
          defined names are set after `as`.
          """
          names = []
          for with_item in self.children[1:-2:2]:
              # Check with items for 'as' names.
              if with_item.type == 'with_item':
                  names += _defined_names(with_item.children[2])
          return names
function_tokens: def get_defined_names ( self ) : names = [ ] for with_item in self . children [ 1 : - 2 : 2 ] : # Check with items for 'as' names. if with_item . type == 'with_item' : names += _defined_names ( with_item . children [ 2 ] ) return names