Project

General

Profile

« Previous | Next » 

Revision 41e2d180

Added by yui-knk (Kaneko Yuichiro) almost 2 years ago

Do not convert NODE_STR to NODE_LIT when the string is hash key

parse.y converted NODE_STR when the string is hash key like

h1 = {"str1" => 1} m1("str2" => 2) m2({"str3" => 3}) 

This commit stop the conversion.
static_literal_node_p needs to know the node is for hash key or not
for the optimization.