class IcAgent::Ast::Nodes::BaseTypeOpt

Represents an optional base type node in the abstract syntax tree, a subclass of BaseType.

Public Instance Methods

opt_code() click to toggle source

Returns the opt code for the optional base type.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 247
def opt_code
  'opt'
end
title() click to toggle source

The title of the optional base type node.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 237
def title
  :base_type_opt
end
to_s() click to toggle source

Converts the optional base type node to a string representation.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 242
def to_s
  elements_to_s
end