def get_definition_location(project, source_code, offset, resource=None, maxfixes=1):
 fixer = fixsyntax.FixSyntax(project, source_code, resource, maxfixes)
 pyname = fixer.pyname_at(offset)
 if (pyname is not None):
  (module, lineno) = pyname.get_definition_location()
  if (module is not None):
   return (module.get_module().get_resource(), lineno)
 return (None, None)

def get_definition_location ( project , source_code , offset , resource = None , maxfixes = 1 ) : fixer = fixsyntax . FixSyntax ( project , source_code , resource , maxfixes ) pyname = fixer . pyname_at ( offset ) if ( pyname is not None ) : ( module , lineno ) = pyname . get_definition_location ( ) if ( module is not None ) : return ( module . get_module ( ) . get_resource ( ) , lineno ) return ( None , None )
return the definition location of the python name at offset return a tuple .