class Solargraph::Source::Chain::Literal

def initialize type

Parameters:
  • type (String) --
def initialize type
  @type = type
  @complex_type = ComplexType.try_parse(type)
end

def resolve api_map, name_pin, locals

def resolve api_map, name_pin, locals
  [Pin::ProxyType.anonymous(@complex_type)]
end

def word

def word
  @word ||= "<#{@type}>"
end