#NEWLINE# def p_template_param2( p ) : #NEWLINE# #INDENT# ' template_param : NAME COLON test ' #NEWLINE# lineno = p . lineno ( 1 ) #NEWLINE# node = enaml_ast . PositionalParameter ( ) #NEWLINE# node . lineno = lineno #NEWLINE# node . name = p [ 1 ] #NEWLINE# body = p [ 3 ] #NEWLINE# body . lineno = lineno #NEWLINE# ast . fix_missing_locations ( body ) #NEWLINE# expr = ast . Expression ( body = body ) #NEWLINE# python = enaml_ast . PythonExpression ( ast = python , lineno = lineno ) #NEWLINE# node . specialization = python #NEWLINE# p [ 0 ] = node