#NEWLINE# def visit_Localparam( self , node ) : #NEWLINE# #INDENT# self . addTerm ( node ) #NEWLINE# current = self . frames . getCurrent ( ) #NEWLINE# name = ( current + ScopeLabel ( node . name , 'signal' ) ) #NEWLINE# if ( not self . hasConstant ( name ) ) : #NEWLINE# #INDENT# value = self . optimize ( self . getTree ( node . value , current ) ) #NEWLINE# self . setConstant ( name , value ) #NEWLINE# #UNINDENT# self . addBind ( node . name , node . value , bindtype = 'localparam' )