Class: Solargraph::Pin::Symbol

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/pin/symbol.rb

Instance Attribute Summary

Attributes inherited from Base

#code_object, #location, #name

Attributes included from Common

#closure, #location

Instance Method Summary collapse

Methods inherited from Base

#==, #docstring, #filename, #infer, #inspect, #macros, #maybe_directives?, #nearly?, #probe, #probed?, #proxied?, #proxy, #realize, #symbol_kind, #to_s, #try_merge!, #typify, #variable?

Methods included from Documenting

#documentation

Methods included from Conversions

#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help

Methods included from Common

#binder, #context, #name

Constructor Details

#initialize(location, name) ⇒ Symbol


6
7
8
9
10
# File 'lib/solargraph/pin/symbol.rb', line 6

def initialize location, name
  super(location: location, name: name)
  # @name = name
  # @location = location
end

Instance Method Details

#commentsObject


28
29
30
# File 'lib/solargraph/pin/symbol.rb', line 28

def comments
  ''
end

#completion_item_kindObject


24
25
26
# File 'lib/solargraph/pin/symbol.rb', line 24

def completion_item_kind
  Solargraph::LanguageServer::CompletionItemKinds::KEYWORD
end

#deprecated?Boolean


44
45
46
# File 'lib/solargraph/pin/symbol.rb', line 44

def deprecated?
  false
end

#directivesObject


36
37
38
# File 'lib/solargraph/pin/symbol.rb', line 36

def directives
  []
end

#kindObject


16
17
18
# File 'lib/solargraph/pin/symbol.rb', line 16

def kind
  Pin::SYMBOL
end

#namespaceObject


12
13
14
# File 'lib/solargraph/pin/symbol.rb', line 12

def namespace
  ''
end

#pathObject


20
21
22
# File 'lib/solargraph/pin/symbol.rb', line 20

def path
  ''
end

#return_typeObject


32
33
34
# File 'lib/solargraph/pin/symbol.rb', line 32

def return_type
  @return_type ||= Solargraph::ComplexType::SYMBOL
end

#visibilityObject


40
41
42
# File 'lib/solargraph/pin/symbol.rb', line 40

def visibility
  :public
end