Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rbs/locator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def find_in_loc(pos, location:, array:)

def test_loc(pos, location:)
if location
location.range === pos
location.start_pos <= pos && pos <= location.end_pos
else
false
end
Expand Down
2 changes: 0 additions & 2 deletions sig/locator.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ module RBS
#
def find2: (line: Integer, column: Integer) -> [Symbol?, Array[component]]?

private

def find_in_directive: (Integer pos, AST::Directives::t, Array[component]) -> bool

def find_in_decl: (Integer pos, decl: AST::Declarations::t, array: Array[component]) -> bool
Expand Down