Class: Solargraph::Pin::Plugin::Method

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

Instance Attribute Summary collapse

Attributes inherited from Base

#kind, #location, #namespace

Instance Method Summary collapse

Methods inherited from Base

#==, #comments, #context, #deprecated?, #directives, #docstring, #filename, #infer, #macros, #maybe_directives?, #nearly?, #return_complex_type, #symbol_kind, #to_s, #try_merge!, #variable?

Methods included from Documenting

#documentation

Methods included from Conversions

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

Constructor Details

#initialize(name:, path:, return_type:, parameters:) ⇒ Method

Returns a new instance of Method.



12
13
14
15
16
17
# File 'lib/solargraph/pin/plugin/method.rb', line 12

def initialize name:, path:, return_type:, parameters:
  @name = name
  @path = path
  @return_type = return_type
  @parameters = parameters
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/solargraph/pin/plugin/method.rb', line 5

def name
  @name
end

#parametersObject (readonly)

Returns the value of attribute parameters.



8
9
10
# File 'lib/solargraph/pin/plugin/method.rb', line 8

def parameters
  @parameters
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/solargraph/pin/plugin/method.rb', line 6

def path
  @path
end

#return_typeObject (readonly)

Returns the value of attribute return_type.



7
8
9
# File 'lib/solargraph/pin/plugin/method.rb', line 7

def return_type
  @return_type
end

#scopeObject (readonly)

Returns the value of attribute scope.



9
10
11
# File 'lib/solargraph/pin/plugin/method.rb', line 9

def scope
  @scope
end

#visibilityObject (readonly)

Returns the value of attribute visibility.



10
11
12
# File 'lib/solargraph/pin/plugin/method.rb', line 10

def visibility
  @visibility
end

Instance Method Details

#completion_item_kindObject



19
20
21
# File 'lib/solargraph/pin/plugin/method.rb', line 19

def completion_item_kind
  Solargraph::LanguageServer::CompletionItemKinds::METHOD
end