#NEWLINE# def full_line( self , line ) : #NEWLINE# #INDENT# '\n        Return the start/end character positions for the given line.\n\n        This returns *real* character positions (relative to the beginning of self.code)\n        base on the *virtual* line number (adjusted by the self.line_offset).\n\n        ' #NEWLINE# if ( line == 0 ) : #NEWLINE# #INDENT# char_offset = self . char_offset #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# char_offset = 0 #NEWLINE# #UNINDENT# line += self . line_offset #NEWLINE# start = ( self . newlines [ line ] + line ) #NEWLINE# end = self . newlines [ min ( ( line + 1 ) , ( len ( self . newlines ) - 1 ) ) ] #NEWLINE# return ( start , end )