#NEWLINE# def link( self , errors , scope ) : #NEWLINE# #INDENT# 'Link this reference in a scope.' #NEWLINE# if ( self . is_empty or self . type ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# logging . debug ( 'Linking %s: %s' , self . location , self ) #NEWLINE# self . type = scope . find ( self . name ) #NEWLINE# errors . assert_that ( ( self . type is not None ) , self . location , 'Symbol not found "%s"' , self . name )