def __str__(self):
        """
        Returns a Clang-style string representation of the beginning of this range.
        """
        if self.begin_pos != self.end_pos:
            return "%s:%d:%d-%d:%d" % (self.source_buffer.name,
                                    self.line(), self.column() + 1,
                                    self.end().line(), self.end().column() + 1)
        else:
            return "%s:%d:%d" % (self.source_buffer.name,
                                 self.line(), self.column() + 1)
def __str__ ( self ) : if self . begin_pos != self . end_pos : return "%s:%d:%d-%d:%d" % ( self . source_buffer . name , self . line ( ) , self . column ( ) + 1 , self . end ( ) . line ( ) , self . end ( ) . column ( ) + 1 ) else : return "%s:%d:%d" % ( self . source_buffer . name , self . line ( ) , self . column ( ) + 1 )
Returns a Clang-style string representation of the beginning of this range.