#NEWLINE# def _getDockBlockOfVariable( self , line ) : #NEWLINE# #INDENT# content = self . getContent ( ) #NEWLINE# matchPos = content . find ( line ) #NEWLINE# lineByLine = content [ : matchPos ] . split ( '\n' ) #NEWLINE# lineByLine . reverse ( ) #NEWLINE# commentStart = 0 #NEWLINE# commentEnd = 0 #NEWLINE# for n in range ( len ( lineByLine ) ) : #NEWLINE# #INDENT# line = lineByLine [ n ] . strip ( ) #NEWLINE# if ( '\n' == line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '\r\n' == line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '' == line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '*/' == line ) : #NEWLINE# #INDENT# commentStart = ( n + 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '/**' == line ) : #NEWLINE# #INDENT# commentEnd = n #NEWLINE# break #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 0 == commentStart ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( commentStart == commentEnd ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# if ( ( commentStart == 0 ) or ( commentEnd == 0 ) ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# result = lineByLine [ commentEnd : commentEnd ] #NEWLINE# result . reverse ( ) #NEWLINE# return '\n' . join ( result )