Class: RubyLsp::Ree::ParsedImportLinkNode
Constant Summary
RubyLsp::Ree::ParsedLinkNode::AS_ARG_KEY, RubyLsp::Ree::ParsedLinkNode::FROM_ARG_KEY, RubyLsp::Ree::ParsedLinkNode::IMPORT_ARG_KEY
Instance Attribute Summary
#document_package, #from_param, #import_items, #kw_args, #linked_objects, #name, #node
Instance Method Summary
collapse
#file_path_type?, #first_arg_location, #from_arg_value, #has_import_section?, #has_kwargs?, #has_linked_object?, #imports, #initialize, #location, #multi_object_link?, #name_arg_node, #object_name_type?, #parse_imports, #usage_name
Instance Method Details
#import_block_close_location ⇒ Object
20
21
22
|
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/parsed_import_link_node.rb', line 20
def import_block_close_location
import_arg.closing_loc
end
|
#import_block_open_location ⇒ Object
16
17
18
|
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/parsed_import_link_node.rb', line 16
def import_block_open_location
import_arg.opening_loc
end
|
#import_link_type? ⇒ Boolean
12
13
14
|
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/parsed_import_link_node.rb', line 12
def import_link_type?
true
end
|
#link_package_name ⇒ Object
4
5
6
|
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/parsed_import_link_node.rb', line 4
def link_package_name
from_arg_value || document_package
end
|
#link_type ⇒ Object
8
9
10
|
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/parsed_import_link_node.rb', line 8
def link_type
:import_link
end
|