Module: ActiveFacts::CQL::ObjectTypes::Identification2

Defined in:
lib/activefacts/cql/parser/ObjectTypes.rb

Instance Method Summary collapse

Instance Method Details

#astObject



491
492
493
494
495
496
497
498
# File 'lib/activefacts/cql/parser/ObjectTypes.rb', line 491

def ast
  if r.empty?
    value_constraint = nil
  else
    value_constraint = Compiler::ValueConstraint.new(r.value_constraint.ast, r.enforcement.ast)
  end
  Compiler::ReferenceMode.new(i.value, value_constraint, value_type_parameters.values)
end

#modeObject



500
501
502
# File 'lib/activefacts/cql/parser/ObjectTypes.rb', line 500

def mode
  i.value
end