class IcAgent::Ast::Nodes::IcBaseTypeVariant

Represents an IC base type variant node in the abstract syntax tree, a subclass of StatementNode.

Public Instance Methods

opt_code() click to toggle source

Returns the opt code for the IC base type variant node, which is 'variant'.

# File lib/ic_agent/ast/nodes/statement_nodes.rb, line 143
def opt_code
  'variant'
end
title() click to toggle source

The title of the IC base type variant node.

# File lib/ic_agent/ast/nodes/statement_nodes.rb, line 133
def title
  :base_type_variant
end
to_s() click to toggle source

Converts the IC base type variant node to a string representation.

# File lib/ic_agent/ast/nodes/statement_nodes.rb, line 138
def to_s
  elements_to_s
end