Module: ActiveFacts::CQL::ObjectTypes::TermOrUnary1
- Defined in:
- lib/activefacts/cql/parser/ObjectTypes.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
971 972 973 974 975 976 977 978 979 980 981 |
# File 'lib/activefacts/cql/parser/ObjectTypes.rb', line 971 def ast t = term.ast t.role_name = ss.value if !ss.empty? if pre_text.elements.size == 0 && post_text.elements.size == 0 t else pre_words = pre_text.elements.map{|w| w.id.text_value} post_words = post_text.elements.map{|w| w.id.text_value} Compiler::Clause.new(pre_words + [t] + post_words, [], nil) end end |