#NEWLINE# def getPositionNearType( self , tagSet , idx ) : #NEWLINE# #INDENT# if ( not self . __ambigiousTypes ) : #NEWLINE# #INDENT# self . __buildAmbigiousTagMap ( ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return ( idx + self . __ambigiousTypes [ idx ] . getPositionByType ( tagSet ) ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise error . PyAsn1Error ( 'Type position out of range' )