#NEWLINE# def get_alias( self ) : #NEWLINE# #INDENT# 'Returns the alias for this identifier or ``None``.' #NEWLINE# kw = self . token_next_match ( 0 , T . Keyword , 'AS' ) #NEWLINE# if ( kw is not None ) : #NEWLINE# #INDENT# alias = self . token_next ( self . token_index ( kw ) ) #NEWLINE# if ( alias is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# next_ = self . token_next_by_instance ( 0 , Identifier ) #NEWLINE# if ( next_ is None ) : #NEWLINE# #INDENT# next_ = self . token_next_by_type ( 0 , T . String . Symbol ) #NEWLINE# if ( next_ is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# alias = next_ #NEWLINE# #UNINDENT# if isinstance ( alias , Identifier ) : #NEWLINE# #INDENT# return alias . get_name ( ) #NEWLINE# #UNINDENT# return self . _remove_quotes ( str ( alias ) )