Class: Solargraph::Pin::YardPin::Constant
- Inherits:
-
Constant
- Object
- Base
- BaseVariable
- Constant
- Solargraph::Pin::YardPin::Constant
- Includes:
- YardMixin
- Defined in:
- lib/solargraph/pin/yard_pin/constant.rb
Instance Attribute Summary
Attributes inherited from Constant
Attributes inherited from BaseVariable
Attributes inherited from Base
#kind, #location, #name, #namespace, #path
Instance Method Summary collapse
-
#initialize(code_object, location) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from Constant
#completion_item_kind, #kind, #path, #symbol_kind
Methods inherited from BaseVariable
#==, #completion_item_kind, #infer, #nil_assignment?, #return_complex_type, #signature, #symbol_kind, #try_merge!, #variable?
Methods included from Source::NodeMethods
const_from, drill_signature, get_node_end_position, get_node_start_position, infer_literal_node_type, pack_name, resolve_node_signature, unpack_name
Methods inherited from Base
#==, #comments, #completion_item_kind, #context, #deprecated?, #directives, #docstring, #filename, #infer, #macros, #maybe_directives?, #nearly?, #return_complex_type, #return_type, #symbol_kind, #to_s, #try_merge!, #variable?
Methods included from Documenting
Methods included from Conversions
#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help
Constructor Details
#initialize(code_object, location) ⇒ Constant
Returns a new instance of Constant.
7 8 9 |
# File 'lib/solargraph/pin/yard_pin/constant.rb', line 7 def initialize code_object, location super(location, code_object.namespace.to_s, code_object.name.to_s, comments_from(code_object), nil, nil, nil, code_object.visibility) end |