class Solargraph::Pin::Constant

def completion_item_kind

def completion_item_kind
  Solargraph::LanguageServer::CompletionItemKinds::CONSTANT
end

def generate_complex_type

Returns:
  • (ComplexType) -
def generate_complex_type
  tags = docstring.tags(:return).map(&:types).flatten.reject(&:nil?)
  if tags.empty?
    tags = docstring.tags(:type).map(&:types).flatten.reject(&:nil?)
  end
  return ComplexType::UNDEFINED if tags.empty?
  ComplexType.try_parse *tags
end

def initialize visibility: :public, **splat

def initialize visibility: :public, **splat
  super(**splat)
  @visibility = visibility
end

def path

def path
  @path ||= context.namespace.to_s.empty? ? name : "#{context.namespace}::#{name}"
end

def return_type

def return_type
  @return_type ||= generate_complex_type
end

def symbol_kind

Returns:
  • (Integer) -
def symbol_kind
  LanguageServer::SymbolKinds::CONSTANT
end