Class: IcAgent::Ast::Nodes::IcBaseTypeVariant

Inherits:
StatementNode
  • Object
show all
Defined in:
lib/ic_agent/ast/nodes/statement_nodes.rb

Instance Attribute Summary

Attributes inherited from StatementNode

#child_count, #depth

Instance Method Summary collapse

Methods inherited from StatementNode

#add_child, #elements_to_s, #source_content, #to_array

Instance Method Details

#opt_codeObject



111
112
113
# File 'lib/ic_agent/ast/nodes/statement_nodes.rb', line 111

def opt_code
  'variant'
end

#titleObject



103
104
105
# File 'lib/ic_agent/ast/nodes/statement_nodes.rb', line 103

def title
  :base_type_variant
end

#to_sObject



107
108
109
# File 'lib/ic_agent/ast/nodes/statement_nodes.rb', line 107

def to_s
  elements_to_s
end