Method: Finitio::Syntax::SubType#compile

Defined in:
lib/finitio/syntax/type/sub_type.rb

#compile(factory) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/finitio/syntax/type/sub_type.rb', line 8

def compile(factory)
  s = rel_type.compile(factory)
  if c = constraint_def
    factory.subtype(s, c.compile(factory))
  else
    s
  end
end