Class: Idl::ArrayIncludesAst
Constant Summary
Constants inherited
from AstNode
Idl::AstNode::UdbHashType
Instance Method Summary
collapse
Instance Method Details
#to_udb_h(symtab) ⇒ Object
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
# File 'lib/udb/idl/condition_to_udb.rb', line 142
def to_udb_h(symtab)
a = ary
raise "not a parameter: #{a.text_value}" unless a.is_a?(IdAst)
value_result = value_try do
return {
"param" =>
{
"name" => a.name,
"includes" => expr.value(symtab)
}
}
end
value_else(value_result) do
raise "Comparison value (#{expr.text_value}) must be compile-time evaluatable in #{text_value}"
end
end
|