Module: Finitio::Syntax::SetType
- Includes:
- Node
- Defined in:
- lib/finitio/syntax/type/set_type.rb
Instance Method Summary
collapse
Methods included from Node
included, #metadata, #resolve_ruby_const, #unique_names!
Instance Method Details
#compile(factory) ⇒ Object
8
9
10
11
|
# File 'lib/finitio/syntax/type/set_type.rb', line 8
def compile(factory)
elm_type = type.compile(factory)
factory.set(elm_type)
end
|
#to_ast ⇒ Object
13
14
15
|
# File 'lib/finitio/syntax/type/set_type.rb', line 13
def to_ast
[:set_type, type.to_ast]
end
|